Click here to Skip to main content
15,892,805 members
Home / Discussions / C#
   

C#

 
QuestionSee webcam from another PC Pin
Daniel Santillanes10-Jan-06 5:11
professionalDaniel Santillanes10-Jan-06 5:11 
AnswerRe: See webcam from another PC Pin
Curtis Schlak.10-Jan-06 5:43
Curtis Schlak.10-Jan-06 5:43 
QuestionSynchronization Pin
rakesh_nits10-Jan-06 4:41
rakesh_nits10-Jan-06 4:41 
AnswerRe: Synchronization Pin
Curtis Schlak.10-Jan-06 4:49
Curtis Schlak.10-Jan-06 4:49 
QuestionButton event Pin
Kola Sokol10-Jan-06 4:40
Kola Sokol10-Jan-06 4:40 
AnswerRe: Button event Pin
Curtis Schlak.10-Jan-06 4:44
Curtis Schlak.10-Jan-06 4:44 
GeneralRe: Button event Pin
Kola Sokol10-Jan-06 5:12
Kola Sokol10-Jan-06 5:12 
GeneralRe: Button event Pin
exhaulted10-Jan-06 5:38
exhaulted10-Jan-06 5:38 
You have too many sets of brackets in your constructor

public Form1() <code>{</code> frm2 = new Form2(); <code>}</code>
//This finishes your constructor

//I think you still want this in your constructor as well
{
InitializeComponent();
webBrowser1.AllowNavigation = true;
webBrowser1.IsWebBrowserContextMenuEnabled = true;
webBrowser1.WebBrowserShortcutsEnabled = true;

}


//I think it should be
public Form1()
{
  frm2 = new Form2();
  InitializeComponent();
  webBrowser1.AllowNavigation = true;
  webBrowser1.IsWebBrowserContextMenuEnabled = true;
  webBrowser1.WebBrowserShortcutsEnabled = true;
}


If you still get the same mesage it has something to do with where you are placing an '{'
Take a close look at your code



Kev
GeneralRe: Button event Pin
Curtis Schlak.10-Jan-06 5:38
Curtis Schlak.10-Jan-06 5:38 
GeneralRe: Button event Pin
Kola Sokol10-Jan-06 5:42
Kola Sokol10-Jan-06 5:42 
GeneralRe: Button event Pin
Curtis Schlak.10-Jan-06 5:46
Curtis Schlak.10-Jan-06 5:46 
QuestionAdding a record Pin
Leo Smith10-Jan-06 3:53
Leo Smith10-Jan-06 3:53 
AnswerRe: Adding a record Pin
Guffa10-Jan-06 6:18
Guffa10-Jan-06 6:18 
Questionkill application upon query from the database of the server Pin
batmanAgen10-Jan-06 3:28
batmanAgen10-Jan-06 3:28 
AnswerRe: kill application upon query from the database of the server Pin
Steve Maier10-Jan-06 3:47
professionalSteve Maier10-Jan-06 3:47 
GeneralRe: kill application upon query from the database of the server Pin
batmanAgen10-Jan-06 5:02
batmanAgen10-Jan-06 5:02 
GeneralRe: kill application upon query from the database of the server Pin
Dave Kreskowiak10-Jan-06 5:44
mveDave Kreskowiak10-Jan-06 5:44 
GeneralRe: kill application upon query from the database of the server Pin
Steve Maier10-Jan-06 10:53
professionalSteve Maier10-Jan-06 10:53 
QuestionCreating Database during Installation Pin
Taurian11010-Jan-06 3:06
Taurian11010-Jan-06 3:06 
AnswerRe: Creating Database during Installation Pin
Steve Maier10-Jan-06 3:22
professionalSteve Maier10-Jan-06 3:22 
QuestionGACUTIL ??? Pin
faviochilo10-Jan-06 3:05
faviochilo10-Jan-06 3:05 
AnswerRe: GACUTIL ??? Pin
Curtis Schlak.10-Jan-06 3:26
Curtis Schlak.10-Jan-06 3:26 
GeneralRe: GACUTIL ??? Pin
faviochilo10-Jan-06 4:27
faviochilo10-Jan-06 4:27 
GeneralRe: GACUTIL ??? Pin
Curtis Schlak.10-Jan-06 5:00
Curtis Schlak.10-Jan-06 5:00 
QuestionGetRectOfTreeNode Pin
kolsky10-Jan-06 3:02
kolsky10-Jan-06 3:02 

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.