Click here to Skip to main content
15,914,594 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to add all fonts in a combo Pin
The Man from U.N.C.L.E.31-Jul-07 8:05
The Man from U.N.C.L.E.31-Jul-07 8:05 
GeneralRe: how to add all fonts in a combo Pin
eyes200731-Jul-07 19:51
eyes200731-Jul-07 19:51 
QuestionEmailing data Pin
IETaxguard31-Jul-07 4:02
IETaxguard31-Jul-07 4:02 
AnswerRe: Emailing data Pin
Dave Kreskowiak31-Jul-07 7:18
mveDave Kreskowiak31-Jul-07 7:18 
Questioninserting records using vb.net Pin
jds120731-Jul-07 3:41
jds120731-Jul-07 3:41 
AnswerRe: inserting records using vb.net Pin
Tim Carmichael31-Jul-07 3:50
Tim Carmichael31-Jul-07 3:50 
QuestionThe Scope of the Adapter in the Following code Pin
Vimalsoft(Pty) Ltd31-Jul-07 3:16
professionalVimalsoft(Pty) Ltd31-Jul-07 3:16 
AnswerRe: The Scope of the Adapter in the Following code Pin
Dave Kreskowiak31-Jul-07 7:13
mveDave Kreskowiak31-Jul-07 7:13 
The scope as you've written the code, is the life of the Form_Load sub. Anything you Dim in the Sub is destroyed when execution leaves the Sub.


Vuyiswamb wrote:
1) how can i declare the adapter and the connection objects to be on the same scope when you drag and drop them on the form?


You can't. Their code is created in different places.


Vuyiswamb wrote:
2)And from my search, am searching from a Field that has (## ## ## ## ##) numbers in a string Field, and i have to rearch by retrieving the first four,i can do that in SQL by using substring, tell me how can i achieve this and display the data in the datagrid.?


I think you're asking about what the SQL SELECT would look like??
SELECT columns FROM table WHERE someColumn LIKE @Pattern

In your code, you'd add a SqlParameter object, with the parameters name @Pattern to the SqlCommand object this SQL is in and set it's value to something like "39 49 20 10 %". THe percent sign is the "wildcard" and will match anything else after the initial string.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


Questionmove the toolbar in program Pin
eyes200731-Jul-07 1:29
eyes200731-Jul-07 1:29 
AnswerRe: move the toolbar in program Pin
Tom Deketelaere31-Jul-07 1:46
professionalTom Deketelaere31-Jul-07 1:46 
GeneralRe: move the toolbar in program Pin
eyes200731-Jul-07 2:46
eyes200731-Jul-07 2:46 
GeneralRe: move the toolbar in program Pin
MartyK200731-Jul-07 3:17
MartyK200731-Jul-07 3:17 
GeneralRe: move the toolbar in program Pin
Tom Deketelaere31-Jul-07 3:25
professionalTom Deketelaere31-Jul-07 3:25 
GeneralRe: move the toolbar in program Pin
Tom Deketelaere31-Jul-07 20:59
professionalTom Deketelaere31-Jul-07 20:59 
GeneralRe: move the toolbar in program [modified] Pin
eyes200731-Jul-07 4:22
eyes200731-Jul-07 4:22 
QuestionUpdating a control via a Thread Pin
portech31-Jul-07 1:08
portech31-Jul-07 1:08 
AnswerRe: Updating a control via a Thread Pin
Luc Pattyn31-Jul-07 1:15
sitebuilderLuc Pattyn31-Jul-07 1:15 
QuestionSet focus to a tabpage Pin
Sadiq Parker31-Jul-07 0:40
Sadiq Parker31-Jul-07 0:40 
AnswerRe: Set focus to a tabpage Pin
Christian Graus31-Jul-07 0:47
protectorChristian Graus31-Jul-07 0:47 
GeneralRe: Set focus to a tabpage [modified] Pin
Tom Deketelaere31-Jul-07 1:39
professionalTom Deketelaere31-Jul-07 1:39 
GeneralRe: Set focus to a tabpage Pin
SamRST31-Jul-07 4:12
SamRST31-Jul-07 4:12 
GeneralRe: Set focus to a tabpage Pin
Tom Deketelaere31-Jul-07 4:47
professionalTom Deketelaere31-Jul-07 4:47 
GeneralRe: Set focus to a tabpage Pin
SamRST31-Jul-07 4:13
SamRST31-Jul-07 4:13 
QuestionUrgent connection pooling Pin
viralbhatt30-Jul-07 23:09
viralbhatt30-Jul-07 23:09 
AnswerRe: Urgent connection pooling Pin
Christian Graus31-Jul-07 0:23
protectorChristian Graus31-Jul-07 0:23 

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.