The online racing simulator
.
(6 posts, started )

Poll : Do you want a Skin Converter?

Closed since :
Yes, would be nice and helpfull
5
No!, dont need this Skin Converter!
4
Not Bad
1
.
.
lol, wtf guy. Screenshots must NOT be 2048x2048!!!
-
(Heiko1) DELETED by Heiko1
1) It's Visual Studio
2)
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "Image files|*.jpg;*.jpeg;*.dds;*.bmp";
if (ofd.ShowDialog() == DialogResult.OK)
imagePath = ofd.FileName;

3)
SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = "JPEG|*.jpg;*.jpeg|DDS|*.dds|BMP|*.bmp";
if (sfd.ShowDialog() == DialogResult.OK)
imagePath = sfd.FileName;

Be sure to also check out the various properties of both dialogs, like the initial directory or whether the dialog checks if the entered filename exists, etc.
-
(Heiko1) DELETED by Heiko1
-
(Stefan Renk) DELETED by Stefan Renk
Yeah but, don't get me wrong here, I'd rather you learn how to search for tutorials or code snippets yourself . Usually entering "c# <whateveryouneed>" in Google yields pretty good results, especially for beginner stuff like those dialogs.

I just occasionally answer stuff here on the forums when I feel like it, but I'm not going to be your personal tutor, sorry! Too many bad experiences with that

E: Of course you need to define a variable that will hold the image path.
string imagePath;

It seems you're completely new to C# or programming in general, which just reinforces my point. There are tons and tons of good beginner tutorials on the net. Reading them is much more effective than asking for every tiny problem here on the forums.
-
(Stefan Renk) DELETED by Stefan Renk
#5 - sun
Heiko...

When i was new to C#, i went on google and typed in things i needed. I've been on millions of sites what tell you how to open a dialog and a save dialog.

here:

type in http://www.google.co.uk

and then type :

Open Dialog box

or if you want the save box :

Saving dialog Box.

I'm not being harsh or mean or anything its just what like the boys / girls said to me.

Search google and your answer is there within seconds...

----------------------------
:google:
-
(Heiko1) DELETED by Heiko1
#6 - sun
Oh, its ok heiko m8!

.
(6 posts, started )
FGED GREDG RDFGDR GSFDG