| Thread | Last Post | Replies |
|
| Invoking to a busy UI thread | 01 Aug 2007 00:05 GMT | 2 |
Here's my question: I have Windows Forms app. Suppose the user clicks on the "Processing" button on the UI. The UI thread then starts processing. During this processing another thread calls invoke to update a control on the UI.
|
| Singleton Implementation Issue | 31 Jul 2007 22:35 GMT | 13 |
Unless I'm misunderstanding the pattern and it's various implementations, Singleton effectively makes the constructor unavailable to clients. The constructor for any given class, however, is what we otherwise use [outside of Singleton implementations] to *require* specific ...
|
| Xtreme Newbie: String Arrays | 31 Jul 2007 22:27 GMT | 9 |
I am an Xtreme newbie to C# and am trying to build an array of strings. I get the following error and don't know what I'm doing wrong. System.NullReferenceException: Object reference not set to an instance of an object.
|
| PrinterSettings() in csharp | 31 Jul 2007 22:14 GMT | 2 |
I’m not sure how to feed PCL commands (i.e. “Ec&l1S”) thru the PrinterSettings() function, but we have been successfully using the PrinterSetting() properties and methods to successfully call on most of the printer’s properties.
|
| How could I add row to bounded datagridview programmatically? | 31 Jul 2007 21:51 GMT | 2 |
I am working on the windows application. I created a form Form1 to list records. I used datagridview to show data and bound it to a dataadapter. User can click Update button in Form1 to open a new dialog window Form2 to update selected record and also add new records. When user ...
|
| P/Invoke problem | 31 Jul 2007 21:31 GMT | 3 |
Is it possible to set path to dll from which I import? The problem is that if I know the path I can use it in DllImport attribute but I need to parametrize this path (this parameter is read when application starts). E.g.:
|
| Add MenuItems Dynamically | 31 Jul 2007 20:30 GMT | 3 |
I'm trying to loop through the app.Config file and add the keys from the app.Config as MenuItems on a MenuStrip. The following line blows up... transToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] {
|
| VS Add-In question | 31 Jul 2007 19:56 GMT | 4 |
In the VS 2005 add-in I'm currently developing, I want to be able to find out when the entire Visual Studio IDE receives and loses focus (e.g. when the user switches to another program and back to the IDE). I would have expected such an event to be present in DTE.DTEEvents, but it ...
|
| newbie trouble making array of instances | 31 Jul 2007 19:41 GMT | 26 |
I have a class 'item' and I want to create an array of these items. like this ArrayList items = new ArrayList(); while (reader.read())
|
| datagrid | 31 Jul 2007 19:28 GMT | 1 |
I wrote a Class that has 1 inherited child class this class loads row offsets into a 1 dim long array i can traverse the text file via rows or if delimited columns or fixed with columns i can define a structure (array of column names, type,size, len,
|
| Update/Resync ADO.NET Dataset? | 31 Jul 2007 18:38 GMT | 2 |
I imported an Access database, created a dataset, added a bindingsource; and have been happily coding away - couldn't be easier. My problems started when I added a column to the database - I can't find a way to tell Visual Studio to "resync" the imported dataset and
|
| use GetPrivateProfileString | 31 Jul 2007 17:33 GMT | 2 |
I am trying to use the function GetPrivateProfileString as following: [DllImport("kernel32.dll")] public static extern Int32 GetPrivateProfileString(string lpAppName, string lpKeyName, string lpDefault, string lpReturnedString, short nSize, string
|
| Can I call an event in code? | 31 Jul 2007 17:04 GMT | 4 |
In the days of VB, it was possible to do the following: "Call Button1_Click()", although there was some argument about whether this was asking for trouble. Is it possible to do it in CSharp? The trouble that I see is that
|
| Getting a snapshot from a WebBrowser | 31 Jul 2007 16:59 GMT | 1 |
I badly need to get a snapshot from a WebBrowser control. How can I do that?
|
| Share Information between Service and Service Manger | 31 Jul 2007 16:38 GMT | 3 |
I have a application that run as Windows Service. I also created another Windows Form Application that manage the Service like MS SQL Server Service Manager did. Service Manager need to know some variable value in Service, include some massive data.
|