Click here to Skip to main content
15,922,584 members
Home / Discussions / C#
   

C#

 
AnswerRe: XMLTextWriter ??? Pin
leppie29-Jul-02 4:25
leppie29-Jul-02 4:25 
GeneralRe: XMLTextWriter ??? Pin
Christian Graus29-Jul-02 12:22
protectorChristian Graus29-Jul-02 12:22 
GeneralWeb Service Deployment Pin
Li Mu Bai29-Jul-02 1:52
Li Mu Bai29-Jul-02 1:52 
GeneralRe: Web Service Deployment Pin
Feng Qin29-Jul-02 14:35
Feng Qin29-Jul-02 14:35 
GeneralProblem at creating a vs.net wizard Pin
Feng Qin29-Jul-02 1:47
Feng Qin29-Jul-02 1:47 
GeneralInheriting a Windows Form as a User Control Pin
Paul Watson29-Jul-02 1:41
sitebuilderPaul Watson29-Jul-02 1:41 
GeneralRe: Inheriting a Windows Form as a User Control Pin
leppie29-Jul-02 1:57
leppie29-Jul-02 1:57 
GeneralRe: Inheriting a Windows Form as a User Control (Windows Form and User Control basically the same thing) Pin
Paul Watson29-Jul-02 2:21
sitebuilderPaul Watson29-Jul-02 2:21 
leppie wrote:
How about just changing the inheritance part from Form to UserControl and remove the Main method?

Llewellyn, you are my personal Savouir and God Programmer Of The Day.

I am still laughing at how that actually worked, and worked like a bomb! The difference between a Windows Form and a User Control is a couple lines of code (no maximise button etc.) and one reference!

I was actually trying to get the Windows Form hosted as a Visual Studio.NET ToolWindow Add-In. But when a Windows Form was hosted that way, it went berserk. However I had successfully hosted a User Control before and was trying to wrap the Windows Form up as a User Control.

Instead I have taken your advice and modified it slightly; The actual Windows Form is now defined as a User Control: public class frmMain : System.Windows.Forms.UserControl

And that is then hosted by VS.NET.

No having to port all those controls and functions to a User Control.

thanks man, you get big kudos today Big Grin | :-D

regards,
Paul Watson
Bluegrass
Cape Town, South Africa

The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge

Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
GeneralRe: Inheriting a Windows Form as a User Control (Windows Form and User Control basically the same thing) Pin
leppie29-Jul-02 4:09
leppie29-Jul-02 4:09 
GeneralAnakrino Pin
stephen woolhead29-Jul-02 1:05
stephen woolhead29-Jul-02 1:05 
GeneralRe: Anakrino Pin
Andy Smith29-Jul-02 7:07
Andy Smith29-Jul-02 7:07 
GeneralRe: Anakrino Pin
leppie29-Jul-02 8:12
leppie29-Jul-02 8:12 
GeneralRaising events in C# ASP.NET app. Pin
Naresh Karamchetty28-Jul-02 14:24
Naresh Karamchetty28-Jul-02 14:24 
GeneralRe: Raising events in C# ASP.NET app. Pin
Andy Smith28-Jul-02 21:50
Andy Smith28-Jul-02 21:50 
Generaldatabase Pin
Shotgun28-Jul-02 12:40
Shotgun28-Jul-02 12:40 
GeneralRe: database Pin
James T. Johnson28-Jul-02 13:41
James T. Johnson28-Jul-02 13:41 
GeneralSigning an assembly Pin
afronaut28-Jul-02 11:53
afronaut28-Jul-02 11:53 
GeneralRe: Signing an assembly Pin
Nnamdi Onyeyiri28-Jul-02 12:51
Nnamdi Onyeyiri28-Jul-02 12:51 
GeneralRe: Signing an assembly Pin
afronaut28-Jul-02 12:56
afronaut28-Jul-02 12:56 
QuestionHow to create a drag box? Pin
albean28-Jul-02 4:50
albean28-Jul-02 4:50 
GeneralListBox linked to Database Pin
laphijia28-Jul-02 4:34
laphijia28-Jul-02 4:34 
GeneralControl inside a panel Pin
Nnamdi Onyeyiri27-Jul-02 11:41
Nnamdi Onyeyiri27-Jul-02 11:41 
GeneralRe: Control inside a panel Pin
Ray Cassick27-Jul-02 12:51
Ray Cassick27-Jul-02 12:51 
GeneralRe: Control inside a panel Pin
Nnamdi Onyeyiri27-Jul-02 12:55
Nnamdi Onyeyiri27-Jul-02 12:55 
GeneralRe: Control inside a panel Pin
Nnamdi Onyeyiri27-Jul-02 13:01
Nnamdi Onyeyiri27-Jul-02 13:01 

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.