Click here to Skip to main content
15,894,630 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB.NET 2005 Printing Help please Pin
harveyhanson25-Feb-07 7:37
harveyhanson25-Feb-07 7:37 
AnswerRe: VB.NET 2005 Printing Help please Pin
TwoFaced25-Feb-07 8:02
TwoFaced25-Feb-07 8:02 
GeneralRe: VB.NET 2005 Printing Help please Pin
harveyhanson25-Feb-07 8:21
harveyhanson25-Feb-07 8:21 
GeneralRe: VB.NET 2005 Printing Help please Pin
TwoFaced25-Feb-07 8:28
TwoFaced25-Feb-07 8:28 
GeneralRe: VB.NET 2005 Printing Help please [modified] Pin
harveyhanson25-Feb-07 8:34
harveyhanson25-Feb-07 8:34 
GeneralRe: VB.NET 2005 Printing Help please Pin
TwoFaced25-Feb-07 8:55
TwoFaced25-Feb-07 8:55 
GeneralRe: VB.NET 2005 Printing Help please Pin
harveyhanson25-Feb-07 9:09
harveyhanson25-Feb-07 9:09 
QuestionVS 2005 bindingsource using a complex filter Pin
steve_rm25-Feb-07 7:31
steve_rm25-Feb-07 7:31 
Hello,

I am binding a bindingsource to a datagridview and I have set the bindingsource to filter based on conditions.

However, I think that the criteria i have is too complex to put in the filter.

Is there an easier method to use.

I will try my best to explain the criteria:
AssemblyID, category, Type

Type (components, equipment, software)

Category - software (Office, DB, Anti-virus)
Category - components(memory, processor, input)
Category - equipment(printers, display, keyboard)

For example the customer could select from some combo boxes the category that want to display for that type.

I have tried doing something with the string.format e.g.
[code]
dim criteria as string = string.empty
criteria = string.format(AssemblyID = {0} AND Category = {1} AND Type = {2}",assemblyID, cboSoftware.text, cboType.text)

bindingsource.filter = criteria
dgvParts.datasource = bindingSource
[/code]
The above didn't work, so sure that filter can handle it.

Another problem I have is that i need to display many combinations for instance the user could select either software, components, or software. and the individual category for each one.

For example the user could select to find software and the category CPU, and also display components with category memory.

I think to solve this problem I would have to write many if statements, which I want to avoid doing. Is there a better more cleaner method to do this.

Many thanks for any suggestions.

Steve
Questionkeeping a class in scope Pin
cstrader23225-Feb-07 7:14
cstrader23225-Feb-07 7:14 
AnswerRe: keeping a class in scope Pin
Christian Graus25-Feb-07 8:47
protectorChristian Graus25-Feb-07 8:47 
GeneralRe: keeping a class in scope Pin
cstrader23225-Feb-07 8:54
cstrader23225-Feb-07 8:54 
GeneralRe: keeping a class in scope Pin
cstrader23225-Feb-07 9:03
cstrader23225-Feb-07 9:03 
GeneralRe: keeping a class in scope Pin
Christian Graus25-Feb-07 10:01
protectorChristian Graus25-Feb-07 10:01 
GeneralRe: keeping a class in scope Pin
cstrader23225-Feb-07 16:22
cstrader23225-Feb-07 16:22 
GeneralRe: keeping a class in scope Pin
Christian Graus25-Feb-07 17:08
protectorChristian Graus25-Feb-07 17:08 
QuestionDatagrid and MS Access Pin
China-Gary25-Feb-07 5:19
China-Gary25-Feb-07 5:19 
QuestionCreating a Picture Box Pin
Klazen25-Feb-07 4:28
Klazen25-Feb-07 4:28 
AnswerRe: Creating a Picture Box Pin
Dave Kreskowiak25-Feb-07 6:06
mveDave Kreskowiak25-Feb-07 6:06 
GeneralRe: Creating a Picture Box Pin
Klazen25-Feb-07 9:52
Klazen25-Feb-07 9:52 
Questionxml iterator Pin
chater buster25-Feb-07 3:57
chater buster25-Feb-07 3:57 
Questionretrieving thr Explorer folder menu. Possible? Pin
BenedictArf25-Feb-07 0:44
BenedictArf25-Feb-07 0:44 
Questionmultiple forms [modified] Pin
manni_n24-Feb-07 22:06
manni_n24-Feb-07 22:06 
AnswerRe: multiple forms Pin
JUNEYT24-Feb-07 23:54
JUNEYT24-Feb-07 23:54 
GeneralRe: multiple forms Pin
manni_n25-Feb-07 0:29
manni_n25-Feb-07 0:29 
GeneralRe: multiple forms Pin
JUNEYT25-Feb-07 1:09
JUNEYT25-Feb-07 1:09 

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.