Click here to Skip to main content
15,923,789 members
Home / Discussions / C#
   

C#

 
GeneralCreate Click event in C# Pin
itssuk12-Jan-05 1:30
itssuk12-Jan-05 1:30 
GeneralRe: Create Click event in C# Pin
Paul Lyons12-Jan-05 2:28
Paul Lyons12-Jan-05 2:28 
GeneralRe: Create Click event in C# Pin
itssuk12-Jan-05 19:18
itssuk12-Jan-05 19:18 
GeneralRe: Create Click event in C# Pin
Paul Lyons13-Jan-05 15:05
Paul Lyons13-Jan-05 15:05 
GeneralRe: Create Click event in C# Pin
Member 164882912-Jan-05 2:29
Member 164882912-Jan-05 2:29 
GeneralRe: Create Click event in C# Pin
Stefan Troschuetz12-Jan-05 2:35
Stefan Troschuetz12-Jan-05 2:35 
GeneralReplacing plus minus signs for TreeView Pin
eliea12-Jan-05 1:23
eliea12-Jan-05 1:23 
GeneralInvalid Parameter used Pin
Snowjim12-Jan-05 0:59
Snowjim12-Jan-05 0:59 
Hey!

I have created a Windows Control Library
I have built this and added the dll file to my main project

This workt well, but when i closed and then started upp my main progject again the control was not visible in the form?

And i got the folowing errors (menuPanel1 is my dll control)

C:\ForumProject\ForumClient\ForumClient.cs(324): The variable 'menuPanel1' is either undeclared or was never assigned.

An exception occurred while trying to create an instance of ForumClient.MenuPanel. The exception was "Invalid parameter used.".

But i can run the program and then the control is visible?


I have tryed to rebuild the control and add it to the project, but i get this message when i am draging it to my main form

An exception occured whule trying to creat an instance of Forum.MenuPane. Exception was "Invalid parameter used.".

My construkter in the control looks like this
		public MenuPanel()<br />
		{<br />
			// This call is required by the Windows.Forms Form Designer.<br />
			InitializeComponent();<br />
<br />
		}


and The automated code to create it looks like this

private MenuPanel menuPanel1;<br />
<br />
		private void InitializeComponent()<br />
		{<br />
                        this.menuPanel1 = new MenuPanel();<br />
<br />
			// <br />
			// menuPanel1<br />
			// <br />
			this.menuPanel1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("menuPanel1.BackgroundImage")));<br />
			this.menuPanel1.Location = new System.Drawing.Point(0, 0);<br />
			this.menuPanel1.Name = "menuPanel1";<br />
			this.menuPanel1.Size = new System.Drawing.Size(272, 568);<br />
			this.menuPanel1.TabIndex = 6;<br />
<br />
			this.Controls.Add(this.menuPanel1);<br />
                }


Ples help me with this

Best Regards
Jimmy
GeneralRe: Invalid Parameter used Pin
Snowjim12-Jan-05 3:33
Snowjim12-Jan-05 3:33 
Generaldrag and drop images Pin
rathishps12-Jan-05 0:38
rathishps12-Jan-05 0:38 
QuestionHandle Bitmaps faster? Pin
Snowjim12-Jan-05 0:35
Snowjim12-Jan-05 0:35 
AnswerRe: Handle Bitmaps faster? Pin
Stefan Troschuetz12-Jan-05 1:10
Stefan Troschuetz12-Jan-05 1:10 
GeneralRe: Handle Bitmaps faster? Pin
Snowjim12-Jan-05 1:21
Snowjim12-Jan-05 1:21 
GeneralRe: Handle Bitmaps faster? Pin
Stefan Troschuetz12-Jan-05 1:36
Stefan Troschuetz12-Jan-05 1:36 
GeneralRe: Handle Bitmaps faster? Pin
Snowjim12-Jan-05 1:44
Snowjim12-Jan-05 1:44 
GeneralRe: Handle Bitmaps faster? Pin
Stefan Troschuetz12-Jan-05 2:17
Stefan Troschuetz12-Jan-05 2:17 
GeneralRe: Handle Bitmaps faster? Pin
Snowjim12-Jan-05 3:31
Snowjim12-Jan-05 3:31 
GeneralRe: Handle Bitmaps faster? Pin
Stefan Troschuetz12-Jan-05 3:41
Stefan Troschuetz12-Jan-05 3:41 
GeneralEvents with .Net remoting Pin
Member 164882911-Jan-05 23:46
Member 164882911-Jan-05 23:46 
GeneralCalling C# DLL through Borland C++ Pin
kinju11-Jan-05 23:16
kinju11-Jan-05 23:16 
GeneralUpdateLayeredWindow problem ... Pin
Axonn Echysttas11-Jan-05 21:57
Axonn Echysttas11-Jan-05 21:57 
GeneralRe: UpdateLayeredWindow problem ... Pin
Dave Kreskowiak12-Jan-05 4:52
mveDave Kreskowiak12-Jan-05 4:52 
GeneralPocket PC Application Pin
vksrisridhar11-Jan-05 21:20
vksrisridhar11-Jan-05 21:20 
QuestionHow to create a &quot;Double Click event&quot; Pin
lee meng11-Jan-05 20:47
lee meng11-Jan-05 20:47 
AnswerRe: How to create a &quot;Double Click event&quot; Pin
Stefan Troschuetz11-Jan-05 21:20
Stefan Troschuetz11-Jan-05 21:20 

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.