Found 20 threads
-
2 Votes
ICollection.CopyTo() vs. ArrayList.ToArray()
Dear all, I want to convert a ICollection instance to a normal array. But then I realized these two ways will give me a Array object. Just curious, which one is better ...Answered | 4 Replies | 9125 Views | Created by idos - Saturday, August 4, 2007 4:08 PM | Last reply by cervedin - Sunday, December 13, 2020 12:07 PM -
4 Votes
Screen Saver notifications
I want to get notifications of various System Events in my C# app (Shut down, logoff, Session change, etc). So far I found that the SystemEvents class is very useful ...Answered | 3 Replies | 13623 Views | Created by perlom - Tuesday, October 10, 2006 6:54 PM | Last reply by Hans Milling - Monday, October 19, 2020 9:39 AM -
0 Votes
assembly load unload event
I have an assembly for which I need to increment/decrement the counter in registry when assembly load/unload. are there any events which tells assembly is loading or ...Answered | 4 Replies | 10464 Views | Created by drew_p - Monday, July 24, 2006 6:10 PM | Last reply by David Burg - Thursday, October 8, 2020 5:55 AM -
1 Votes
Is there a difference between capitalized types and non capitalized types?
I just noticed that often times types in C# are offered (via intellisense) in Capitalized and non-capitalized. I tried to do a search to find the answer, but couldn't find anything. Nothing ...Answered | 6 Replies | 6164 Views | Created by MTech8 - Monday, October 19, 2009 10:31 PM | Last reply by Sama Mir - Monday, September 21, 2020 11:46 AM -
5 Votes
Modify ConnectionString in App.Config
Okay so I've found various different forum posts on this, but none giving a viable solution with a code example in C#... so here goes... I've created a DataSet using the dataset ...Answered | 16 Replies | 56887 Views | Created by MartinThwaites - Sunday, July 19, 2009 9:32 PM | Last reply by xuan tran - Friday, September 18, 2020 11:41 AM -
0 Votes
SendMessage for keystroke is not working
Hi all could you please tell me why this code does not work? It should simulate the pression of TAB and then arrow DOWN, but ...Unanswered | 4 Replies | 5419 Views | Created by poirepoisson - Thursday, May 8, 2008 1:38 PM | Last reply by Pavel A - Sunday, August 30, 2020 11:13 PM -
0 Votes
Print multi-page TIFF
Hi, I have a Windows Form that should print a multi-page TIFF. My ...Answered | 8 Replies | 9575 Views | Created by Nazza - Monday, August 4, 2008 1:00 PM | Last reply by LpJp - Friday, August 14, 2020 2:05 PM -
12 Votes
IO.Directory.Delete - Read-only "Access Denied"
I'm in the middle of a major project converting a VB6 application to .NET and have a requirement to delete a folder and its contents, in this case a complete user profile folder from C:\Documents and ...Answered | 20 Replies | 44039 Views | Created by Stuart J. Travers - Tuesday, March 20, 2007 4:18 AM | Last reply by Daniel_CH - Thursday, July 30, 2020 4:31 PM -
0 Votes
CVTRES : fatal error CVT1100: duplicate resource. type:DIALOG, name:PRINTSTATUS, language:0x0409
Hi all VC++ programmers, I am the following linking error when iam migrating my code from vs-2003 to vs-2008.i.e. CVTRES : fatal error CVT1100: duplicate resource. type:DIALOG, ...Answered | 3 Replies | 9623 Views | Created by Raju,vetukuri - Wednesday, September 9, 2009 10:12 AM | Last reply by RD Holland - Friday, June 19, 2020 8:49 PM -
3 Votes
How to get the last directory after open FileDialog
Set FileDialog.RestoreDirectory Property true. When reopenning the file dialog box, it locates the last directory. My question is "How can I get the last ...Answered | 14 Replies | 39470 Views | Created by Andrew Huang - Tuesday, September 2, 2008 4:29 PM | Last reply by LeeC22 - Tuesday, June 9, 2020 1:28 PM -
3 Votes
JIT
How does JIT work?Answered | 3 Replies | 5880 Views | Created by Deepraj_Majumdar_35eaf1 - Friday, March 23, 2007 8:08 AM | Last reply by Pragati Katiyar - Monday, June 1, 2020 1:42 PM -
0 Votes
Exception from HRESULT: 0x8007007e
hi everybody; i when from toolbox usercontrol drag-drop to win-form i get the error message follows: Failed to create ...Answered | 3 Replies | 11060 Views | Created by MGunes - Thursday, November 16, 2006 12:06 PM | Last reply by WarnerK - Saturday, May 30, 2020 11:58 AM -
9 Votes
C# - Set Focus on TextBox - Which Event?
I have a Form and a Textbox control, once the Form loads up, and I want to set the cursor FOCUS on the TextBox, however, I cannot do this and I have no reason why, please ...Answered | 18 Replies | 156100 Views | Created by iHandler - Thursday, July 16, 2009 8:59 AM | Last reply by Gabriel Marius Popescu - Saturday, May 2, 2020 7:48 PM -
0 Votes
DAO Database functionality in C++ called from a 64 bit app.
Hello, I write 3rd party software in C++ that runs on top of an engineering program called AutoCAD. We have various applications that do this but one ...Answered | 4 Replies | 8971 Views | Created by Roy Holmberg - Wednesday, May 6, 2009 9:20 PM | Last reply by zhengzilu - Wednesday, April 22, 2020 8:31 PM -
1 Votes
Windows Textbox property “SelectionLength” is not working in .Net 2.0
I am migrating following VB6.0 code to .Net 2.0 (Windows application). VB6.0 Code :- Private Sub ...Answered | 7 Replies | 6969 Views | Created by Dinesh S - Tuesday, June 5, 2007 1:03 PM | Last reply by roger.breton - Thursday, April 9, 2020 3:49 PM -
0 Votes
Textbox Margin set by EM_SETMARGINS ignored?
Hi, I used EM_SETMARGINS to set 10px margin on the right hand of the textbox. It works fine when i am typing letters and exceeds the width of the ...Answered | 9 Replies | 9194 Views | Created by Khronosx - Sunday, October 12, 2008 1:59 AM | Last reply by Jonathan Potter - Thursday, April 9, 2020 4:51 AM -
0 Votes
How to set DateTimePicker (WinForms) control calendar automaticly on Today date
Hello, I have WinForms application with custom control based on DateTimePicker. In OnDropDown event I want to open calendar with automaticly selected today date in ...Unanswered | 8 Replies | 10644 Views | Created by tanyaz - Tuesday, September 22, 2009 3:21 PM | Last reply by Pete Walburn (2) - Tuesday, March 3, 2020 1:42 PM -
9 Votes
"Parameter is not valid" Arguement Exception when the DoubleBuffered Property is true
Hi, I am creating a Image button control. So, I have used three images for Up, Down and Over events. When I click on the button sometimes, it flickers. I read MSDN and a ...Discussion | 6 Replies | 10906 Views | Created by Lockhid - Thursday, March 19, 2009 10:21 PM | Last reply by ΔeltanK - Wednesday, February 26, 2020 12:47 AM -
9 Votes
Removing the focus rectangle from a flat button when the form itself does not have focus
I have a windows forms app that has some flat, borderless buttons, and I noticed that while the focus rectangle does not appear when the window has focus, as soon as another window has focus, but my ...Answered | 9 Replies | 31068 Views | Created by Chris Bardon - Thursday, April 16, 2009 7:39 PM | Last reply by Ipepot - Tuesday, February 25, 2020 2:11 AM -
0 Votes
Adding a Rectangle object to a Panel
I was able to add a button/label to a Panel like this; this.panel1.Controls.Add(this.button1);this.panel1.Controls.Add(this.label11); this works..OK!! But, what I ...Answered | 7 Replies | 13271 Views | Created by ugp - Friday, May 25, 2007 1:37 PM | Last reply by Maurin den Ouden - Thursday, January 23, 2020 8:05 AM - Items 1 to 20 of 27747 Next ›