Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to update database when the page/window is closed Pin
André Ziegler22-Oct-05 4:25
André Ziegler22-Oct-05 4:25 
GeneralRe: how to update database when the page/window is closed Pin
sreesiri23-Oct-05 18:27
sreesiri23-Oct-05 18:27 
QuestionTreeView node detection Pin
picasso221-Oct-05 19:33
picasso221-Oct-05 19:33 
AnswerRe: TreeView node detection Pin
S. Senthil Kumar21-Oct-05 20:29
S. Senthil Kumar21-Oct-05 20:29 
Questionhow to redirect to another page when current page is closed Pin
Anonymous21-Oct-05 19:18
Anonymous21-Oct-05 19:18 
AnswerRe: how to redirect to another page when current page is closed Pin
dabuskol22-Oct-05 1:07
dabuskol22-Oct-05 1:07 
AnswerRe: how to redirect to another page when current page is closed Pin
MoustafaS22-Oct-05 6:57
MoustafaS22-Oct-05 6:57 
QuestionBitmap Image in customize control Pin
luckyeagle21-Oct-05 18:52
luckyeagle21-Oct-05 18:52 
Hello, Everybody.

I have created a customize control in C# using VS.Net 2005(but has the same problem in VS 2003)
then I insert it into a windows application form and setup some properties,
and it compiles without any problem.

But when I reopen the solution second time and I come to design view of the application form, D'Oh! | :doh: it shows an error message:
Failed to create component 'scontrol'. The error message follows: 'System.ArgumentException: Parameter is not valid.at System.Drawing.Bitmap..ctor(String filename) in the scontrol.cs line98'

line98: Bitmap bw = new Bitmap(@"beforeBtn.bmp");

Then I think it cann't find the image I used for the button backgroundImage of the scontrol.cs. Then I copied the images into the application form directory with solution and also in the bin folder, however it doesn't solve the bug.

Does anyone understand what has happened and why compiler cann't find the image to initialize my scontrol in an application form? How can I make it work?

CheersSmile | :)


-- modified at 1:08 Saturday 22nd October, 2005
QuestionI want to develop a live video display windows form control Pin
varmag21-Oct-05 18:30
varmag21-Oct-05 18:30 
QuestionParentfolderagain Pin
Tran Ngoc Minh21-Oct-05 17:45
Tran Ngoc Minh21-Oct-05 17:45 
AnswerRe: Parentfolderagain Pin
S. Senthil Kumar21-Oct-05 20:38
S. Senthil Kumar21-Oct-05 20:38 
Questionhelp with GDI+ Pin
tawammar21-Oct-05 17:07
tawammar21-Oct-05 17:07 
AnswerRe: help with GDI+ Pin
S. Senthil Kumar21-Oct-05 20:39
S. Senthil Kumar21-Oct-05 20:39 
GeneralRe: help with GDI+ Pin
tawammar21-Oct-05 21:33
tawammar21-Oct-05 21:33 
GeneralRe: help with GDI+ Pin
S. Senthil Kumar21-Oct-05 21:46
S. Senthil Kumar21-Oct-05 21:46 
GeneralRe: help with GDI+ Pin
Sasuko22-Oct-05 0:26
Sasuko22-Oct-05 0:26 
AnswerRe: help with GDI+ Pin
[Marc]23-Oct-05 12:22
[Marc]23-Oct-05 12:22 
QuestionBeginner Question: Data type issue Pin
ivelander21-Oct-05 15:45
ivelander21-Oct-05 15:45 
AnswerRe: Beginner Question: Data type issue Pin
MoustafaS21-Oct-05 16:13
MoustafaS21-Oct-05 16:13 
AnswerRe: Beginner Question: Data type issue Pin
Matt Gerrans21-Oct-05 16:19
Matt Gerrans21-Oct-05 16:19 
AnswerRe: Beginner Question: Data type issue Pin
Matt Gerrans21-Oct-05 16:22
Matt Gerrans21-Oct-05 16:22 
GeneralRe: Beginner Question: Data type issue Pin
ivelander21-Oct-05 16:28
ivelander21-Oct-05 16:28 
GeneralRe: Beginner Question: Data type issue Pin
Matt Gerrans22-Oct-05 7:19
Matt Gerrans22-Oct-05 7:19 
QuestionPlease help... Pin
KORCARI21-Oct-05 12:39
KORCARI21-Oct-05 12:39 
QuestionMoving a graphic on a form Pin
har04mich21-Oct-05 11:41
har04mich21-Oct-05 11:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.