|
Really opened in FireFox?!! Too odd! I read your code, seems everything's fine. However this code worked fine for me in creating new WebBrowser in a new TabPage:
TabPage tp = new TabPage();
WebBrowser wb = new WebBrowser();
wb.Dock = DockStyle.Fill;
wb.GoHome();
tp.Controls.Add(wb);
tabControl1.TabPages.Add(tp);
Hope can help you...
Life is 5: 3 me, 1 you.
|
|
|
|
|
still don't work..
leKira is my Username here but I'm World Wide know as Naiakoa Call me by any of these.
modified on Thursday, November 20, 2008 9:11 PM
|
|
|
|
|
Say I have three classes, each a child of the previous. Can I explicitly call each of a classes methods that have been overridden?
class A
{
public A() { }
protected virtual void MakeLunch()
{
}
}
.
class B : A
{
public B() { }
protected override void MakeLunch()
{
base.MakeLunch();
}
}
.
class C : B
{
public C() { }
protected override void MakeLunch()
{
A.MakeLunch();
}
}
From class C, can I skip the banana and just get a cheese sandwich and a drink? Or do I need one of my five-a-day?
My current favourite word is: Nipple!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
I wouldn't imagine you could since B overrides A C should not "know" about A. However, if B used new on MakeLunch instead then it would be possible by casting C as A.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego.
|
|
|
|
|
I don't want to do that, it would cause more complications than it would solve. Thanks anyway.
My current favourite word is: Nipple!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
I figured which is why I initially hesitated in responding. However, I think the reasoning is why such an action is prevented by the compiler.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego.
|
|
|
|
|
Ennis Ray Lynch, Jr. wrote: However, if B used new on MakeLunch instead then it would be possible by casting C as A.
But that won't work too since the MakeLunch is marked as protected . Please correct me if I am wrong.
|
|
|
|
|
I haven't tried it but it might, since C would still be in the inheritance chain for A
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego.
|
|
|
|
|
It does not work in C# , but it is possible at IL level.
So I guess its simply a rule that prevents you to skip layers of abstraction in C#.
|
|
|
|
|
I have an existing application which requires the addition of a multi-function display area.
Currently I'm using a SplitterControl, which can give me the choice of two different UI displays within the same parent area.
This works fine and dandy. But now we need another two formats within the same area. I could use yet another SplitterControl and just collapse the unused panels when they are not required.
But I wonder what other ways can you guys suggest please?
|
|
|
|
|
|
Hello all
i have a web application that runs on the internal network, i want to access it through a desktop application, i want to fill in data in text fields and simulate button clicks, and even i want to access the "view source command" through my desktop application, i had search the internet and found that may i use BHO for IE, but i couldn't able to find a simple example that fit my needs,
please help.
|
|
|
|
|
Live connect with Java and Javascript would work but most likely you would need to setup polling with Ajax.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego.
|
|
|
|
|
i dont understand that using a desktop application
|
|
|
|
|
hello
is there a simple way to read cells data from excel file in my projects directory
into an array or matrix in c# ?
|
|
|
|
|
|
Good link.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
i tried to use this code and i have two questions.
1) it gives me an error that i dont have oledb registered on my machine how can i get it?
2) i understand that i get the information as dataset. how can i copy the information to an array.
3)the code has some line with dataGridView1 the compiler doesnot like this. what is it ?
|
|
|
|
|
1) I believe you have to install MDAC or the driver. You can find more info here: http://support.microsoft.com/default.aspx?scid=kb;en-us;239114[^]
2) You would just take that DataSet and iterate through it as necessary.
Something like...
foreach (DataTable table in dsDataSet.Tables)
foreach (DataRow row in table.Rows)
foreach (DataColumn column in table.Columns)
... (Your code here) ...
Personally, there's not much reason to transfer it to an array. Because a DataTable/DataSet is already a great form for connecting it to other items.
3) Its a User Interface component. Remove that line.
|
|
|
|
|
ok thanks alot for the help
|
|
|
|
|
If my project has multiple forms, is it possible to launch a new form on it's own thread..? The form is launched during a loop that never stops (for monitoring for input through the network) and it hangs because of this.
Is it possible to make my new form it's own thread?
|
|
|
|
|
Yes, it's possible. There are some things you should be aware of:
1. The thread that launches the form must be STA. You can set this on a new thread by calling Thread.TrySetApartmentState.
2. You should talk to other forms on the thread that they were created on.
I really recommend against doing this for these reasons. #2 is a major pain in the butt.
I suggest looking for an alternative approach for these reasons.
|
|
|
|
|
When
ParentForm.Close += new EventHandler(ParentForm_Closed) event is called I am opening another child form. But childform open and then close automatically. I tried to get the child from closing reason like as shown below and it returns "Cancel". ChildForm shouldn't close unless the buttons on the childform are clicked. Why is it behaving like this does anybody knows.
DialogResult result = childForm.ShowDialog();
Console.WriteLine("Closing reason " + result.ToString());
|
|
|
|
|
Without seeing more code from your child form I couldn't answer this question
|
|
|
|
|
WinForms have a Main form which you called in Application.Run(new MainForm()); this form must be active while your application is running. Beside your Child forms in MDIParent need their parent to be activate even if your parent form is not your Main form.
Hope can help you
Life is 5: 3 me, 1 you.
|
|
|
|