flame1987
Member
Registered: 20th Nov 06
Location: North Wales
User status: Offline
|
Expected class, interface, enum or delegate.
I keep getting this error im programming j# language what the Fu*k does it mean?
private void button1_Click(Object sender, System.EventArgs e)
The Error is on the void section although im pretty confident the line of code is error free if i comment it out it moves onto the next click event.
Please Help
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
Can you post the code behind that function?
|
flame1987
Member
Registered: 20th Nov 06
Location: North Wales
User status: Offline
|
private void button1_Click(Object sender, System.EventArgs e)
{
String strURL;
strURL = cmbURL.get_Text();
webBrowser1.Navigate(strURL);
cmbURL1.get_Items().Add(cmbURL.get_Text());
}
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
It will be because you've missed a bracket or semi colon out somewhere else.
|
flame1987
Member
Registered: 20th Nov 06
Location: North Wales
User status: Offline
|
surely it would just tell me that though by saying "} Expected"
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
Yeah usually, but not if its a semi colon.
|
flame1987
Member
Registered: 20th Nov 06
Location: North Wales
User status: Offline
|
cant see anything i have missed. all because of a toolstrip this happened wish i hadnt have bothered as my program is now fooked
|
James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
Should String have a capital s?
C# it's lowercase.
|
flame1987
Member
Registered: 20th Nov 06
Location: North Wales
User status: Offline
|
No in J# it has a capital S it also gets filled in by intelisense using Visual Studio. The Code Doesnt even get that far and obviously it doesnt compile. It just highlights the VOID section for some unknown reason
|