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

Visual Basic

 
GeneralRe: Best way to stream video? Pin
Dave Kreskowiak11-Jan-05 9:02
mveDave Kreskowiak11-Jan-05 9:02 
GeneralMoving page to the location of a textbox Pin
Member 162996410-Jan-05 8:57
Member 162996410-Jan-05 8:57 
GeneralFileSystemWatcher HELP!!! Pin
Alex Y.10-Jan-05 3:54
Alex Y.10-Jan-05 3:54 
GeneralAdd complex Numbers Pin
jamieyale10-Jan-05 3:38
jamieyale10-Jan-05 3:38 
GeneralBeingRead() / EndRead() doubt Pin
carlos_rocha10-Jan-05 3:18
carlos_rocha10-Jan-05 3:18 
GeneralGetting error while compiling project Pin
abii55510-Jan-05 1:22
abii55510-Jan-05 1:22 
QuestionHow To Stretch Picture Box Manually Pin
Member 28202610-Jan-05 0:42
Member 28202610-Jan-05 0:42 
GeneralProblem with using multiple comboboxes Pin
Paul Izzo9-Jan-05 21:59
Paul Izzo9-Jan-05 21:59 
I'd like to use 2 comboboxes in my application that views Crystal Reports. My report is a inventory of available material at different warehouse locations. The report needs 2 parameters (from location) and (to location). Essentially I can query inventory from a location (from New York to New York).

My combo boxes alone work fine with the Crystal report viewer but when used together only the second combo box works (to location). As a result I'm promted to add the value for the (to location) a second time.

I want the have my program pass both of the "to" and "from" information from the combo boxes directly into the Crystal report viewer.

Here's the code that I have thus far.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
<br />
        Dim myParameterFields As New ParameterFields<br />
        Dim myParameterField As New ParameterField<br />
        Dim myDiscreteValue As New ParameterDiscreteValue<br />
<br />
        myParameterField.ParameterFieldName = "location_from"<br />
        myDiscreteValue.Value = ComboBox1.Text<br />
        myParameterField.CurrentValues.Add(myDiscreteValue)<br />
<br />
        myParameterField.ParameterFieldName = "location_to"<br />
        myDiscreteValue.Value = ComboBox2.Text<br />
        myParameterField.CurrentValues.Add(myDiscreteValue)<br />
<br />
        myParameterFields.Add(myParameterField)<br />
<br />
        CrystalReportViewer1.ParameterFieldInfo = myParameterFields<br />
<br />
        CrystalReportViewer1.ReportSource = New Lager_best_XL<br />
        CrystalReportViewer1.Refresh()<br />
<br />
<br />
    End Sub

GeneralRe: Problem with using multiple comboboxes Pin
Anonymous9-Jan-05 22:43
Anonymous9-Jan-05 22:43 
GeneralRe: Problem with using multiple comboboxes Pin
Paul Izzo9-Jan-05 23:00
Paul Izzo9-Jan-05 23:00 
GeneralRe: Problem with using multiple comboboxes Pin
Anonymous9-Jan-05 23:18
Anonymous9-Jan-05 23:18 
GeneralRe: Problem with using multiple comboboxes Pin
Paul Izzo10-Jan-05 1:20
Paul Izzo10-Jan-05 1:20 
GeneralRe: Problem with using multiple comboboxes Pin
Anonymous11-Jan-05 18:07
Anonymous11-Jan-05 18:07 
GeneralRe: Problem with using multiple comboboxes Pin
Paul Izzo11-Jan-05 20:23
Paul Izzo11-Jan-05 20:23 
GeneralChange raw data string's Font and size in printing Pin
Greeky9-Jan-05 21:13
Greeky9-Jan-05 21:13 
GeneralRe: Change raw data string's Font and size in printing Pin
Dave Kreskowiak10-Jan-05 3:35
mveDave Kreskowiak10-Jan-05 3:35 
GeneralRe: Change raw data string's Font and size in printing Pin
Just Greeky Creek11-Jan-05 21:09
Just Greeky Creek11-Jan-05 21:09 
Generaladding date Pin
GaryKoh9-Jan-05 19:01
GaryKoh9-Jan-05 19:01 
GeneralRe: adding date Pin
Robert Rohde9-Jan-05 20:04
Robert Rohde9-Jan-05 20:04 
GeneralRe: adding date Pin
GaryKoh10-Jan-05 3:15
GaryKoh10-Jan-05 3:15 
GeneralRe: adding date Pin
Robert Rohde10-Jan-05 3:21
Robert Rohde10-Jan-05 3:21 
GeneralRe: adding date Pin
Sebastien Lachance10-Jan-05 3:45
Sebastien Lachance10-Jan-05 3:45 
GeneralOpenFileDialog Pin
G-Viking9-Jan-05 9:38
G-Viking9-Jan-05 9:38 
GeneralRe: OpenFileDialog Pin
Robert Rohde9-Jan-05 20:07
Robert Rohde9-Jan-05 20:07 
GeneralRe: OpenFileDialog Pin
G-Viking9-Jan-05 22:19
G-Viking9-Jan-05 22:19 

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.