Click here to Skip to main content
16,005,734 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: to create a file and folder browser in VB.Net Pin
dash_ashu1-Apr-06 1:06
dash_ashu1-Apr-06 1:06 
Questiondisplaying the member panel upon login Pin
uglyeyes31-Mar-06 17:38
uglyeyes31-Mar-06 17:38 
QuestionHow to make a drop down menu cross frameset Pin
Julianne_juju31-Mar-06 15:44
Julianne_juju31-Mar-06 15:44 
QuestionNewbie Question: Loading Forms Pin
ThePmanLives31-Mar-06 15:19
ThePmanLives31-Mar-06 15:19 
AnswerRe: Newbie Question: Loading Forms Pin
Chatura Dilan31-Mar-06 15:59
Chatura Dilan31-Mar-06 15:59 
QuestionEvents Button Pin
MarkMokris31-Mar-06 10:28
MarkMokris31-Mar-06 10:28 
AnswerRe: Events Button Pin
Dave Kreskowiak31-Mar-06 13:19
mveDave Kreskowiak31-Mar-06 13:19 
QuestionResize jpeg files Pin
Dennis Huisman31-Mar-06 5:59
Dennis Huisman31-Mar-06 5:59 
HELP!!
I need to resize jpeg files in a directory.
When I resize them in Picture Manager (Office 2003) they show on our webshop.
When I use the code below, the image is not shown.
In Photoshop I cannot open them either!!

Can you give me a solution to do this for a Windows Forms application (VB.NET)

Thanks in advance.

Dennis

' Get the scale factor.
Dim scale_factor As Single = _
Single.Parse("0,332")
' Get the source bitmap.
Dim bm_source As New Bitmap(picSource.Image)
' Make a bitmap for the result.
Dim bm_dest As New Bitmap( _
CInt(bm_source.Width * scale_factor), _
CInt(bm_source.Height * scale_factor))
' Make a Graphics object for the result Bitmap.
Dim gr_dest As Graphics = _
Graphics.FromImage(bm_dest)
' Copy the source image into the destination bitmap
gr_dest.DrawImage(bm_source, 0, 0, _
bm_dest.Width + 1, bm_dest.Height + 1)
' Display the result.
picDest.Image = bm_dest
bm_dest.Save("c:\16344test.jpg")
Questiongettinig insert error and need help Pin
MeterMan31-Mar-06 5:53
MeterMan31-Mar-06 5:53 
AnswerRe: gettinig insert error and need help Pin
Paradise Bride31-Mar-06 6:35
Paradise Bride31-Mar-06 6:35 
GeneralRe: gettinig insert error and need help Pin
MeterMan31-Mar-06 8:38
MeterMan31-Mar-06 8:38 
AnswerRe: gettinig insert error and need help Pin
Dave Kreskowiak31-Mar-06 9:23
mveDave Kreskowiak31-Mar-06 9:23 
GeneralRe: gettinig insert error and need help Pin
MeterMan31-Mar-06 16:22
MeterMan31-Mar-06 16:22 
Questiondealing with more than table Pin
Paradise Bride31-Mar-06 5:02
Paradise Bride31-Mar-06 5:02 
QuestionCalling unmanaged function Pin
mosquitooth31-Mar-06 4:45
mosquitooth31-Mar-06 4:45 
Questionbarcode scanner Pin
SVb.net31-Mar-06 3:30
SVb.net31-Mar-06 3:30 
AnswerRe: barcode scanner Pin
J4amieC31-Mar-06 3:43
J4amieC31-Mar-06 3:43 
Question[Message Deleted] Pin
campbells31-Mar-06 2:42
campbells31-Mar-06 2:42 
GeneralRe: cant add data to access??? Pin
Guffa31-Mar-06 4:37
Guffa31-Mar-06 4:37 
AnswerRe: cant add data to access??? Pin
Vikrant Badhai31-Mar-06 21:07
Vikrant Badhai31-Mar-06 21:07 
GeneralRe: cant add data to access??? Pin
MohammadAmiry31-Mar-06 22:25
MohammadAmiry31-Mar-06 22:25 
QuestionRemoving Visual Studio 2003 Pin
MatthysDT31-Mar-06 1:43
MatthysDT31-Mar-06 1:43 
AnswerRe: Removing Visual Studio 2003 Pin
CWIZO31-Mar-06 2:17
CWIZO31-Mar-06 2:17 
GeneralRe: Removing Visual Studio 2003 Pin
MatthysDT31-Mar-06 2:26
MatthysDT31-Mar-06 2:26 
GeneralRe: Removing Visual Studio 2003 Pin
J4amieC31-Mar-06 2:33
J4amieC31-Mar-06 2:33 

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.