Click here to Skip to main content
15,916,941 members
Home / Discussions / C#
   

C#

 
QuestionSystem.Data.OleDb & Microsoft Excel [modified] Pin
shopi3012-Nov-06 13:22
shopi3012-Nov-06 13:22 
AnswerRe: System.Data.OleDb & Microsoft Excel Pin
Anthony Mushrow13-Nov-06 12:59
professionalAnthony Mushrow13-Nov-06 12:59 
QuestionMaking a global variable Pin
Blekk12-Nov-06 12:02
Blekk12-Nov-06 12:02 
AnswerRe: Making a global variable Pin
Christian Graus12-Nov-06 12:20
protectorChristian Graus12-Nov-06 12:20 
GeneralRe: Making a global variable Pin
Blekk12-Nov-06 13:06
Blekk12-Nov-06 13:06 
GeneralRe: Making a global variable Pin
Anthony Mushrow12-Nov-06 13:12
professionalAnthony Mushrow12-Nov-06 13:12 
GeneralRe: Making a global variable Pin
Christian Graus12-Nov-06 13:57
protectorChristian Graus12-Nov-06 13:57 
AnswerRe: Making a global variable Pin
beatles169212-Nov-06 19:36
beatles169212-Nov-06 19:36 
Hi I have a suggestion to make.How about writing a method in you web browser from that gets a bookmark and ask the web browser to nvaigate to it.
for example:
<br />
public void NavigateToBookmark(Bookmark bm)<br />
{<br />
this.webBrowser1.Navigate(bm.Url);<br />
}<br />

Anyway,I don't think that declaring the web browser control as public is a good idea,because if you do so,you make your bookmark dependent to a specific webbrowser and that's not good if you want to use the bookmark in some other code.Instead you can make your bookmark holds a reference to a webborwser(not to use a specific webbrowser) or you can pass a webbrowser object to your bookmark
<br />
public class BookMark<br />
{<br />
WebBrowser browser;<br />
public BookMark(WebBrowser browser)<br />
{<br />
this.browser=browser;<br />
}<br />
public void Navigate()<br />
{<br />
this.browser.Navigate(this.url);<br />
}<br />
}<br />

Or
<br />
//In BookMark class<br />
public void Navigate(WebBrowser browser)<br />
{<br />
browser.Navigate(this.url);<br />
}<br />


Regards
GeneralRe: Making a global variable Pin
Blekk13-Nov-06 5:47
Blekk13-Nov-06 5:47 
GeneralRe: Making a global variable Pin
Blekk13-Nov-06 8:01
Blekk13-Nov-06 8:01 
QuestionSplitting a string message into a list of Objects Pin
kristamed12-Nov-06 11:50
kristamed12-Nov-06 11:50 
AnswerRe: Splitting a string message into a list of Objects Pin
Christian Graus12-Nov-06 12:05
protectorChristian Graus12-Nov-06 12:05 
AnswerRe: Splitting a string message into a list of Objects Pin
shopi3012-Nov-06 13:58
shopi3012-Nov-06 13:58 
AnswerRe: Splitting a string message into a list of Objects Pin
Alexandr Kovshovik12-Nov-06 20:36
Alexandr Kovshovik12-Nov-06 20:36 
QuestionHow to Set DataGridView.Rows[0].Visible To False ? Pin
hdv21212-Nov-06 10:27
hdv21212-Nov-06 10:27 
AnswerRe: How to Set DataGridView.Rows[0].Visible To False ? Pin
Christian Graus12-Nov-06 11:15
protectorChristian Graus12-Nov-06 11:15 
GeneralRe: How to Set DataGridView.Rows[0].Visible To False ? Pin
hdv21212-Nov-06 11:22
hdv21212-Nov-06 11:22 
GeneralRe: How to Set DataGridView.Rows[0].Visible To False ? Pin
Christian Graus12-Nov-06 12:06
protectorChristian Graus12-Nov-06 12:06 
GeneralRe: How to Set DataGridView.Rows[0].Visible To False ? Pin
hdv21212-Nov-06 12:23
hdv21212-Nov-06 12:23 
GeneralRe: How to Set DataGridView.Rows[0].Visible To False ? Pin
Christian Graus12-Nov-06 12:30
protectorChristian Graus12-Nov-06 12:30 
AnswerRe: How to Set DataGridView.Rows[0].Visible To False ? Pin
shopi3012-Nov-06 14:12
shopi3012-Nov-06 14:12 
QuestionMoving Other Windows Pin
Now_Loading12-Nov-06 7:42
Now_Loading12-Nov-06 7:42 
AnswerRe: Moving Other Windows Pin
Amar Chaudhary12-Nov-06 8:21
Amar Chaudhary12-Nov-06 8:21 
GeneralRe: Moving Other Windows Pin
shopi3012-Nov-06 13:49
shopi3012-Nov-06 13:49 
GeneralRe: Moving Other Windows Pin
Now_Loading12-Nov-06 14:03
Now_Loading12-Nov-06 14:03 

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.