Click here to Skip to main content
15,889,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVery long rtf string loading into RTB, and ContextSwitchDeadlock Pin
treddie22-Apr-13 13:13
treddie22-Apr-13 13:13 
AnswerRe: Very long rtf string loading into RTB, and ContextSwitchDeadlock Pin
Dave Kreskowiak22-Apr-13 14:05
mveDave Kreskowiak22-Apr-13 14:05 
GeneralRe: Very long rtf string loading into RTB, and ContextSwitchDeadlock Pin
treddie22-Apr-13 16:39
treddie22-Apr-13 16:39 
QuestionGlobal Hotkey Pin
Member 878710722-Apr-13 11:01
Member 878710722-Apr-13 11:01 
AnswerRe: Global Hotkey Pin
Dave Kreskowiak22-Apr-13 14:08
mveDave Kreskowiak22-Apr-13 14:08 
GeneralRe: Global Hotkey Pin
Member 878710723-Apr-13 6:33
Member 878710723-Apr-13 6:33 
GeneralRe: Global Hotkey Pin
Dave Kreskowiak23-Apr-13 7:39
mveDave Kreskowiak23-Apr-13 7:39 
QuestionHow to force a new instance when a form is created? Pin
GuyThiebaut22-Apr-13 4:26
professionalGuyThiebaut22-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.

VB
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.
VB
fooHelp.filterForm(New foo,...)


If the developer codes the following, issues are hit later when old instances are pulled back.
VB
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? Pin
Eddy Vluggen22-Apr-13 5:00
professionalEddy Vluggen22-Apr-13 5:00 
GeneralRe: How to force a new instance when a form is created? Pin
GuyThiebaut22-Apr-13 5:09
professionalGuyThiebaut22-Apr-13 5:09 
GeneralRe: How to force a new instance when a form is created? Pin
Eddy Vluggen22-Apr-13 7:58
professionalEddy Vluggen22-Apr-13 7:58 
GeneralRe: How to force a new instance when a form is created? Pin
GuyThiebaut22-Apr-13 8:11
professionalGuyThiebaut22-Apr-13 8:11 
GeneralRe: How to force a new instance when a form is created? Pin
Eddy Vluggen22-Apr-13 8:21
professionalEddy Vluggen22-Apr-13 8:21 
AnswerRe: How to force a new instance when a form is created? Pin
TnTinMn23-Apr-13 18:12
TnTinMn23-Apr-13 18:12 
QuestionSetup issue Pin
SPSandy20-Apr-13 2:48
SPSandy20-Apr-13 2:48 
QuestionString issue Pin
SPSandy20-Apr-13 2:42
SPSandy20-Apr-13 2:42 
AnswerRe: String issue Pin
Richard MacCutchan20-Apr-13 4:41
mveRichard MacCutchan20-Apr-13 4:41 
GeneralRe: String issue Pin
SPSandy20-Apr-13 8:24
SPSandy20-Apr-13 8:24 
GeneralRe: String issue Pin
Richard MacCutchan20-Apr-13 9:27
mveRichard MacCutchan20-Apr-13 9:27 
GeneralRe: String issue Pin
SPSandy20-Apr-13 16:21
SPSandy20-Apr-13 16:21 
AnswerRe: String issue Pin
Alan N20-Apr-13 14:16
Alan N20-Apr-13 14:16 
GeneralRe: String issue Pin
SPSandy20-Apr-13 19:58
SPSandy20-Apr-13 19:58 
QuestionStored Procedures Pin
alecxa0518-Apr-13 17:58
alecxa0518-Apr-13 17:58 
AnswerRe: Stored Procedures Pin
Richard MacCutchan18-Apr-13 23:07
mveRichard MacCutchan18-Apr-13 23:07 
AnswerRe: Stored Procedures Pin
RedDk21-Apr-13 12:52
RedDk21-Apr-13 12:52 

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.