Click here to Skip to main content
15,920,632 members
Home / Discussions / C#
   

C#

 
AnswerRe: browse control Pin
SeMartens4-Feb-09 0:23
SeMartens4-Feb-09 0:23 
AnswerRe: browse control Pin
J4amieC4-Feb-09 0:24
J4amieC4-Feb-09 0:24 
GeneralRe: browse control Pin
radupopescu7774-Feb-09 0:27
radupopescu7774-Feb-09 0:27 
GeneralRe: browse control Pin
Kristian Sixhøj4-Feb-09 0:45
Kristian Sixhøj4-Feb-09 0:45 
GeneralRe: browse control Pin
J4amieC4-Feb-09 0:57
J4amieC4-Feb-09 0:57 
GeneralRe: browse control Pin
radupopescu7774-Feb-09 1:06
radupopescu7774-Feb-09 1:06 
GeneralRe: browse control Pin
J4amieC4-Feb-09 1:10
J4amieC4-Feb-09 1:10 
AnswerRe: browse control Pin
radupopescu7774-Feb-09 0:50
radupopescu7774-Feb-09 0:50 
10x for the welcome Smile | :)

this is my code:
protected void Button3_Click(object sender, EventArgs e)
{
Stream myStream = null;
OpenFileDialog openFileDialog1 = new OpenFileDialog();

openFileDialog1.InitialDirectory = "c:\\";
openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
openFileDialog1.FilterIndex = 2;
openFileDialog1.RestoreDirectory = true;
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
try
{
if ((myStream = openFileDialog1.OpenFile()) != null)
{
using (myStream)
{

}
}
}
catch (Exception ex)
{
MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message);
}
}
}

when it gets to openFileDialog1.ShowDialog() the browser stops working, it doesn't open the filedialog and says "waiting for localhost". Any ideeas?
has it got something to do with vista or what is the problem?
QuestionWindows service for detecting USB device Pin
arun_pk4-Feb-09 0:07
arun_pk4-Feb-09 0:07 
QuestionFolder Protection Pin
vishnukamath3-Feb-09 23:08
vishnukamath3-Feb-09 23:08 
AnswerRe: Folder Protection Pin
«_Superman_»3-Feb-09 23:53
professional«_Superman_»3-Feb-09 23:53 
GeneralRe: Folder Protection Pin
vishnukamath4-Feb-09 0:13
vishnukamath4-Feb-09 0:13 
AnswerRe: Folder Protection Pin
Giorgi Dalakishvili4-Feb-09 0:38
mentorGiorgi Dalakishvili4-Feb-09 0:38 
GeneralRe: Folder Protection Pin
vishnukamath4-Feb-09 1:18
vishnukamath4-Feb-09 1:18 
Questionexposed items in a web service Pin
bfis1081373-Feb-09 22:16
bfis1081373-Feb-09 22:16 
AnswerRe: exposed items in a web service Pin
SeMartens3-Feb-09 22:42
SeMartens3-Feb-09 22:42 
QuestionSecurity issue in Web browser control Pin
ZonSyed3-Feb-09 22:08
ZonSyed3-Feb-09 22:08 
Questionarray of function Pin
t_nedelchev3-Feb-09 21:50
t_nedelchev3-Feb-09 21:50 
AnswerRe: array of function Pin
Spunky Coder3-Feb-09 22:01
Spunky Coder3-Feb-09 22:01 
AnswerRe: array of function Pin
N a v a n e e t h3-Feb-09 22:04
N a v a n e e t h3-Feb-09 22:04 
GeneralRe: array of function Pin
t_nedelchev3-Feb-09 22:23
t_nedelchev3-Feb-09 22:23 
GeneralRe: array of function Pin
User 66583-Feb-09 23:06
User 66583-Feb-09 23:06 
GeneralRe: array of function Pin
Ennis Ray Lynch, Jr.4-Feb-09 4:24
Ennis Ray Lynch, Jr.4-Feb-09 4:24 
AnswerRe: array of function Pin
PIEBALDconsult4-Feb-09 7:35
mvePIEBALDconsult4-Feb-09 7:35 
QuestionDynamically change method Pin
MAW303-Feb-09 21:13
MAW303-Feb-09 21:13 

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.