Click here to Skip to main content
15,908,626 members
Home / Discussions / C#
   

C#

 
AnswerRe: Large Memory usage Pin
Dave Kreskowiak11-May-09 19:04
mveDave Kreskowiak11-May-09 19:04 
Questionlearning italian language by lists of words Pin
john1990_111-May-09 15:45
john1990_111-May-09 15:45 
AnswerRe: learning italian language by lists of words Pin
Dave Kreskowiak11-May-09 16:26
mveDave Kreskowiak11-May-09 16:26 
GeneralRe: learning italian language by lists of words Pin
Tom Deketelaere11-May-09 22:38
professionalTom Deketelaere11-May-09 22:38 
GeneralRe: learning italian language by lists of words Pin
john1990_112-May-09 0:02
john1990_112-May-09 0:02 
GeneralRe: learning italian language by lists of words Pin
Tom Deketelaere12-May-09 0:09
professionalTom Deketelaere12-May-09 0:09 
GeneralRe: learning italian language by lists of words Pin
Dave Kreskowiak12-May-09 2:04
mveDave Kreskowiak12-May-09 2:04 
QuestionopenfileDialog error please help Pin
rctriplane11-May-09 11:16
rctriplane11-May-09 11:16 
This my error :
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. This exception is only raised if a debugger is attached to the process.

This line of code is high lighted in the debugger:
if ( ResponseFromDialog != DialogResult.Cancel)

This is my code:

private void button1_Click(object sender, EventArgs e)
{

DialogResult ResponseFromDialog;


// Create an OpenFileDialog object.

openFileDialog1.InitialDirectory = Directory.GetCurrentDirectory();
ResponseFromDialog = openFileDialog1.ShowDialog();

// Initialize the OpenFileDialog to look for text files.

// Check if the user selected a file from the OpenFileDialog.
if ( ResponseFromDialog != DialogResult.Cancel)

{
this.Cursor = new Cursor(openFileDialog1.OpenFile());

Input = new FileStream(openFileDialog1.FileName, FileMode.Open, FileAccess.Read);
fileReader = new StreamReader(Input );
button1.Enabled = false;
MessageBox.Show("ok here");
ActualData.ParsePositional(openFileDialog1.FileName, Count, GameNumber);
SineWave wave = new SineWave();
wave.run();
}

}
This is my main:
public static void Main(string[] args)
{

Start();
}

Thank you in advance for your help
al


}
AnswerRe: openfileDialog error please help Pin
Henry Minute11-May-09 13:10
Henry Minute11-May-09 13:10 
QuestionPrint Crystall report without see him ? Pin
E_Gold11-May-09 10:18
E_Gold11-May-09 10:18 
QuestionVista and 4GB Ram Pin
Mohammad Dayyan11-May-09 8:47
Mohammad Dayyan11-May-09 8:47 
AnswerRe: Vista and 4GB Ram Pin
DaveyM6911-May-09 8:52
professionalDaveyM6911-May-09 8:52 
GeneralRe: Vista and 4GB Ram Pin
Mohammad Dayyan11-May-09 8:58
Mohammad Dayyan11-May-09 8:58 
AnswerRe: Vista and 4GB Ram Pin
Dave Kreskowiak11-May-09 12:04
mveDave Kreskowiak11-May-09 12:04 
QuestionHole Punching C#->PHP Pin
evangile11-May-09 8:27
evangile11-May-09 8:27 
AnswerRe: Hole Punching C#->PHP Pin
Cosby5-Dec-09 12:05
Cosby5-Dec-09 12:05 
GeneralRe: Hole Punching C#->PHP Pin
Mohd Iliyas Ahmad10-Jan-10 20:11
Mohd Iliyas Ahmad10-Jan-10 20:11 
QuestionRe: stack overflow Pin
hotthoughtguy11-May-09 8:18
hotthoughtguy11-May-09 8:18 
AnswerRe: stack overflow Pin
EliottA11-May-09 8:21
EliottA11-May-09 8:21 
GeneralRe: stack overflow Pin
Christian Graus11-May-09 8:22
protectorChristian Graus11-May-09 8:22 
GeneralRe: stack overflow Pin
EliottA11-May-09 8:24
EliottA11-May-09 8:24 
GeneralRe: stack overflow Pin
Vikram A Punathambekar11-May-09 18:45
Vikram A Punathambekar11-May-09 18:45 
AnswerRe: stack overflow Pin
Christian Graus11-May-09 8:22
protectorChristian Graus11-May-09 8:22 
GeneralRe: stack overflow Pin
hotthoughtguy11-May-09 8:33
hotthoughtguy11-May-09 8:33 
GeneralRe: stack overflow Pin
hotthoughtguy11-May-09 8:37
hotthoughtguy11-May-09 8:37 

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.