Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
GeneralRe: Flag/Keyword for VS to ignore a line of code? Pin
Richard Blythe27-Jul-10 12:15
Richard Blythe27-Jul-10 12:15 
GeneralRe: Flag/Keyword for VS to ignore a line of code? Pin
Luc Pattyn27-Jul-10 12:18
sitebuilderLuc Pattyn27-Jul-10 12:18 
GeneralRe: Flag/Keyword for VS to ignore a line of code? Pin
Richard Blythe27-Jul-10 12:23
Richard Blythe27-Jul-10 12:23 
GeneralRe: Flag/Keyword for VS to ignore a line of code? Pin
Luc Pattyn27-Jul-10 12:30
sitebuilderLuc Pattyn27-Jul-10 12:30 
GeneralRe: Flag/Keyword for VS to ignore a line of code? Pin
Pete O'Hanlon27-Jul-10 12:42
mvePete O'Hanlon27-Jul-10 12:42 
Questionnavigation in c# with enter key Pin
abdo_wa27-Jul-10 11:26
abdo_wa27-Jul-10 11:26 
AnswerRe: navigation in c# with enter key Pin
PIEBALDconsult27-Jul-10 13:20
mvePIEBALDconsult27-Jul-10 13:20 
AnswerRe: navigation in c# with enter key Pin
nsavithal.darsipudi29-Jul-10 2:59
nsavithal.darsipudi29-Jul-10 2:59 
// Navigates to the URL in the address box when
// the ENTER key is pressed while the ToolStripTextBox has focus.
private void toolStripTextBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
Navigate(toolStripTextBox1.Text);
}
}

// Navigates to the URL in the address box when
// the Go button is clicked.
private void goButton_Click(object sender, EventArgs e)
{
Navigate(toolStripTextBox1.Text);
}

// Navigates to the given URL if it is valid.
private void Navigate(String address)
{
if (String.IsNullOrEmpty(address)) return;
if (address.Equals("about:blank")) return;
if (!address.StartsWith("http://") &&
!address.StartsWith("https://"))
{
address = "http://" + address;
}
try
{
webBrowser1.Navigate(new Uri(address));
}
catch (System.UriFormatException)
{
return;
}
}

// Updates the URL in TextBoxAddress upon navigation.
private void webBrowser1_Navigated(object sender,
WebBrowserNavigatedEventArgs e)
{
toolStripTextBox1.Text = webBrowser1.Url.ToString();
}

like this u can navigate in c# with enter key
Questionc# program to move a window on desktop from a side to another when it looses focus Pin
ayandelhi27-Jul-10 8:45
ayandelhi27-Jul-10 8:45 
AnswerRe: c# program to move a window on desktop from a side to another when it looses focus Pin
Not Active27-Jul-10 9:09
mentorNot Active27-Jul-10 9:09 
AnswerRe: c# program to move a window on desktop from a side to another when it looses focus Pin
PIEBALDconsult27-Jul-10 9:18
mvePIEBALDconsult27-Jul-10 9:18 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
OriginalGriff27-Jul-10 9:43
mveOriginalGriff27-Jul-10 9:43 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
ayandelhi27-Jul-10 17:58
ayandelhi27-Jul-10 17:58 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
PIEBALDconsult27-Jul-10 18:01
mvePIEBALDconsult27-Jul-10 18:01 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
ayandelhi27-Jul-10 18:07
ayandelhi27-Jul-10 18:07 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
PIEBALDconsult27-Jul-10 18:11
mvePIEBALDconsult27-Jul-10 18:11 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
ayandelhi27-Jul-10 18:14
ayandelhi27-Jul-10 18:14 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
Dave Kreskowiak28-Jul-10 1:41
mveDave Kreskowiak28-Jul-10 1:41 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
Dave Kreskowiak27-Jul-10 18:11
mveDave Kreskowiak27-Jul-10 18:11 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
ayandelhi27-Jul-10 18:21
ayandelhi27-Jul-10 18:21 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
Dave Kreskowiak28-Jul-10 1:40
mveDave Kreskowiak28-Jul-10 1:40 
GeneralRe: c# program to move a window on desktop from a side to another when it looses focus Pin
ayandelhi28-Jul-10 2:33
ayandelhi28-Jul-10 2:33 
QuestionC# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
ayandelhi27-Jul-10 8:37
ayandelhi27-Jul-10 8:37 
AnswerRe: C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
Yusuf27-Jul-10 9:21
Yusuf27-Jul-10 9:21 
GeneralRe: C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered Pin
riced27-Jul-10 11:06
riced27-Jul-10 11:06 

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.