Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > july 2005 > threads for tuesday july 26

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Allowing blank values for validated textbox
Posted by Ken Loomis at 7/26/2005 11:36:50 PM
Hello: I'm using the validating event on a text boxes to test for valid dates, doubles, etc. The problem is that if the field is not required and a blank value is OK and the user deletes a previous non-blank value, the validaing event keeps putting the non-blank value back in the text box an...more >>


getting Network Interface Card(NIC) names.. question.
Posted by Naveen Mukkelli at 7/26/2005 11:21:01 PM
Hi, I've got 3 Network Interface Cards(NIC) in my PC. Lets say NIC1, NIC2, NIC3. I have openend network connections in control panel and renamed them to Network 1, Network 2, Network 3. I'm trying to get these names( Network 1, Network 2, Network 3) by using C#. When I tried usin...more >>

Following Question in C#
Posted by Silent Ocean at 7/26/2005 11:08:15 PM
Hi All I have following questions regarding C# Assembly and Threading. Let me know the precise answer or lead me to the proper materials. 1. Is memory leakeage possible in .Net Manager Code ? 2. Is memory leakage possible in .Net Unmanaged Code ? 3. How can I find the what % of memory i...more >>

Terminology: module or class?
Posted by deko at 7/26/2005 10:41:57 PM
I'm new to C# and trying to get a handle on terminology. In the below class, I declare variables that are intended to be visible to all members of the class. Are these: "Module-level variables" "Class-level variables" "Member-level variables" Or should they be called "Member-level decl...more >>

How to? Pass C# Stream object to unmanaged COM method that expects a pointer?
Posted by TJ at 7/26/2005 10:39:42 PM
I need to be able to pass a pointer to a (managed code) Stream object to a COM method so it can serialize its data into the stream. I have a C# application that makes uses of Randolf Duke's MimeSniffer COM component (http://www.codeproject.com/internet/mimesniffer.asp). My application (pop3...more >>

unmanaged pointer to managed array
Posted by MR at 7/26/2005 10:24:47 PM
I am new to VS.C++ and am having a hard time when i have to share data between managed and unmanaged code. For example, I need to read binary data from a file and then call an non-CLR dll function passing the data that was read as a void* below is a snippet of the code that i have written in a...more >>

distinguish between server os and workstation
Posted by Dennis C. Drumm at 7/26/2005 9:03:56 PM
How can I tell programmatically if an application is running on a server or workstation, e.g. windows 2000 server or windows 2000 professional for example? Thanks, Dennis ...more >>

Static instances
Posted by John Jenkins at 7/26/2005 8:51:19 PM
Hi, I have been doing some work on an app, that has a particular = requirement for an object that can only have a single instance active. A = previous developer had simply created single static class. private static MemoryStreamCreator memThing=3Dnew MemoryStreamCreator(); I thought tha...more >>



WSE 2.0 WS-Addressing problem
Posted by Jimbo at 7/26/2005 8:18:43 PM
Hi people, I am playing with the WSE 2.0 SP3 and am trying to get use the ReplyTo WS-Addressing header to send a response to a different machine than where the request came from. However, in my web service the RequestSoapContext.Current command is returning a null. Here is what I'v...more >>

Why does VS package up files from GAC?
Posted by Chris at 7/26/2005 7:04:54 PM
Hi, Is it normal for dependencies found by a setup project to be included in the MSI even if they are references to DLL's in the GAC? I have several references in a project that are to GAC resources but they are being packaged up into my MSI. I thought if Copy Local was set to false, the ...more >>

TabControl
Posted by Mike Hubbard at 7/26/2005 7:01:21 PM
Is there a way to hide the tab portion of the control but leave the tabsheet visible? In Delphi you would set the TTabSheet.TabVisible property to False. You could still see the tab sheet but the tab was invisible. This was great for wizards. Any help is appreciated. Mike...more >>

Changing the Shape of Button Programatically
Posted by AJ at 7/26/2005 4:37:22 PM
Hi guys, any clues or suggesstion on how to programatically change the shape of a button from rectangular to say elliptical or circular. Meaning that when the mouse hovers just within the shape, only then the Click event can be generated. Would be Great if you guys can help Code can be eithe...more >>

