Click here to Skip to main content
15,881,715 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionOpenFileDialog exceptions Pin
MannyTheMammoth5-Oct-11 4:54
MannyTheMammoth5-Oct-11 4:54 
AnswerRe: OpenFileDialog exceptions Pin
Richard MacCutchan5-Oct-11 6:16
mveRichard MacCutchan5-Oct-11 6:16 
GeneralRe: OpenFileDialog exceptions Pin
MannyTheMammoth5-Oct-11 19:21
MannyTheMammoth5-Oct-11 19:21 
AnswerRe: OpenFileDialog exceptions Pin
Eddy Vluggen5-Oct-11 6:38
professionalEddy Vluggen5-Oct-11 6:38 
GeneralRe: OpenFileDialog exceptions Pin
MannyTheMammoth5-Oct-11 19:17
MannyTheMammoth5-Oct-11 19:17 
AnswerRe: OpenFileDialog exceptions Pin
Luc Pattyn5-Oct-11 7:55
sitebuilderLuc Pattyn5-Oct-11 7:55 
GeneralRe: OpenFileDialog exceptions Pin
MannyTheMammoth5-Oct-11 19:29
MannyTheMammoth5-Oct-11 19:29 
AnswerRe: OpenFileDialog exceptions Pin
Perić Željko5-Oct-11 9:29
professionalPerić Željko5-Oct-11 9:29 
<pre>
public MainForm()
{
InitializeComponent();

OpenFileDialog ofd = new OpenFileDialog();
ofd.ShowDialog(); //The exceptions are thrown from here

}
</pre>

I have copied the code into my program and it works perfectly.
Perhaps you forget to Initialize some Components that are used by AFORM() and exceptions are thrown because of that, or you forget to initialize the OpenFileDialog itself if it is necesary,
InitialDirectory,Filter...

Try to use your code in different place,
for example in subprogram, and call it from wanted place:

<pre>
public AForm()
{
// calling subprogram
Openfiledialog();
}

void Openfiledialog()
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.ShowDialog(); //The exceptions are thrown from here
}
</pre>


If you dont get error messages again it is clear that something diferent is wrong with your program.

For this exception I have found explenation,

RPC Server unavailable:

You are trying to connect to a remote server that is unavailable or does not exist. This error may be caused by your network connection being lost.

For other exeptions I didnt.

All the Best,

Peric Zeljko
(periczeljkosmederevo@yahoo.com)

-- modified 16-Dec-11 13:59pm.
GeneralOT Pin
DaveyM695-Oct-11 10:44
professionalDaveyM695-Oct-11 10:44 
GeneralRe: OpenFileDialog exceptions Pin
MannyTheMammoth5-Oct-11 19:53
MannyTheMammoth5-Oct-11 19:53 
QuestionLinking two pages using Visual STudio Pin
Jomon T Jose26-Sep-11 16:53
Jomon T Jose26-Sep-11 16:53 
AnswerRe: Linking two pages using Visual STudio Pin
RobCroll10-Oct-11 12:11
RobCroll10-Oct-11 12:11 
GeneralRe: Linking two pages using Visual STudio Pin
rajeevcapgeminiindia17-Nov-11 19:50
rajeevcapgeminiindia17-Nov-11 19:50 
Questiondock a windows form into ppt application window Pin
shama_12325-Sep-11 21:18
shama_12325-Sep-11 21:18 
AnswerRe: dock a windows form into ppt application window Pin
Dave Kreskowiak26-Sep-11 3:40
mveDave Kreskowiak26-Sep-11 3:40 
QuestionVisual Studio insists my form has changed Pin
Wjousts22-Sep-11 4:05
Wjousts22-Sep-11 4:05 
AnswerRe: Visual Studio insists my form has changed Pin
RobCroll24-Sep-11 12:01
RobCroll24-Sep-11 12:01 
GeneralRe: Visual Studio insists my form has changed Pin
Wjousts27-Sep-11 11:41
Wjousts27-Sep-11 11:41 
AnswerRe: Visual Studio insists my form has changed Pin
Alan N24-Sep-11 20:59
Alan N24-Sep-11 20:59 
AnswerRe: Visual Studio insists my form has changed Pin
Eddy Vluggen26-Sep-11 8:33
professionalEddy Vluggen26-Sep-11 8:33 
GeneralRe: Visual Studio insists my form has changed Pin
Wjousts27-Sep-11 11:43
Wjousts27-Sep-11 11:43 
AnswerRe: Visual Studio insists my form has changed Pin
Wjousts27-Sep-11 11:41
Wjousts27-Sep-11 11:41 
QuestionWindows::Forms::ListView Repaint-Bug Pin
Allgaeuer9-Sep-11 1:14
Allgaeuer9-Sep-11 1:14 
GeneralRe: Windows::Forms::ListView Repaint-Bug Pin
MicroVirus12-Sep-11 2:56
MicroVirus12-Sep-11 2:56 
QuestionWaitCursor, again Pin
lukeer8-Sep-11 22:00
lukeer8-Sep-11 22:00 

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.