Click here to Skip to main content
15,913,941 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionprinting more than one report in CR Pin
microuser_200028-Apr-06 23:58
microuser_200028-Apr-06 23:58 
QuestionHow to Write a Vertical Text In Graphic Mode in VB.NET Pin
alialikh28-Apr-06 20:54
alialikh28-Apr-06 20:54 
AnswerRe: How to Write a Vertical Text In Graphic Mode in VB.NET Pin
Ed.Poore28-Apr-06 23:38
Ed.Poore28-Apr-06 23:38 
GeneralRe: How to Write a Vertical Text In Graphic Mode in VB.NET Pin
alialikh29-Apr-06 1:58
alialikh29-Apr-06 1:58 
QuestionResizing Images in VB.Net Pin
JoeySmith28-Apr-06 14:36
JoeySmith28-Apr-06 14:36 
AnswerRe: Resizing Images in VB.Net Pin
Yuvi Panda28-Apr-06 20:15
Yuvi Panda28-Apr-06 20:15 
AnswerRe: Resizing Images in VB.Net Pin
Bhanwar Gupta28-Apr-06 20:40
Bhanwar Gupta28-Apr-06 20:40 
GeneralRe: Resizing Images in VB.Net Pin
JoeySmith29-Apr-06 0:50
JoeySmith29-Apr-06 0:50 
Thanks for the replies that I recieved. While they helped inresizing the image it wasn't really what I was looking for. I wanted the image resized then saved as the new size. The two snippets suggested simply resized the view of the image. I did, however, find this bit of code which worked nicely after I tailored it a bit.

        Dim syspath As String<br />
        syspath = Environ("systemroot")<br />
<br />
        Dim bm As New Bitmap(picLogo.Image)<br />
<br />
        Dim myX As Integer<br />
<br />
        Dim myY As Integer<br />
<br />
        myX = Val(148)<br />
<br />
        myY = Val(119)<br />
<br />
        Dim thumb As New Bitmap(myX, myY)<br />
<br />
        Dim g As Graphics = Graphics.FromImage(thumb)<br />
<br />
        g.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic<br />
<br />
        g.DrawImage(bm, New Rectangle(0, 0, myX, myY), New Rectangle(0, 0, bm.Width, _<br />
bm.Height), GraphicsUnit.Pixel)<br />
<br />
        g.Dispose()<br />
<br />
<br />
<br />
        thumb.Save(syspath & "\system32\oemlogo.bmp", _<br />
System.Drawing.Imaging.ImageFormat.Bmp)<br />
<br />
        bm.Dispose()<br />
<br />
        thumb.Dispose()<br />
<br />
        Me.Close()  'exit app<br />


If someone knows of a cleaner/smaller way of doing this feel free to suggest it

._._._._._.-.-.-.-.-._._._._._.-.-.-.-.-._._._._._.-.-.-.-.-
Spimoles.NET

clean and elegant. a beautiful craft


QuestionVirtual KeyCode to ASCII Pin
daveime28-Apr-06 12:33
daveime28-Apr-06 12:33 
QuestionHow to connect VB6 to MSExel Pin
Jijo thomas28-Apr-06 9:12
Jijo thomas28-Apr-06 9:12 
AnswerRe: How to connect VB6 to MSExel Pin
Garner T29-Apr-06 17:36
Garner T29-Apr-06 17:36 
Questiondatarow array Pin
G7236028-Apr-06 9:08
G7236028-Apr-06 9:08 
GeneralRe: datarow array Pin
Guffa28-Apr-06 10:22
Guffa28-Apr-06 10:22 
GeneralRe: datarow array Pin
G7236028-Apr-06 10:31
G7236028-Apr-06 10:31 
QuestionDeveloping Torrent Client Pin
DH Julio28-Apr-06 6:31
DH Julio28-Apr-06 6:31 
AnswerRe: Developing Torrent Client Pin
progload28-Apr-06 9:49
progload28-Apr-06 9:49 
GeneralRe: Developing Torrent Client Pin
DH Julio29-Apr-06 8:41
DH Julio29-Apr-06 8:41 
GeneralRe: Developing Torrent Client Pin
progload29-Apr-06 13:00
progload29-Apr-06 13:00 
Questionthis is abt Nbaiss Pin
Mohammed Amine28-Apr-06 5:05
Mohammed Amine28-Apr-06 5:05 
Questionplease can you separate them ??Date &amp; time Pin
Mohammed Amine28-Apr-06 5:01
Mohammed Amine28-Apr-06 5:01 
AnswerRe: please can you separate them ??Date & time Pin
mr_1234528-Apr-06 5:06
mr_1234528-Apr-06 5:06 
GeneralRe: please can you separate them ??Date & time Pin
Mohammed Amine28-Apr-06 5:07
Mohammed Amine28-Apr-06 5:07 
QuestionTRANSFER VIDEO.AVI Pin
izzah_mustapha28-Apr-06 4:36
izzah_mustapha28-Apr-06 4:36 
QuestionLogon to system Pin
nitin_ion28-Apr-06 2:27
nitin_ion28-Apr-06 2:27 
GeneralRe: Logon to system Pin
Tim Carmichael28-Apr-06 7:42
Tim Carmichael28-Apr-06 7:42 

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.