Click here to Skip to main content
15,905,679 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionShell Command in vb6 Pin
TechPal29-Mar-07 9:49
TechPal29-Mar-07 9:49 
AnswerRe: Shell Command in vb6 Pin
Dave Kreskowiak29-Mar-07 10:33
mveDave Kreskowiak29-Mar-07 10:33 
QuestionSave a bitmap image Pin
sonyama29-Mar-07 7:30
sonyama29-Mar-07 7:30 
AnswerRe: Save a bitmap image Pin
TwoFaced29-Mar-07 7:37
TwoFaced29-Mar-07 7:37 
GeneralRe: Save a bitmap image Pin
sonyama29-Mar-07 15:15
sonyama29-Mar-07 15:15 
GeneralRe: Save a bitmap image Pin
Christian Graus29-Mar-07 15:28
protectorChristian Graus29-Mar-07 15:28 
GeneralRe: Save a bitmap image Pin
TwoFaced29-Mar-07 17:18
TwoFaced29-Mar-07 17:18 
GeneralRe: Save a bitmap image Pin
sonyama30-Mar-07 3:57
sonyama30-Mar-07 3:57 
Dim x As Integer, y As Integer
Dim bmpIn As New Bitmap(fInName)
Dim fs As New IO.FileStream(fOutName, IO.FileMode.Open, FileAccess.Write)
Dim bmpOut As New Bitmap(fs)
For x = 0 To bmpIn.Height - 1
For y = 0 To bmpIn.Width - 1
bmpOut.SetPixel(x, y, bmpIn.GetPixel(x, y))
Next
Next
bmpOut.Save(fOutName, System.Drawing.Imaging.ImageFormat.Bmp)
fs.Dispose()
I've tried but failed with the error statement "Parameter is not vail" which can be describled in detail that:
System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap..ctor(Stream stream)
at IP.frmMain.SubMenuSave_Click(Object sender, EventArgs e) in D:\Thu_Vien\Documents\Studying Files\Image Processing\IP.NET\IP\IP\frmMain.vb:line 97
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
What should I do??? Confused | :confused:
GeneralRe: Save a bitmap image Pin
TwoFaced31-Mar-07 11:59
TwoFaced31-Mar-07 11:59 
QuestionHow can i use DropDownList? Pin
mghiassi29-Mar-07 7:01
mghiassi29-Mar-07 7:01 
AnswerRe: How can i use DropDownList? Pin
kubben29-Mar-07 7:31
kubben29-Mar-07 7:31 
GeneralRe: How can i use DropDownList? Pin
mghiassi30-Mar-07 6:47
mghiassi30-Mar-07 6:47 
QuestionIs Date? Pin
KreativeKai29-Mar-07 6:27
professionalKreativeKai29-Mar-07 6:27 
AnswerRe: Is Date? Pin
mghiassi29-Mar-07 6:54
mghiassi29-Mar-07 6:54 
GeneralRe: Is Date? Pin
KreativeKai29-Mar-07 8:03
professionalKreativeKai29-Mar-07 8:03 
AnswerRe: Is Date? Pin
Guffa29-Mar-07 9:16
Guffa29-Mar-07 9:16 
AnswerRe: Is Date? Pin
HemMagesh29-Mar-07 20:19
HemMagesh29-Mar-07 20:19 
QuestionSetting a Hyperlink in the Event Log Pin
ONeil Tomlinson29-Mar-07 4:32
ONeil Tomlinson29-Mar-07 4:32 
AnswerRe: Setting a Hyperlink in the Event Log Pin
Vasudevan Deepak Kumar29-Mar-07 6:11
Vasudevan Deepak Kumar29-Mar-07 6:11 
Questionlicense key Pin
balakpn29-Mar-07 1:36
balakpn29-Mar-07 1:36 
AnswerRe: license key Pin
Vasudevan Deepak Kumar29-Mar-07 6:13
Vasudevan Deepak Kumar29-Mar-07 6:13 
AnswerRe: license key Pin
Christian Graus29-Mar-07 15:29
protectorChristian Graus29-Mar-07 15:29 
GeneralRe: license key Pin
balakpn2-Apr-07 18:49
balakpn2-Apr-07 18:49 
Questionlicense key Pin
balakpn29-Mar-07 1:36
balakpn29-Mar-07 1:36 
AnswerRe: license key Pin
Vasudevan Deepak Kumar29-Mar-07 6:12
Vasudevan Deepak Kumar29-Mar-07 6:12 

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.