Click here to Skip to main content
15,898,035 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Login through HttpWebRequest? Pin
AliAmjad9-May-08 9:44
AliAmjad9-May-08 9:44 
GeneralRe: Login through HttpWebRequest? Pin
Dave Kreskowiak9-May-08 9:56
mveDave Kreskowiak9-May-08 9:56 
GeneralRe: Login through HttpWebRequest? Pin
AliAmjad9-May-08 10:20
AliAmjad9-May-08 10:20 
GeneralRe: Login through HttpWebRequest? Pin
Dave Kreskowiak9-May-08 10:39
mveDave Kreskowiak9-May-08 10:39 
GeneralRe: Login through HttpWebRequest? Pin
AliAmjad9-May-08 22:35
AliAmjad9-May-08 22:35 
GeneralRe: Login through HttpWebRequest? Pin
Dave Kreskowiak10-May-08 5:49
mveDave Kreskowiak10-May-08 5:49 
GeneralRe: Login through HttpWebRequest? Pin
AliAmjad12-May-08 1:31
AliAmjad12-May-08 1:31 
QuestionCreating Button's Dynamicaly Pin
jacko8739-May-08 7:37
jacko8739-May-08 7:37 
I am trying to make a epos for a bar as a uni project have spoke to my tutor but he’s of no help and tells me to look it up on the net so here i am

Situation
On the First Sales screen i have 24 buttons (speedbar) the names will come from a db but if there are not 24 items in the database it stops due to it being out of range
This is my current code
<br />
<br />
        Dim speedbar As New Collection<br />
        Dim sql As String<br />
        Dim ds As DataSet = New DataSet<br />
        Dim cmd As OleDb.OleDbCommand = OleDbConnection1.CreateCommand<br />
        cmd.CommandType = CommandType.Text<br />
        sql = "select * from Drinks"<br />
        cmd.CommandText = sql<br />
<br />
        Dim da As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter<br />
        da.SelectCommand = cmd<br />
        da.Fill(ds, "Drinks")<br />
<br />
        Dim dc As DataColumn, dr As DataRow<br />
<br />
<br />
<br />
        For Each dr In ds.Tables("Drinks").Rows<br />
            speedbar.Add(dr.Item("Name"))<br />
        Next<br />


As you can see a items for the speed bar are stored in a collection what i cant do (where i need your help please) is make the buttons dynamical or add the name to some and make the rest invisible

Thanks

aj
Smile | :)
AnswerRe: Creating Button's Dynamicaly Pin
Dave Kreskowiak9-May-08 7:48
mveDave Kreskowiak9-May-08 7:48 
GeneralRe: Creating Button's Dynamicaly [modified] Pin
jacko8739-May-08 8:02
jacko8739-May-08 8:02 
GeneralRe: Creating Button's Dynamicaly Pin
Dave Kreskowiak9-May-08 8:39
mveDave Kreskowiak9-May-08 8:39 
QuestionRe: Creating Button's Dynamicaly Pin
jacko8739-May-08 9:29
jacko8739-May-08 9:29 
AnswerRe: Creating Button's Dynamicaly Pin
Dave Kreskowiak9-May-08 9:57
mveDave Kreskowiak9-May-08 9:57 
GeneralRe: Creating Button's Dynamicaly Pin
jacko8739-May-08 10:13
jacko8739-May-08 10:13 
GeneralRe: Creating Button's Dynamicaly Pin
DanB19839-May-08 10:37
DanB19839-May-08 10:37 
GeneralRe: Creating Button's Dynamicaly Pin
Dave Kreskowiak9-May-08 10:41
mveDave Kreskowiak9-May-08 10:41 
QuestionVBA Help, probs really simple Pin
harveyhanson9-May-08 2:21
harveyhanson9-May-08 2:21 
AnswerRe: VBA Help, probs really simple Pin
parth.p9-May-08 2:56
parth.p9-May-08 2:56 
QuestionSelect subset of records from .xml Pin
cstrader2329-May-08 1:40
cstrader2329-May-08 1:40 
AnswerRe: Select subset of records from .xml Pin
Dave Kreskowiak9-May-08 3:27
mveDave Kreskowiak9-May-08 3:27 
GeneralRe: Select subset of records from .xml Pin
cstrader2329-May-08 6:07
cstrader2329-May-08 6:07 
GeneralRe: Select subset of records from .xml Pin
Dave Kreskowiak9-May-08 7:40
mveDave Kreskowiak9-May-08 7:40 
QuestionHelp with Linq in VB.net Pin
Chinners9-May-08 0:24
Chinners9-May-08 0:24 
AnswerRe: Help with Linq in VB.net Pin
Guffa9-May-08 2:14
Guffa9-May-08 2:14 
GeneralRe: Help with Linq in VB.net Pin
Chinners9-May-08 6:19
Chinners9-May-08 6: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.