Click here to Skip to main content
       

Visual Basic

 
GeneralRe: How to make main window invisible in VB for Windows CE? PinmvpEddy Vluggen23-Apr-13 2:40 
GeneralRe: How to make main window invisible in VB for Windows CE? Pinmemberdusty_dex23-Apr-13 2:51 
GeneralRe: How to make main window invisible in VB for Windows CE? PinmemberMember 989133424-Apr-13 3:35 
GeneralRe: How to make main window invisible in VB for Windows CE? [modified] Pinmemberdusty_dex24-Apr-13 4:08 
GeneralRe: How to make main window invisible in VB for Windows CE? PinmemberMember 989133425-Apr-13 3:50 
GeneralRe: How to make main window invisible in VB for Windows CE? Pinmemberdusty_dex23-Apr-13 2:45 
QuestionVery long rtf string loading into RTB, and ContextSwitchDeadlock Pinmembertreddie22-Apr-13 13:13 
AnswerRe: Very long rtf string loading into RTB, and ContextSwitchDeadlock PinmvpDave Kreskowiak22-Apr-13 14:05 
GeneralRe: Very long rtf string loading into RTB, and ContextSwitchDeadlock Pinmembertreddie22-Apr-13 16:39 
QuestionGlobal Hotkey PinmemberMember 878710722-Apr-13 11:01 
AnswerRe: Global Hotkey PinmvpDave Kreskowiak22-Apr-13 14:08 
GeneralRe: Global Hotkey PinmemberMember 878710723-Apr-13 6:33 
GeneralRe: Global Hotkey PinmvpDave Kreskowiak23-Apr-13 7:39 
QuestionHow to force a new instance when a form is created? PinmemberGuyThiebaut22-Apr-13 4:26 
I have a form that starts with nothing on it.
I am adding controls to the form dynamically at run time.
 
This is the class declaration for the form.
 
Public Class foo
 
   Public Sub New()
 
        ' This call is required by the designer.
        InitializeComponent()
 
        ' Add any initialization after the InitializeComponent() call.

    End Sub
 
End Class
So here is my question - how do I force the developer to always create a new instance of the form rather than allowing them to refer to it without the new keyword?
 
I need to do this as I pick up old instances when I refer back to the form.
 
At present the developer needs to code.
fooHelp.filterForm(New foo,...)
 
If the developer codes the following, issues are hit later when old instances are pulled back.
fooHelp.filterForm(foo,...)
 
How do I ensure that when the developer codes fooHelp.filterForm(foo,...) they get an error message?
 
I feel like I was hit by the silly stick over the weekend and have had not had any luck with google(probably because I don't know how to phrase my question due to the silly stick...).
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens

AnswerRe: How to force a new instance when a form is created? PinmvpEddy Vluggen22-Apr-13 5:00 
GeneralRe: How to force a new instance when a form is created? PinmemberGuyThiebaut22-Apr-13 5:09 
GeneralRe: How to force a new instance when a form is created? PinmvpEddy Vluggen22-Apr-13 7:58 
GeneralRe: How to force a new instance when a form is created? PinmemberGuyThiebaut22-Apr-13 8:11 
GeneralRe: How to force a new instance when a form is created? PinmvpEddy Vluggen22-Apr-13 8:21 
AnswerRe: How to force a new instance when a form is created? PinmemberTnTinMn23-Apr-13 18:12 
QuestionSetup issue PinmemberSPSandy20-Apr-13 2:48 
QuestionString issue PinmemberSPSandy20-Apr-13 2:42 
AnswerRe: String issue PinmvpRichard MacCutchan20-Apr-13 4:41 
GeneralRe: String issue PinmemberSPSandy20-Apr-13 8:24 
GeneralRe: String issue PinmvpRichard MacCutchan20-Apr-13 9:27 
GeneralRe: String issue PinmemberSPSandy20-Apr-13 16:21 
AnswerRe: String issue PinmemberAlan N20-Apr-13 14:16 
GeneralRe: String issue PinmemberSPSandy20-Apr-13 19:58 
QuestionStored Procedures Pinmemberalecxa0518-Apr-13 17:58 
AnswerRe: Stored Procedures PinmvpRichard MacCutchan18-Apr-13 23:07 
AnswerRe: Stored Procedures PinmemberRedDK21-Apr-13 12:52 
QuestionHow to do this Relationship in Entity Framework using DataAnnotation not Fluent API PinmemberADSCNET18-Apr-13 16:01 
AnswerRe: How to do this Relationship in Entity Framework using DataAnnotation not Fluent API PinmvpRichard MacCutchan18-Apr-13 23:03 
GeneralRe: How to do this Relationship in Entity Framework using DataAnnotation not Fluent API PinmemberADSCNET19-Apr-13 0:26 
GeneralRe: How to do this Relationship in Entity Framework using DataAnnotation not Fluent API PinmvpRichard MacCutchan19-Apr-13 0:45 
GeneralRe: How to do this Relationship in Entity Framework using DataAnnotation not Fluent API PinmemberADSCNET19-Apr-13 0:47 
QuestionDouble monitor PinmemberNicoTexas17-Apr-13 6:12 
AnswerRe: Double monitor PinmvpEddy Vluggen18-Apr-13 10:28 
QuestionVB 2010 : How to make regular appointment using ListView & MonthCalendar? PinprofessionalYazid Aura Robbani15-Apr-13 12:15 
AnswerRe: VB 2010 : How to make regular appointment using ListView & MonthCalendar? PinmvpEddy Vluggen17-Apr-13 5:09 
GeneralRe: VB 2010 : How to make regular appointment using ListView & MonthCalendar? PinprofessionalYazid Aura Robbani18-Apr-13 10:00 
QuestionRe: VB 2010 : How to make regular appointment using ListView & MonthCalendar? PinmvpEddy Vluggen18-Apr-13 10:33 
AnswerRe: VB 2010 : How to make regular appointment using ListView & MonthCalendar? PinprofessionalYazid Aura Robbani19-Apr-13 3:06 
GeneralRe: VB 2010 : How to make regular appointment using ListView & MonthCalendar? PinmvpEddy Vluggen19-Apr-13 6:41 
GeneralRe: VB 2010 : How to make regular appointment using ListView & MonthCalendar? PinprofessionalYazid Aura Robbani21-Apr-13 4:11 
GeneralRe: VB 2010 : How to make regular appointment using ListView & MonthCalendar? PinmvpEddy Vluggen21-Apr-13 8:32 
GeneralRe: VB 2010 : How to make regular appointment using ListView & MonthCalendar? PinprofessionalYazid Aura Robbani21-Apr-13 17:34 
QuestionHow to get a string pointer in VB for CE [modified] PinmemberMember 989133415-Apr-13 1:51 
AnswerRe: How to get a string pointer in VB for CE PinmvpEddy Vluggen15-Apr-13 7:33 
GeneralRe: How to get a string pointer in VB for CE Pinmemberdusty_dex17-Apr-13 5:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 18 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid