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

Visual Basic

 
Questionhow to get system name and user name in vb.net windows application Pin
vijaylumar11-Jul-08 19:25
vijaylumar11-Jul-08 19:25 
AnswerRe: how to get system name and user name in vb.net windows application Pin
~Khatri Mitesh~11-Jul-08 20:18
~Khatri Mitesh~11-Jul-08 20:18 
AnswerRe: how to get system name and user name in vb.net windows application Pin
Rupesh Kumar Swami11-Jul-08 20:23
Rupesh Kumar Swami11-Jul-08 20:23 
AnswerRe: how to get system name and user name in vb.net windows application Pin
Luc Pattyn12-Jul-08 1:03
sitebuilderLuc Pattyn12-Jul-08 1:03 
AnswerRe: how to get system name and user name in vb.net windows application Pin
Vimalsoft(Pty) Ltd12-Jul-08 11:41
professionalVimalsoft(Pty) Ltd12-Jul-08 11:41 
QuestionSTA Error Pin
maksim31011-Jul-08 9:47
maksim31011-Jul-08 9:47 
AnswerRe: STA Error Pin
Luc Pattyn11-Jul-08 10:16
sitebuilderLuc Pattyn11-Jul-08 10:16 
AnswerRe: STA Error [modified] Pin
maksim31011-Jul-08 10:32
maksim31011-Jul-08 10:32 
I looked into the error details and it came out with this:

System.InvalidOperationException was unhandled by user code
Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it."
Source="ScienceProgram_v2"
StackTrace:
at ScienceProgram_v2.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at ScienceProgram_v2.My.MyProject.MyForms.get_mainForm()
at ScienceProgram_v2.startExperimentClass.STATUSupdate_MainForm() in G:\ProgrammingFolder\ScienceProgram\ScienceProgram_v2\neededClasses\startExperimentClass.vb:line 1229
at ScienceProgram_v2.startExperimentClass.endExperiment(Boolean& experimentCanceled) in G:\ProgrammingFolder\ScienceProgram\ScienceProgram_v2\neededClasses\startExperimentClass.vb:line 1190
at ScienceProgram_v2.startExperimentClass.sendCommands() in G:\ProgrammingFolder\ScienceProgram\ScienceProgram_v2\neededClasses\startExperimentClass.vb:line 1115
at ScienceProgram_v2.startExperimentClass.repeatingTimer_elapsed(Object source, ElapsedEventArgs e) in G:\ProgrammingFolder\ScienceProgram\ScienceProgram_v2\neededClasses\startExperimentClass.vb:line 1094
at System.Timers.Timer.MyTimerCallback(Object state)
InnerException: System.Threading.ThreadStateException
Message="Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it."
Source="System.Windows.Forms"
StackTrace:
at System.Windows.Forms.ComboBox.set_AutoCompleteSource(AutoCompleteSource value)
at ScienceProgram_v2.mainForm.InitializeComponent() in G:\ProgrammingFolder\ScienceProgram\ScienceProgram_v2\mainForm.Designer.vb:line 843
at ScienceProgram_v2.mainForm..ctor()
InnerException:


Maybe something here?

The only DLLs that I use are the Krypton Toolkit and the DevExpress Xtra editors. Everything else is standard Microsfot stuff.

-Max

modified on Monday, July 14, 2008 4:07 AM

QuestionParamater name: binding error Pin
AAGTHosting11-Jul-08 8:37
AAGTHosting11-Jul-08 8:37 
AnswerRe: Paramater name: binding error Pin
Kschuler11-Jul-08 9:30
Kschuler11-Jul-08 9:30 
AnswerRe: Paramater name: binding error Pin
Vimalsoft(Pty) Ltd12-Jul-08 11:50
professionalVimalsoft(Pty) Ltd12-Jul-08 11:50 
QuestionReading binary registry key returns "nothing" Pin
Chinners11-Jul-08 2:28
Chinners11-Jul-08 2:28 
AnswerRe: Reading binary registry key returns "nothing" Pin
Luc Pattyn11-Jul-08 3:17
sitebuilderLuc Pattyn11-Jul-08 3:17 
GeneralRe: Reading binary registry key returns "nothing" Pin
Chinners11-Jul-08 3:33
Chinners11-Jul-08 3:33 
GeneralRe: Reading binary registry key returns "nothing" Pin
Luc Pattyn11-Jul-08 3:47
sitebuilderLuc Pattyn11-Jul-08 3:47 
QuestionAdd Controls To Listview in Vs2005 Pin
Anoop Brijmohun11-Jul-08 2:16
Anoop Brijmohun11-Jul-08 2:16 
AnswerRe: Add Controls To Listview in Vs2005 Pin
Thomas Stockwell11-Jul-08 4:03
professionalThomas Stockwell11-Jul-08 4:03 
GeneralRe: Add Controls To Listview in Vs2005 Pin
Anoop Brijmohun11-Jul-08 4:10
Anoop Brijmohun11-Jul-08 4:10 
Questionsending email from asp.net/sqlserver on a particular date Pin
hepsy.i11-Jul-08 1:33
hepsy.i11-Jul-08 1:33 
AnswerRe: sending email from asp.net/sqlserver on a particular date Pin
jzonthemtn11-Jul-08 8:31
jzonthemtn11-Jul-08 8:31 
AnswerRe: sending email from asp.net/sqlserver on a particular date Pin
Vimalsoft(Pty) Ltd12-Jul-08 11:53
professionalVimalsoft(Pty) Ltd12-Jul-08 11:53 
QuestionVB6 to SSH Pin
tatchung11-Jul-08 0:08
tatchung11-Jul-08 0:08 
AnswerRe: VB6 to SSH Pin
jzonthemtn11-Jul-08 2:48
jzonthemtn11-Jul-08 2:48 
GeneralRe: VB6 to SSH Pin
tatchung12-Jul-08 0:39
tatchung12-Jul-08 0:39 
AnswerRe: VB6 to SSH Pin
Paul Conrad11-Jul-08 8:22
professionalPaul Conrad11-Jul-08 8:22 

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.