Click here to Skip to main content
15,918,596 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: BindingSource Pin
sabr4912-Oct-07 11:19
sabr4912-Oct-07 11:19 
GeneralRe: BindingSource Pin
Dave Kreskowiak13-Oct-07 3:27
mveDave Kreskowiak13-Oct-07 3:27 
QuestionIterating and Modifying a .NET Queue? Pin
AliAmjad12-Oct-07 8:55
AliAmjad12-Oct-07 8:55 
AnswerRe: Iterating and Modifying a .NET Queue? Pin
Dave Kreskowiak13-Oct-07 3:21
mveDave Kreskowiak13-Oct-07 3:21 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
AliAmjad13-Oct-07 4:52
AliAmjad13-Oct-07 4:52 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
Dave Kreskowiak13-Oct-07 5:03
mveDave Kreskowiak13-Oct-07 5:03 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
AliAmjad13-Oct-07 6:22
AliAmjad13-Oct-07 6:22 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
Dave Kreskowiak13-Oct-07 8:59
mveDave Kreskowiak13-Oct-07 8:59 
Why are you enumerating them?? I don't see anything in this description that would justify it.

Well, now I see where your code came from. It's a modification of the sample code on MSDN.

You don't need a loop to dequeue items. The Dequeue method pops the top item off the queue and returns it an as Object. You have to cast the Object back to a String in order to use it.
Dim url As String = DirectCast(que.Dequeue(), String)



A guide to posting questions on CodeProject[^]

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


GeneralRe: Iterating and Modifying a .NET Queue? Pin
AliAmjad13-Oct-07 9:17
AliAmjad13-Oct-07 9:17 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
Dave Kreskowiak13-Oct-07 11:36
mveDave Kreskowiak13-Oct-07 11:36 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
AliAmjad13-Oct-07 23:08
AliAmjad13-Oct-07 23:08 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
Dave Kreskowiak14-Oct-07 2:37
mveDave Kreskowiak14-Oct-07 2:37 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
AliAmjad14-Oct-07 2:50
AliAmjad14-Oct-07 2:50 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
Dave Kreskowiak14-Oct-07 7:50
mveDave Kreskowiak14-Oct-07 7:50 
GeneralRe: Iterating and Modifying a .NET Queue? Pin
AliAmjad14-Oct-07 9:46
AliAmjad14-Oct-07 9:46 
QuestionWorking with bits in .Net Pin
MatthysDT12-Oct-07 3:03
MatthysDT12-Oct-07 3:03 
AnswerRe: Working with bits in .Net Pin
Dave Kreskowiak12-Oct-07 4:10
mveDave Kreskowiak12-Oct-07 4:10 
QuestionProblem in Creating XML from Dataset in VB .NET [modified] Pin
kkb_200112-Oct-07 2:13
kkb_200112-Oct-07 2:13 
AnswerRe: Problem in Creating XML from Dataset in VB .NET Pin
Dave Kreskowiak12-Oct-07 4:05
mveDave Kreskowiak12-Oct-07 4:05 
QuestionRegarding Adam s post.......pls explain [modified] Pin
Lins Dani12-Oct-07 1:28
Lins Dani12-Oct-07 1:28 
AnswerRegarding your post Pin
MatthysDT12-Oct-07 3:07
MatthysDT12-Oct-07 3:07 
QuestionSetting PRIMARY KEY using Alter Table Pin
Widgets12-Oct-07 0:35
Widgets12-Oct-07 0:35 
AnswerRe: Setting PRIMARY KEY using Alter Table [modified] Pin
pmarfleet12-Oct-07 1:56
pmarfleet12-Oct-07 1:56 
GeneralRe: Setting PRIMARY KEY using Alter Table [modified] Pin
kkb_200112-Oct-07 2:01
kkb_200112-Oct-07 2:01 
GeneralRe: Setting PRIMARY KEY using Alter Table Pin
pmarfleet12-Oct-07 2:07
pmarfleet12-Oct-07 2:07 

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.