Assembly instance
Posted by Jeffrey at 7/26/2005 4:27:14 PM
hello, how can i create a instance of an assembly which is already in the memory and not in use with the own process. for the own process i can use foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies()) but i want also the instances of assemblies of other processes. jeff ...more >>

Objects initialization
Posted by Zorro26 at 7/26/2005 3:51:03 PM
I have a question about the following code in C#: AddClass1 op1=new AddClass1(); op1.val=5; AddClass1 op2=new AddClass1(); op2.val=3; AddClass1 op3=op1+op2; Console.WriteLine(op3.val); The answer is of course 8. but my question is: Why don't i need to initialize op3 in the form of AddCla...more >>

Wow64DisableWow64FsRedirection
Posted by Steve Teeples at 7/26/2005 3:25:01 PM
Can someone tell me how to turn off file redirection in a 32-bit C# app under Windows XP Prof. 64bit Edition? -- Steve...more >>

Application just vanishes without any warning....
Posted by cj at 7/26/2005 2:08:13 PM
Normally, a dotNET application will throw an exception when something goes wrong, and the exception can be caught easily and reported to the user. However, users have been reporting that our application just simply vanishes without any warning. No exception seems to be thrown, otherwise it woul...more >>

databases
Posted by gregmalenky at 7/26/2005 1:51:03 PM
Hi, I'm new to programming - simple question I'm using Microsoft Visual C# 2005 Express Edition: I created a SQL database (customerinformation) - for local server use. Form1 is used to enter and read the records on the database customerid - name - address (etc.) - I've put sample names and a...more >>

Memory issues with Terminal Server??
Posted by Justin Lazanowski at 7/26/2005 1:18:03 PM
Cross posting this question on the recommendation of an [MVP] I have a .NET application that I am developing in C# I am loading information in from a dataset, and then pushing the dataset to a grid, or other controls depending on the particular form. This application is setup with one M...more >>

InvokeMember Woes
Posted by Stan at 7/26/2005 1:00:02 PM
All, I am trying to access a complex COM library with nested COM classes. In order to get at a certain class you must call a method on class A and this method will return a instance of COM class B. FOr instance the VB code looks like this: Public Function GetFee(sFeeCode As String) As Te...more >>

Why, oh why.
Posted by Frank Rizzo at 7/26/2005 11:32:04 AM
I've seen recently some programmers using string s = String.Empty; instead of traditional string s = ""; Is there any logical reason for this or just OOP snobbery? Regards...more >>

Use unmanaged dll
Posted by Aleksey at 7/26/2005 11:13:12 AM
Hi All! I have a following problem: We have a unmanaged dll wrote in C. In this dll we have 2 classes: class Foo and class Foo_Impl that inherited from Foo. Foo class was created to be exported from dll, like interface. So, there is a function in the dll, something like that: Foo *STDCAL...more >>

using MSSCriptControl with C#, params keyword question
Posted by Jozsef Bekes at 7/26/2005 11:12:13 AM
Hi All, I need to offer scripting possibilities in my app, and have to use MSSCriptControl for some reasons. I would like to use the feature that's called variable number of arguments, that is done in C# using the params keyword. However, if I AddObject the instance to the MSScriptControl, ...more >>

launching Browser with cookies
Posted by sd at 7/26/2005 11:11:05 AM
Hello: I have smart client app which needs to access a "forms authentication" protected website for certain functions. Thre credentials used to login to smart client are the same as the credentials used to logon to website. Once the user logs on to the client I do not want them to logon again in...more >>

Embedded Resource Question
Posted by wackyphill NO[at]SPAM yahoo.com at 7/26/2005 10:53:31 AM
If I Repeat the following code several times (Because I want to reuse the img throught my program) will I get multiple copies of it in memory or only one? Also why do I get exceptions when I close the stream after opening it? I guess you are not supposed to close it I just dont understand why?...more >>

Async method raised in web page doesn't refresh page
Posted by TS at 7/26/2005 10:32:02 AM
Im in a web page and call an asynchronous method in business class. the call back method is in the web page. When page processes, it runs thru code begins invoking the method then the page unloads. When the callback method is raised, only the method in the web page is run and the page never re...more >>

