Click here to Skip to main content
15,880,796 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataGridView and DataSet Pin
half-life11-Mar-09 0:21
half-life11-Mar-09 0:21 
GeneralRe: DataGridView and DataSet Pin
Xmen Real 11-Mar-09 3:55
professional Xmen Real 11-Mar-09 3:55 
AnswerRe: DataGridView and DataSet Pin
jaypatel51211-Mar-09 2:25
jaypatel51211-Mar-09 2:25 
GeneralRe: DataGridView and DataSet Pin
half-life11-Mar-09 2:59
half-life11-Mar-09 2:59 
QuestionProblems with Webcam Capture Pin
maerki9010-Mar-09 23:07
maerki9010-Mar-09 23:07 
AnswerRe: Problems with Webcam Capture Pin
Mustafa Ismail Mustafa11-Mar-09 0:09
Mustafa Ismail Mustafa11-Mar-09 0:09 
GeneralRe: Problems with Webcam Capture Pin
maerki9011-Mar-09 0:43
maerki9011-Mar-09 0:43 
QuestionHow to check/control the url which WebBrowser's will navigate it (WebBrowse in Windows App.) Pin
Member 465172910-Mar-09 22:58
Member 465172910-Mar-09 22:58 
Hi all,

I'm using (trying to use) webBrowser control in windows application.

when a user comes default web site is www.abc.com. User can select some transaction and they will be able to what they want.

What I want to do is, when user click ads which are on the website I should not navigate webBrowser, I should not allow to do that.

So I have done something like;

private void webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
        {
            // check the URL if allowed or not.

            Uri u = webBrowser.Url;
            string ap = u.AbsoluteUri;

            for (int i = 0; i < App.IzinliURL.Length; i++)
            {
                if (ap.IndexOf(App.IzinliURL[i]) == -1) // if it is not allowed
                {
                    webBrowser.Stop();

                    break;
                }
            }

            // new url which I'd like to set but it does not work.
            Uri newUri = new Uri("http://www.google.com.tr");
            webBrowser.Url = newUri;
            webBrowser.Navigate(newUri);
        }


What I have to do.

Many thanks.
AnswerRe: How to check/control the url which WebBrowser's will navigate it (WebBrowse in Windows App.) Pin
Expert Coming11-Mar-09 0:01
Expert Coming11-Mar-09 0:01 
QuestionGetting image compression/codec information? Pin
Matjaz-xyz10-Mar-09 22:19
Matjaz-xyz10-Mar-09 22:19 
QuestionBypass the Open/Save dialogue box generated by webBrowswer.Navigate Pin
Goobashi10-Mar-09 22:02
Goobashi10-Mar-09 22:02 
AnswerRe: Bypass the Open/Save dialogue box generated by webBrowswer.Navigate Pin
Simon P Stevens10-Mar-09 23:04
Simon P Stevens10-Mar-09 23:04 
GeneralRe: Bypass the Open/Save dialogue box generated by webBrowswer.Navigate Pin
Goobashi10-Mar-09 23:11
Goobashi10-Mar-09 23:11 
GeneralRe: Bypass the Open/Save dialogue box generated by webBrowswer.Navigate Pin
Goobashi10-Mar-09 23:13
Goobashi10-Mar-09 23:13 
GeneralRe: Bypass the Open/Save dialogue box generated by webBrowswer.Navigate Pin
Simon P Stevens10-Mar-09 23:22
Simon P Stevens10-Mar-09 23:22 
QuestionAdding xml code to another xml file [modified] Pin
ipstefan10-Mar-09 22:01
ipstefan10-Mar-09 22:01 
Questionwrite dll component Pin
behzadcp10-Mar-09 21:12
professionalbehzadcp10-Mar-09 21:12 
AnswerRe: write dll component Pin
stancrm10-Mar-09 21:14
stancrm10-Mar-09 21:14 
GeneralRe: write dll component Pin
behzadcp10-Mar-09 21:51
professionalbehzadcp10-Mar-09 21:51 
GeneralRe: write dll component Pin
stancrm10-Mar-09 22:05
stancrm10-Mar-09 22:05 
GeneralRe: write dll component Pin
behzadcp10-Mar-09 22:21
professionalbehzadcp10-Mar-09 22:21 
GeneralRe: write dll component Pin
Xmen Real 10-Mar-09 22:55
professional Xmen Real 10-Mar-09 22:55 
AnswerRe: write dll component Pin
Eddy Vluggen10-Mar-09 23:51
professionalEddy Vluggen10-Mar-09 23:51 
Questionhow to set the application.StartupPath in asp.net Pin
prasadbuddhika10-Mar-09 20:33
prasadbuddhika10-Mar-09 20:33 
AnswerRe: how to set the application.StartupPath in asp.net Pin
Expert Coming10-Mar-09 21:50
Expert Coming10-Mar-09 21:50 

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.