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

Visual Basic

 
QuestionStrange problem: radiobutton checkchanged triggerd wen not wanted Pin
Tom Deketelaere25-Jul-07 23:14
professionalTom Deketelaere25-Jul-07 23:14 
AnswerRe: Strange problem: radiobutton checkchanged triggerd wen not wanted Pin
Dave Kreskowiak26-Jul-07 3:22
mveDave Kreskowiak26-Jul-07 3:22 
GeneralRe: Strange problem: radiobutton checkchanged triggerd wen not wanted Pin
Tom Deketelaere27-Jul-07 3:06
professionalTom Deketelaere27-Jul-07 3:06 
GeneralRe: Strange problem: radiobutton checkchanged triggerd wen not wanted Pin
Dave Kreskowiak28-Jul-07 1:56
mveDave Kreskowiak28-Jul-07 1:56 
GeneralRe: Strange problem: radiobutton checkchanged triggerd wen not wanted Pin
Tom Deketelaere28-Jul-07 4:17
professionalTom Deketelaere28-Jul-07 4:17 
GeneralRe: Strange problem: radiobutton checkchanged triggerd wen not wanted Pin
Tom Deketelaere29-Jul-07 21:02
professionalTom Deketelaere29-Jul-07 21:02 
GeneralRe: Strange problem: radiobutton checkchanged triggerd wen not wanted Pin
Dave Kreskowiak31-Jul-07 4:27
mveDave Kreskowiak31-Jul-07 4:27 
GeneralRe: Strange problem: radiobutton checkchanged triggerd wen not wanted Pin
Tom Deketelaere31-Jul-07 5:02
professionalTom Deketelaere31-Jul-07 5:02 
Dave Kreskowiak wrote:
I've just been really damn busy both at work and home


I can tottaly understand that, I sleep about 5 hours a night and the rest of the time I work and still haven't got enough time so...

there isn't a table behind it.
maybe if I explain a bit better what the meaning of it you'll understand better so here I go (trying very hard):

I have a project where the user has to be able to search for records by filters he can set himself.
So I designed a form (frmsearch) that would do that and made that form dynamicly so that I can reuse it everywhere I want (I'm very lasy (don't like to copy paste or do the same thing to much);P)
here is how such a form would look like(described)

(label)name:
inside groupbox 3radiobuttons
(radiobutton) rbnot (= no filter)
(radiobutton) rbin (= record field contains whatever the user set in textbox)
(radiobutton) rbnotin (= record field does not contains whatever the user set in textbox)
and then a few more things for design purposes

this way all I have to do in the form that calls frmsearch is the next:

Dim dt As DataTable = clsSearch.createDataTable
        Dim dr As DataRow
        dr = dt.NewRow()
        dr("FieldName") = "ActiviteitTypeCode"
        dr("FieldType") = "string"
        dr("lblField") = "Code:"
        dr("rbNot") = True
        dr("rbIn") = False
        dr("rbNotin") = False
        dr("FlgSearchbtn") = False
        dr("FlgSelection") = True
        dr("FlgFromTo") = False
        dr("txtSelection") = ""
        dr("txtFrom") = ""
        dr("txtTo") = ""
        dt.Rows.Add(dr)
        dr = dt.NewRow()
        dr("FieldName") = "ActiviteitTypeOmschrNLD"
        dr("FieldType") = "string"
        dr("lblField") = "Omschrijving NLD:"
        dr("rbNot") = True
        dr("rbIn") = False
        dr("rbNotin") = False
        dr("FlgSearchbtn") = False
        dr("FlgSelection") = True
        dr("FlgFromTo") = False
        dr("txtSelection") = ""
        dr("txtFrom") = ""
        dr("txtTo") = ""
        dt.Rows.Add(dr)
        dr = dt.NewRow()
        Dim frm As New frmSearch(dt)
        frm.ShowDialog()

then frmsearch returns an sql string (where clause) wich I can use to select the correct data and display it on the form

I hope this clears things up a bit
if not I'm willing to send you the project (or part of it) so you test it for you're self but then I'll need an email account since I can't attach anything here

thanks in advance for all you'r help and time
GeneralRe: Strange problem: radiobutton checkchanged triggerd wen not wanted Pin
Dave Kreskowiak6-Aug-07 7:55
mveDave Kreskowiak6-Aug-07 7:55 
GeneralRe: Strange problem: radiobutton checkchanged triggerd wen not wanted Pin
Tom Deketelaere6-Aug-07 20:53
professionalTom Deketelaere6-Aug-07 20:53 
GeneralRe: Strange problem: radiobutton checkchanged triggerd wen not wanted Pin
Dave Kreskowiak16-Aug-07 17:45
mveDave Kreskowiak16-Aug-07 17:45 
GeneralRe: Strange problem: radiobutton checkchanged triggerd wen not wanted Pin
Tom Deketelaere16-Aug-07 20:52
professionalTom Deketelaere16-Aug-07 20:52 
GeneralRe: Strange problem: radiobutton checkchanged triggerd wen not wanted Pin
Dave Kreskowiak17-Aug-07 1:47
mveDave Kreskowiak17-Aug-07 1:47 
GeneralRe: Strange problem: radiobutton checkchanged triggerd wen not wanted [modified] Pin
Tom Deketelaere17-Aug-07 2:26
professionalTom Deketelaere17-Aug-07 2:26 
GeneralRe: Strange problem: radiobutton checkchanged triggerd wen not wanted Pin
Tom Deketelaere30-Jul-07 5:23
professionalTom Deketelaere30-Jul-07 5:23 
AnswerRe: DataGridView Help Pin
Dave Kreskowiak26-Jul-07 3:26
mveDave Kreskowiak26-Jul-07 3:26 
GeneralRe: DataGridView Help Pin
Paul Conrad26-Jul-07 18:05
professionalPaul Conrad26-Jul-07 18:05 
GeneralRe: DataGridView Help Pin
Dave Kreskowiak27-Jul-07 1:40
mveDave Kreskowiak27-Jul-07 1:40 
GeneralRe: DataGridView Help Pin
Paul Conrad27-Jul-07 7:31
professionalPaul Conrad27-Jul-07 7:31 
QuestionProblem in reading data from any hardware device like Time access machine Pin
pathak7825-Jul-07 22:45
pathak7825-Jul-07 22:45 
AnswerRe: Problem in reading data from any hardware device like Time access machine Pin
Tom Deketelaere26-Jul-07 1:32
professionalTom Deketelaere26-Jul-07 1:32 
Questionhow to display the date column as it is in datagrid Pin
chiyankrishna25-Jul-07 22:18
chiyankrishna25-Jul-07 22:18 
AnswerRe: how to display the date column as it is in datagrid Pin
Dave Kreskowiak26-Jul-07 3:16
mveDave Kreskowiak26-Jul-07 3:16 
AnswerRe: how to display the date column as it is in datagrid Pin
NEO ISSA26-Jul-07 12:00
NEO ISSA26-Jul-07 12:00 
Questionsingelton classes Pin
Tauseef A25-Jul-07 22:03
Tauseef A25-Jul-07 22:03 

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.