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

C#

 
AnswerRe: error importing a dll file Pin
Expert Coming11-Mar-09 0:04
Expert Coming11-Mar-09 0:04 
GeneralRe: error importing a dll file Pin
raviya11-Mar-09 0:10
raviya11-Mar-09 0:10 
GeneralRe: error importing a dll file Pin
Xmen Real 11-Mar-09 0:15
professional Xmen Real 11-Mar-09 0:15 
GeneralRe: error importing a dll file Pin
Expert Coming11-Mar-09 0:16
Expert Coming11-Mar-09 0:16 
GeneralRe: error importing a dll file Pin
FalkoD11-Mar-09 0:17
FalkoD11-Mar-09 0:17 
QuestionLPR failed on Edited PRN file Pin
balu1234510-Mar-09 23:56
balu1234510-Mar-09 23:56 
AnswerRe: LPR failed on Edited PRN file Pin
Ashfield11-Mar-09 3:09
Ashfield11-Mar-09 3:09 
GeneralRe: LPR failed on Edited PRN file Pin
balu1234511-Mar-09 3:40
balu1234511-Mar-09 3:40 
GeneralRe: LPR failed on Edited PRN file Pin
Ashfield11-Mar-09 9:28
Ashfield11-Mar-09 9:28 
QuestionDataGridView and DataSet Pin
half-life10-Mar-09 23:16
half-life10-Mar-09 23:16 
AnswerRe: DataGridView and DataSet Pin
Expert Coming11-Mar-09 0:03
Expert Coming11-Mar-09 0:03 
GeneralRe: DataGridView and DataSet Pin
half-life11-Mar-09 0:17
half-life11-Mar-09 0:17 
AnswerRe: DataGridView and DataSet Pin
Xmen Real 11-Mar-09 0:06
professional Xmen Real 11-Mar-09 0:06 
GeneralRe: DataGridView and DataSet Pin
half-life11-Mar-09 0:16
half-life11-Mar-09 0:16 
GeneralRe: DataGridView and DataSet Pin
Xmen Real 11-Mar-09 0:18
professional Xmen Real 11-Mar-09 0:18 
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 

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.