Click here to Skip to main content
15,903,033 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Combobox problem Pin
Tom Deketelaere7-Sep-07 2:22
professionalTom Deketelaere7-Sep-07 2:22 
GeneralRe: Combobox problem Pin
Xerox47-Sep-07 2:34
professionalXerox47-Sep-07 2:34 
GeneralRe: Combobox problem Pin
Tom Deketelaere7-Sep-07 4:56
professionalTom Deketelaere7-Sep-07 4:56 
GeneralRe: Combobox problem Pin
plural7-Sep-07 2:25
plural7-Sep-07 2:25 
AnswerRe: Combobox problem Pin
Dave Kreskowiak7-Sep-07 5:49
mveDave Kreskowiak7-Sep-07 5:49 
GeneralRe: Combobox problem Pin
Xerox49-Sep-07 19:47
professionalXerox49-Sep-07 19:47 
QuestionCan any one help me for image displaying Pin
Senthil S7-Sep-07 1:01
Senthil S7-Sep-07 1:01 
AnswerRe: Can any one help me for image displaying Pin
SHatchard7-Sep-07 2:23
SHatchard7-Sep-07 2:23 
I am not sure of the specifics of the problem but a couple of suggestions

1. You are calling getbytes twice, you should perhaps read these into a variable so you only have to do this once, see below

Dim bytes as byte() = CType(rd("img"), Byte())

You can then use bytes.length when you need it. Should be more efficient that way.

2. You are leaving yourself open to SQL injection attacks with the inline sql command coming directly from a control - I would at least put something like

Dim imageId as integer = Me.NumericUpDown1.Value

and use this value - that would mean that an exception would be thrown if someone tried to inject.


You may find that making the change in point 1 fixes the problem, might be worth a shot.

GeneralRe: Can any one help me for image displaying Pin
Tom Deketelaere7-Sep-07 2:28
professionalTom Deketelaere7-Sep-07 2:28 
Questionpop3 client Pin
nicetohaveyou7-Sep-07 0:45
nicetohaveyou7-Sep-07 0:45 
AnswerRe: pop3 client Pin
Vimalsoft(Pty) Ltd7-Sep-07 1:39
professionalVimalsoft(Pty) Ltd7-Sep-07 1:39 
AnswerRe: pop3 client Pin
Dave Kreskowiak7-Sep-07 5:19
mveDave Kreskowiak7-Sep-07 5:19 
QuestionCalling Stored SQL Functions from Visual Basic Pin
Mark Cabbage6-Sep-07 23:08
Mark Cabbage6-Sep-07 23:08 
AnswerRe: Calling Stored SQL Functions from Visual Basic Pin
Colin Angus Mackay6-Sep-07 23:58
Colin Angus Mackay6-Sep-07 23:58 
AnswerRe: Calling Stored SQL Functions from Visual Basic Pin
Duncan Edwards Jones7-Sep-07 2:51
professionalDuncan Edwards Jones7-Sep-07 2:51 
GeneralRe: Calling Stored SQL Functions from Visual Basic Pin
Mark Cabbage8-Sep-07 14:42
Mark Cabbage8-Sep-07 14:42 
Questiona case with checkbox (selected and shadow) Pin
nicetohaveyou6-Sep-07 21:24
nicetohaveyou6-Sep-07 21:24 
AnswerRe: a case with checkbox (selected and shadow) Pin
Tom Deketelaere6-Sep-07 22:05
professionalTom Deketelaere6-Sep-07 22:05 
QuestionSorting Collection with 200000+ Items Pin
MadmanWoo6-Sep-07 21:02
MadmanWoo6-Sep-07 21:02 
AnswerRe: Sorting Collection with 200000+ Items Pin
Tom Deketelaere6-Sep-07 22:11
professionalTom Deketelaere6-Sep-07 22:11 
AnswerRe: Sorting Collection with 200000+ Items Pin
GuyThiebaut6-Sep-07 23:05
professionalGuyThiebaut6-Sep-07 23:05 
GeneralRe: Sorting Collection with 200000+ Items Pin
MadmanWoo10-Sep-07 15:49
MadmanWoo10-Sep-07 15:49 
Questionpls help its urgent [modified] Pin
shyne76-Sep-07 20:39
shyne76-Sep-07 20:39 
AnswerRe: pls help its urgent Pin
Tom Deketelaere6-Sep-07 22:18
professionalTom Deketelaere6-Sep-07 22:18 
Questionits urgent Pin
Lucky Sheikh6-Sep-07 20:00
Lucky Sheikh6-Sep-07 20:00 

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.