Step In A For Cycle On The Following Index?
Oct 20, 2011how can I step in a for cycle on the following index?
f.e.
for i = 0 to 10
if (some condition) then next i
next
how can I step in a for cycle on the following index?
f.e.
for i = 0 to 10
if (some condition) then next i
next
I am running Microsoft Visual Studio 2008 Professional on a Windows 7 system. While working on the visual basic exercise in chapter 4 of the Microsoft Visual Basic 2008 Step by Step book on the MyMenu program I added a Toolstrip to my form and then I was trying to perform the add OpenFileDialog and ColorDialog controls to the component tray as described at the bottom of page 111 under Using Dialog Box Controls. I could never get the controls to appear in the component tray as instructed in the book.
[Code]...
I have a program that plays a video and uses the step function to move frame by frame backwards and forwards through the video. The forward frame works just fine:
AxWindowsMediaPlayer1.Ctlcontrols.step(1)
However, the backwards step (below) jumps a full second backwards while the forwards step only steps .033 seconds forward (presumably a single frame).
AxWindowsMediaPlayer1.Ctlcontrols.step(-1)
I can't find any documentation about this problem online and in fact I can't find much mention of this function.the documentation does say the -1 command should step back one frame. IWMPControls2::step method Is this a known bug or is there an updated function I should be using?
I really need to learn much about it, but always stock up,.DOTNET covers the vb.net, C#, C++, ASP.NET, .NET framework is it right?.C++? ASP.NET?What should be my step by step procedure?
Will I start on database? Connection of client and server? Webrowser? Application?...etc etc etc.Will it ok if i start on studying every toolbox item one by one?
I dont have any project or every assignment that needs to be done....All i want is to learn about DOTNET
coming to the topic i want to learn dotnet i am not good at programming. but i want learn it i m very passionate about it.you all know soo much about DOTNET even i want to become like you people.i have a bit knowledge about this but not much..What should be my first step towards this?How should i start with and from where should i start with?
View 3 RepliesMy need is to work with what I have (2005 studio), what I know (Visual Basic) but need a primer. I am a visual learner (so I need to see [1] how the form is created, named and set up). From there I need to see [2] how he code works so that I can implement from there.
View 2 Replieswrite SubSonic 3 Step By Step WinForm App VB.Net: Installation,Setup And Generating.
View 2 RepliesI have a wizard where users need to fill out data. You cannot navigate to the second step until first step is completed.
I enforced this behavior by disabling/enabling "Next" button, but I really do not like this solution, since it seems not really elegant or safe here. What is the good approach on building step-by-step processes with enforcing step completion.
I'm trying to understand how this code work step by step but I'm confusing How the code work when executed from first step to last step?example: when I set obj to age = 39 . is the first step is checked if the variable in m_Age or checked in Property Age
vb
Dim obj As New Minimal obj.Age = 39 MsgBox("after setting the age to 39, age is " & obj.Age.ToString)
vb
Public Class MinimalPrivate m_Age As Integer Property Age() As Integer Get Age = m_Age End Get
[code]....
I seem to lost the practice files disk for this book, and I am trying to 're-learn' this book. I am unable to do the lessons without the practice files. If you have the disk and could maybe zip them up and email them to me? I have the other disks still, and am using the Visual Studio Express to do this.
View 2 RepliesIs this the correct forum for questions regarding code in the Visual Basic 2008 Step By Step? If so I would like to know why there is a declaration for one PictureBox and not the other. If there is a better forum for Michael Halvorson's book, can anyone direct me there?
View 11 Repliesi would like to ask for little help in here. I developing application for wake on lan and i have group of checkboxes button and i sub with threads. My problem is in button event i would like to run sub only if checkboxes are checked. All works but problem is when i have this rutines in button action then it start threading all the same time. Its very hard to explain. Bassicaly i wanna read this if checkboxes systematicly 1 by 1 from top to down coz right now in my multitexbox(status) they are all mixed and i can't recognize what belong to what.
[Code]...
When I started to work on this new project in vb.net 2010, I put many breakpoints to try to understand the execution order of the project, only to find it in vain. Step into command F11 should work correctly according to Visual Studio 2010: Step Into Property/Function(F11) doesn't work as expected. But I when I pressed F11, I found the code is jumping from one place to another based on breakpoints, not line by line or step by step.To give an example, please see the code below
Me.tcData.Alignment = TabStrip.TabControl.TabAlignment.Bottom 'line 1-breakpoint
Me.tcData.Dock = System.Windows.Forms.DockStyle.Fill 'line 2
...
Me.tcData.TabsDirection = TabStrip.TabControl.FlowDirection.LeftToRight 'line 3
[code]....
When I press F11 at line 1, it goes to the property 1. After it returns, when I press F11,it goes to property 3 directly, without accessing the code in line 2 and line 3.I do not understand why the code is NOT executed step by step by using F11. If I put breakpoingts in line 2, then line 2 is executed.So it seems to me that the showed execution order is based on breakpoints! So if I put breakpoints at different places, the showed execution order would be different! Thus, it is impossible for me to really understand the execution order.
I'm trying to understand how this code work step by step but I'm confusing How the code work when excuted from first step to last step? example: when I set obj to age = 39 . is the first step is checked if the variable in m_Age or checked in Property Age
vb Dim obj As New Minimalobj.Age = 39 MsgBox("after setting the age to 39, age is " & obj.Age.ToString)
[Code]...
this is my code:
Dim WB As WebBrowser
WB = GetPage("http://speed.travian.ir/a2b.php?z=" + VillageID.ToString + "&c=" + Type.ToString + "&" + AttackParams)
[code].....
Here's a list example
SortedList name = test
"nothing" | 0
"something" | 1
How can I go about running a for each loop or something to add each first column in test to, say a listbox.
Listbox should just have listed.
nothing
something
I tried
For Each i In text.Values
lbTest.Items.Add(i)
Next
But that produces:
0
1
Just had a question regarding a Windows Form Application in Visual Studio 2008.I was wondering if it is possible to have a RichTextBox and have a < (previous) and >(next) button. When the user selects the Next button, a new blank RichTextBox will be displayed, when the user selects previous button, the prevoius RichTextBox w/ whatever text was in there before will be displayed.
View 2 RepliesIm working on my project. and i just asking if i can used this Property in vb. NET [URL] when i install adobe photoshop .. i see on the leff installer...something like a menu and the menu move step by step when the user move between Forms
Welcome
Serial Number
Adobe ID
Install
Finish
How i can create like this in VB .NET
In Visual Studio 2005 Visual Basic, I want to create an exe (without any forms) that will cycle through each file in a folder. I have not found any method of cycling through file names in a folder.
View 1 RepliesNow what I am trying to do is to find cycles in my graph. I have a user drawn graph using lines. Now what I want is to find out if any cycles exist in the graphs. My idea is to find a way to recognize a closed shape and then fill it in. I get this idea from ms paint , where if you draw shapes, the lines must intersect each other and form a cycle for the color to be in.
[Code]...
I am familiar with the VB6 ADO way of dealing with SQL queries and looping through the record set results.
However, what is the correct way to query a server, cycle through the results, and dispose of my query in VB.Net? All the ways I have been using seem to be unstable and crash randomly.
I have been using the following code:
Public Function GetSQLTable(ByVal strSQL As String) As DataTable
Dim table As New DataTable
Dim adapt As SqlDataAdapter
[Code].....
I have a subroutine with a for i as integer=1 to 128 it should send 128 mouse clicks to another application sometimes it does sometimes it doesn't (it works well until it reaches 64 then the numbers go crazy). i suppose that because vb debugger reports that for my form there are 2 threads running (i have a Core2Duo processor and i've read somewhere that multithreading has something to do with the processor).Is there anything i can do to make the cycle reach the 128 clicks? i've tried setappartmentstate to STA, i've tried synclock monitor.enter nothing works, it fails it returns from the subroutine to where it started from and the next time the same story
View 8 RepliesMy application creates MDI Children programatically. I have a frmBrowser as an MDI Child which I create multiple instances of. There are several other MDI children in the MDIParent. How do I only cycle through the frmBrowser MDI children?
For Each Child As frmBrowser In frmMain.MdiChildren
'perform action on child
Next Child
The code above gives an error for all the Child that aren't of the type frmBrowser.
i need to count the number of iterations which occure in algorithms Blowfish, DES, and RC4.
blowfish i use this class DES i use DESCryptoServiceProvider and for RC4 i use this class Public Shared Function RC4(ByVal bytes() As Byte, ByVal key() As Byte) As Byte()
[Code]...
l try to cycle the number from 0 - 100 using RANDOM methhod.but everytime push the button , the different number come out..how to get same number when the button was press.
View 14 RepliesI have a listbox with items, and when I press a button I would like to go to the next item.I'm having a horrible brain fart and have been for quite some time.
for x = 0 to listbox1.items.count - 1
label1.text = listbox1.items.item(x)
x += 1
next
What events are hit before form_load in a winforms app? Somewhere before the form_load a file called .ini is created and I can't figure out where it's being created. It's just .ini with no name before the extension.
View 2 RepliesI have a loop and I need that at the end of each step of the cycle that it sets in pause for a few secondsHow?
View 3 RepliesI have a loop and I need that at the end of each step of the cycle that it sets in pause for a few seconds How?
View 5 RepliesLet's assume one joins a project near the end of its development cycle. The project has been passed on across many teams and has been an overall free-for-all with no testing whatsoever taking place along the whole time. The other members on this team have no knowledge of testing (shame!) and unit testing each method seems infeasible at this point.
What would the recommended strategy for testing a product be at this point, besides usability testing? Is this normally the point where you're stuck with manual point-and-click expected output/actual output work?