Bizarre system restore behavior and C#
Posted by Ed Glunz at 7/26/2005 10:30:52 AM
I'm not quite sure where to post this, but I figured these two groups would be a good start. I had a very nasty surprise this morning (7/26/05). I had to do a system restore to a restore point I made about a week ago. I had some VPN software that was screwing up my network, and even an unins...more >>

EndInvokeCalled
Posted by marvind at 7/26/2005 10:28:51 AM
I came across the following sample code: while (!ar.EndInvokeCalled) { // If you comment out the line below, the loop will not work // because you have to let the Form process events in the message queue Application.DoEvents(); } I am not using Forms and a tight loop still does not...more >>

highlighting textboxes
Posted by Newbie at 7/26/2005 10:21:03 AM
hello, i have a 14 textboxes and 14 requiredfieldvalidator controls to validate the textboxes. if one or more of the textboxes is empty, the corresponding requiredfieldvalidator controls show error messages. if all are empty, then 14 error messages show up which takes up a lot of real estat...more >>

Class name as a string variable
Posted by ADi at 7/26/2005 10:13:19 AM
Hello, I'm wondering it is possible somehow in C# to make that operation possible: abstract class ParentClass { }; class ClassA : ParentClass { }; class ClassB : ParentClass { }; class ClassC : ParentClass { }; ParentClass object; // declare an abstract object string[] Classes = new ...more >>

How to become an MVP?
Posted by Peter Rilling at 7/26/2005 10:07:23 AM
What is the process for becomming an MVP. I understand that a person needs to be nominated but is that something that I have to wait for, or do I make my desire known so that people know that I want to be an MVP? ...more >>

primary key problem
Posted by Newbie at 7/26/2005 10:00:03 AM
hello! i'm new to sql server and having some problem getting the primary key or index (Reference column). opening up the design table, the primary key or index column has an identity seed number that may vary in time. the identity increment is 1. in my code, i'm trying to get the next value...more >>

looking for a good resource
Posted by LDD at 7/26/2005 9:54:19 AM
I'm looking for a good resource that explains all that is related to datasets, datagrid, datatable, gridview, etc... Anything related to loading and display db contents LDD ...more >>

C# Grid
Posted by LDD at 7/26/2005 9:51:50 AM
Can you have a Grid that contains a combination of expandable/collapsable items, and non-expandable/collapsable items? show master detail where it exists, and where it doesn't? Hope that's clear LDD ...more >>

Randomly Assigning Array
Posted by James at 7/26/2005 9:35:33 AM
Just learning C#. What's the easiest way to assign numbers 1-10 randomly to an array? Basically I just want to take the numbers 1-10 and arrange them randomly in slots 0-9 of an array. Thanks ...more >>

Problems with Refactoring in C# 2005
Posted by Ben Enfield at 7/26/2005 8:57:19 AM
If a variable name is changed and then the intellisense tool tip from "Options to update references to the renamed object" -> "Rename "x" to "y" any XML based comments made for the variable will not be changed, for example (using C# 2005 beta 2): <param name="x">nothing</param> public doub...more >>

Live Update
Posted by pkumar at 7/26/2005 8:57:18 AM
How to implement live update, like stock ticker updates shown in TV ....more >>

Overriding Compare/ListViewItemSorter
Posted by pagates at 7/26/2005 7:51:01 AM
Hello Gurus, I have a listview, and I only want to add unique items. The problem is, my code is blowing by my "Contains" statement, adding the item, and then hitting my Compare code in the class that I have set up for my ListViewItemSorter. Here is my (simplified) code: // Note: there ...more >>

Getting two scrollbars to mirror eachother
Posted by MrNobody at 7/26/2005 7:20:05 AM
I have two large text boxes side by side which when loaded with text will usually get a horizontal scrollbar automatically. I would like to set it up so that when I scroll a bit to one direction on one textbox, the other textbox scrolls in the same direction with the same amount... how t...more >>

C# Retain PlaceHolder ViewState
Posted by theo at 7/26/2005 7:00:30 AM
Hi... I wish to extract the text content of an Xml file and assign it to DropDownList controls at runtime.I can get the Xml file text content into the DropDownList controls (Ex...if 5 Xml text tags then 5 dropdownlist controls each containing the 5 Xml text tags). Problem,when I save the us...more >>

creating a directory during runtime
Posted by Newbie at 7/26/2005 6:52:02 AM
hi! i am able to upload files successfully. but i have one minor problem. files are uploaded correctly if the directory exists, it is throwing an exception if the directory doesnt exist. but the directory name is created during runtime. is there a way to create a directory during runtime? ...more >>

Silent printing
Posted by zeljko.markic NO[at]SPAM gmail.com at 7/26/2005 6:38:42 AM
I want to implement silent printing in my project to print reports programmatically, so that a user will not see any pop-up messages to do with the printing process. For instance, I want to hide the "Printing Page 1 of document.." dialog. Curently I use .Print() method. I found this article...more >>

Thread.Susspend
Posted by [Yosi] at 7/26/2005 3:40:01 AM
Hi, I create a thread which load DLL and have DLL function call,this Dll function takes a lot of time. My Question is , if I request Thread.Susspend(), and the thread is inside the Dll function (Dll function not finished yet, and thread function wait for this function (DLL)call to comple...more >>

Conditional build events
Posted by Andrew Ducker at 7/26/2005 2:59:12 AM
I've got a C# project that automatically kicks off NUnit whenever I do a build. I want to change this so that it only does so when I've got the Configuration set to NUnit. Is there any way to either set up the post-build event to be conditional, or have it be dynamic? Cheers, An...more >>

MemberInfo Invoke with out object[]
Posted by stic at 7/26/2005 2:17:09 AM
Hi, I'm in a middle of writing something like 'exception handler wraper' for a set of different methodes. The case is that I have ca. 40 methods form web servicem, with different return values (and types), and with out parmeters. What I want to do is to support each method call with exception...more >>

Type Casting
Posted by Chris Smith at 7/26/2005 12:00:00 AM
Experience posters, I am an experienced vb/vb.net developer but having a bit of trouble converting a bit of code to C#. I have 3 projects in one solution. Trying to create a plug-in type framework. Project 1. Main winforms exe a. Has a reference to project 2 b. Attempts to dyn...more >>

Bind DataView to 2 ComboBoxes
Posted by Jazper Manto at 7/26/2005 12:00:00 AM
hi i bounded the same dataview to 2 different comboboxes. now, when i change the selectedIndex of combobox1, it automatically changes the selectedIndex of combobox2. does this mean, that the combobox selects the item on the base of some kind of a pointer on the dataview? if yes, is there a cl...more >>

How to get a particular selected row ID from a grid view .
Posted by Maheshkumar.R at 7/26/2005 12:00:00 AM
Hi groups, How to get a particular selected row ID from a grid view control where i = have placed imagebutton.=20 On click event how i can get the ROW ID ? --=20 M=E4h=E9sh Kum=E4r. R=20...more >>

ThreadState
Posted by Michael Moreno at 7/26/2005 12:00:00 AM
Hello, I am getting a ThreadState value of 12 which I do not know what state represents The code is simple and looks like this private Thread m_Thread; .... m_Thread = new Thread(new ThreadStart(ThreadLoop)); m_Thread.ApartmentState = ApartmentState.STA; m_Thread.IsBackground = true; ...more >>

Which form is active but hiden
Posted by Vladimir O¾ura at 7/26/2005 12:00:00 AM
I am building a Pocket PC application and I have 5 forms (form1, form2, ....). Form1 starts up and I click a button for Form2 to show up. Form1 is hiden. On Form2 i click a button for Form3 to show up. Now Form2 is hiden. Then in Form2 I click a button to show Form1. How can i just say "SHOW For...more >>

Handle Http Session
Posted by quest at 7/26/2005 12:00:00 AM
My webserver application (a http handler) accepts a sequence of requests from client. Each request requires an access to database (password/username supplied in the request). I am looking at improving the performance of the webserver. My questions: 1. How should I handle the session as the cli...more >>

Ideas on "hooking" C# app as child to VB6?
Posted by Todd at 7/26/2005 12:00:00 AM
I was wondering if someone has had a similar situation. We have a legacy VB6 application that is fairly large. We'd like to write new code in C# and have it launched from the VB6 application so it looks, at least, like a child module. We looked at seeing if we could host a C# control as an Active...more >>


DevelopmentNow Blog