Click here to Skip to main content
15,890,438 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionMonitor CPU Pin
nitin_ion1-Dec-05 22:25
nitin_ion1-Dec-05 22:25 
AnswerRe: Monitor CPU Pin
[Marc]2-Dec-05 3:51
[Marc]2-Dec-05 3:51 
Questionhow can i receive the ip address from a remote client? Pin
yuvalda11-Dec-05 21:16
yuvalda11-Dec-05 21:16 
QuestionDetermine Printer Port Pin
thebread1-Dec-05 20:34
thebread1-Dec-05 20:34 
AnswerRe: Determine Printer Port Pin
Duncan Edwards Jones1-Dec-05 23:08
professionalDuncan Edwards Jones1-Dec-05 23:08 
GeneralRe: Determine Printer Port Pin
thebread2-Dec-05 2:37
thebread2-Dec-05 2:37 
QuestionBinding Textbox with 2 tables. Pin
Bhavna Varshney1-Dec-05 20:22
Bhavna Varshney1-Dec-05 20:22 
QuestionProblem in Image saving Pin
Anindya Chatterjee1-Dec-05 20:18
Anindya Chatterjee1-Dec-05 20:18 
Hi,
I am new in VB.net. I have a problem while debugging a windows application, which will read a bmp image and save it after processing. I used the following code

//Opening an image
private sub button1_click (Byval sender as object,Byval e as system.eventergs)

dim odlg as new openfiledialog()
odlg.filter = "Bitmap(*.bmp)|*.bmp"
if (odlg.showdialog=dialogresult.ok) then
picturebox1.image = image.fromfile(odlg.filename)
picturebox1.invalidate()
end if
end sub

//Saving an Image
private sub button2_click (Byval sender as object,Byval e as system.eventergs)

dim sdlg as new savefiledialog()
sdlg.filter = "Bitmap(*.bmp)|*.bmp"
if (sdlg.showdialog=dialogresult.ok) then
picturebox1.image.save(sdlg.filename)
picturebox1.invalidate()
end if
end sub

While I open an image "b.bmp" and after processing it want to overwrite the file with the same filename (b.bmp) an error occurs, saying:

"An unhandled exception of type
System.Runtime.InteropServices.ExternalException occurred in System.Drawing.dll

Additional information: A generic error occurred in GDI+."

What should I do now, how can i overcome this problem?

Please help me. Thanks in advance.



Anindya Chatterjee
Questionhow to add a combobox to a datagrid column Pin
jayendra_wani1-Dec-05 18:53
jayendra_wani1-Dec-05 18:53 
AnswerRe: how to add a combobox to a datagrid column Pin
abhinish1-Dec-05 20:39
abhinish1-Dec-05 20:39 
Question[Message Deleted] Pin
Roy_Joseph1-Dec-05 18:26
Roy_Joseph1-Dec-05 18:26 
AnswerRe: ms-sql server database-bkp & restore Using VB6 Pin
abhinish2-Dec-05 19:56
abhinish2-Dec-05 19:56 
GeneralRe: ms-sql server database-bkp & restore Using VB6 Pin
Roy_Joseph5-Dec-05 19:55
Roy_Joseph5-Dec-05 19:55 
QuestionVB.Net Controls: Default-Value of a Property Pin
vocaris1-Dec-05 13:44
vocaris1-Dec-05 13:44 
AnswerRe: VB.Net Controls: Default-Value of a Property Pin
Christian Graus1-Dec-05 14:11
protectorChristian Graus1-Dec-05 14:11 
GeneralRe: VB.Net Controls: Default-Value of a Property Pin
vocaris2-Dec-05 2:23
vocaris2-Dec-05 2:23 
AnswerRe: VB.Net Controls: Default-Value of a Property Pin
[Marc]2-Dec-05 4:01
[Marc]2-Dec-05 4:01 
GeneralRe: VB.Net Controls: Default-Value of a Property Pin
vocaris2-Dec-05 5:02
vocaris2-Dec-05 5:02 
QuestionPublic Integers........ Pin
daviiie1-Dec-05 13:42
daviiie1-Dec-05 13:42 
AnswerRe: Public Integers........ Pin
Christian Graus1-Dec-05 14:13
protectorChristian Graus1-Dec-05 14:13 
AnswerRe: Public Integers........ Pin
tusar1231-Dec-05 18:11
tusar1231-Dec-05 18:11 
Questionserver socket instance blocking Pin
mpage1-Dec-05 12:06
mpage1-Dec-05 12:06 
QuestionGraphics flickering in VB6 Pin
Hoopla!1-Dec-05 11:56
Hoopla!1-Dec-05 11:56 
AnswerRe: Graphics flickering in VB6 Pin
Christian Graus1-Dec-05 12:14
protectorChristian Graus1-Dec-05 12:14 
GeneralRe: Graphics flickering in VB6 Pin
Hoopla!1-Dec-05 14:28
Hoopla!1-Dec-05 14:28 

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.