Click here to Skip to main content
15,894,190 members
Home / Discussions / C#
   

C#

 
QuestionHow can save and read data into the session state for user name and password? Pin
Aung Paing8-May-09 16:58
Aung Paing8-May-09 16:58 
AnswerRe: How can save and read data into the session state for user name and password? Pin
OriginalGriff8-May-09 21:47
mveOriginalGriff8-May-09 21:47 
QuestionPicture/Texture project Pin
Gabriel Hodgens8-May-09 12:07
Gabriel Hodgens8-May-09 12:07 
AnswerRe: Picture/Texture project Pin
fly9048-May-09 12:22
fly9048-May-09 12:22 
GeneralRe: Picture/Texture project Pin
Gabriel Hodgens8-May-09 12:31
Gabriel Hodgens8-May-09 12:31 
GeneralRe: Picture/Texture project Pin
fly9048-May-09 12:40
fly9048-May-09 12:40 
GeneralRe: Picture/Texture project Pin
Gabriel Hodgens8-May-09 12:44
Gabriel Hodgens8-May-09 12:44 
AnswerRe: Picture/Texture project Pin
Gabriel Hodgens8-May-09 13:53
Gabriel Hodgens8-May-09 13:53 
Ok, I came up with the exact steps. It really shouldn't be that hard. It would be extremely helpful if someone would convert this to a source, but any help with specific parts would be helpful too.

Picture folder is working directory + /Textures/
PictureBox displays a picture from the Picture folder
The Down and Up buttons make the picturebox cycle forwards and backwards through the pictures
The export button returns the current picturebox picture, finds the .tex file with the same name, exports it to a specific directory on the SD card in a folder based on the first 2 digits in the name and renames the file to *00.tex

For an example, in the working directory there is a folder called Textures. The program looks in Textures for any .jpg file and opens it, we'll say it's 02cattexture.jpg. The user doesn't like it so he presses the down button and the program finds the next picture in the folder; it happens to be 01dogtexture.jpg. The user likes the texture and clicks export. The program then looks at the picture and finds the .tex extension equivalent in the same folder. Because the filename has 01 on the front, the program will copy (not move!) it to SD:/textures/dogtex/ and will rename it to dog00.tex. if the filename started with 02, it would copy it to SD:/textures/cattex/ and rename it cat00.tex. Oh, and if there's already a file with that name on the SD card, it overwrite it.
GeneralRe: Picture/Texture project Pin
MumbleB8-May-09 21:36
MumbleB8-May-09 21:36 
GeneralRe: Picture/Texture project Pin
Gabriel Hodgens8-May-09 22:17
Gabriel Hodgens8-May-09 22:17 
GeneralRe: Picture/Texture project Pin
fly9048-May-09 22:31
fly9048-May-09 22:31 
GeneralRe: Picture/Texture project Pin
Gabriel Hodgens8-May-09 22:50
Gabriel Hodgens8-May-09 22:50 
GeneralRe: Picture/Texture project Pin
fly9048-May-09 23:08
fly9048-May-09 23:08 
GeneralRe: Picture/Texture project Pin
Gabriel Hodgens8-May-09 23:14
Gabriel Hodgens8-May-09 23:14 
GeneralRe: Picture/Texture project Pin
MumbleB8-May-09 22:40
MumbleB8-May-09 22:40 
Questionprint button to print a control Pin
student19888-May-09 10:42
student19888-May-09 10:42 
AnswerRe: print button to print a control Pin
fly9048-May-09 10:47
fly9048-May-09 10:47 
GeneralRe: print button to print a control Pin
student19888-May-09 11:03
student19888-May-09 11:03 
GeneralRe: print button to print a control Pin
fly9048-May-09 11:11
fly9048-May-09 11:11 
Questionautomatic byte conversion? Pin
terradtc8-May-09 10:39
terradtc8-May-09 10:39 
AnswerRe: automatic byte conversion? Pin
Luc Pattyn8-May-09 12:06
sitebuilderLuc Pattyn8-May-09 12:06 
GeneralRe: automatic byte conversion? Pin
terradtc8-May-09 12:31
terradtc8-May-09 12:31 
GeneralRe: automatic byte conversion? Pin
Luc Pattyn8-May-09 12:44
sitebuilderLuc Pattyn8-May-09 12:44 
GeneralRe: automatic byte conversion? Pin
terradtc8-May-09 13:05
terradtc8-May-09 13:05 
GeneralRe: automatic byte conversion? Pin
Luc Pattyn8-May-09 13:25
sitebuilderLuc Pattyn8-May-09 13:25 

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.