VS 2008 Use The Randomize Tool?
Mar 20, 2011i have a sub-procedure to choose between two players and im trying to use the randomize tool. how do i get it to pick either 1 or 2 and no other numbers?
View 2 Repliesi have a sub-procedure to choose between two players and im trying to use the randomize tool. how do i get it to pick either 1 or 2 and no other numbers?
View 2 RepliesI cant figure out the code for vb.net that would randomize the interval of a certain timer. For each a = a + 1, there would be a different interval, and for each a = 1, a = 2, a = 3 etc. there would be a different text that will be shown on a label.
View 2 RepliesI can’t figure out the code for vb.net that would randomize the interval of a certain timer. For each a = a + 1, there would be a different interval, and for each a = 1, a = 2, a = 3 etc. there would be a different text that will be shown on a labe
View 1 Repliesexplain to me in plain English what this piece of code is doing? I can't work it out.
Randomize()Dim bingo1 As Integer = Int((49 * Rnd()) + 1)
I hv an array which contains
[code...]
and i want to copy Array 1 value into Array 2 ..... but it pick value from Array1 from randome postition
so in array2 value go like this
[code...]
I was thinking if I can create a code that creates 8 Labels, and each label will show someone's name. The name is not generated, it is randomized. But I Don't want to see 2 same names in 2 different labels. So what I came across is this:
First, I will make an array variable (0 to 8) as String, I will declare each person's name here, the 0 is not used. I Will call this "Names"Second, I'm going to make an array variable (0 to 8) as Boolean. Original State is False. I will call this "Type"Third, I will make another array variable (0 to 8) as Integer, this one is empty. I Will call this "Empty". Original value = false
The Point is that the application will randomize a number between 1 to 8, just say that the randomized number is "x". Then I will take Names(1) and fill it in Empty(x), and set the Type(x) to True, and keep looping. If the application finds the Type = False, then the application will randomize another "x". But after making the code, it seems that the numbers show up the same way everytime I run it. Even with the Randomize() statement.
[Code]...
how to get extract all the hrefs from a source code, and then randomize and choose one.
so I got in the source code hrefs links like this 2
<span class='action-links'><a href="themes.php?action=activate&template=pub%2Fmonotone&stylesheet=pub%2Fmonotone&_wpnonce=79af223488" class="activatelink" title="Activate
[Code]...
how to have them all into a list and choose 1 randomly to webbrowser navigate
The goal is simple... generate a set of random numbers with a certain range (e.g., 1-6, 5-10) with no repeats. I tried using a system with arrays where everytime a number has been generated, its marked as "used" and then the program is required to generate a new number. But it doesn't work!
Public randomnumgen As New System.Random
Public randomnum As Integer
Public iCounter As Integer
Public GotIt(7) As Boolean
[code]....
I wrote the following function to randomize a dictionary object:
Friend Function RandomizeDictionary(Of T)(ByVal oCollection As Dictionary(Of String, T)) As Dictionary(Of String, T)
Try
Dim oResult As Dictionary(Of String, T) = Nothing
[code]....
This code works fine on simple dictionary objects, but when I use it with complex types I get a type cast exception. For example, I have an object X that Inherits Dictionary (Of String, Class Y). If I call the randomize function on object X, I get the type cast exception. I don't really understand why it cares what the type of the dictionary value is, I thought that was the point of using generics.
In summary the following all work:
Dim x as New Dictionary (Of String, String)
Dim x as New Dictionary (Of String, Boolean)
Dim x as New Dictionary (Of String, Integer)
This does not:
Dim x as New Class X
Class X Inherits Dictionary (Of String, Class Y)
how can i make a randomiz write on button.text i want to make a button when i click on it write " O " in any button of the 9
View 7 RepliesI am making a program that will fill in some info on a form. The information that needs to be filled is:
[Code]...
The thing is i need the program to click on a button on a website then open a new tab with the page it just clicked on, fill in email and click submit, then fill in the info that is above before pausing. I would also like the info above to be randomized each time the new page loads so it is not the same. I have already looked on this site and cant find what I am looking for.
I want to make a Tool Bar in my task bar such as windows media player tool bar.
I'm using VS2005.net Windows xp Professional Edition.
how to put the tool tip text in status bar label this in form load event
View 14 RepliesI've got an asp.net assignment where I'm to create 7 user's in the ASP.Net Admin Tool but when I open it up and click the security tab I'm getting the following error message:"There is a problem with your selected data store..." problem is, I don't even know what a data store is and VS has never had me select one... any ideas how to fix this? All my Asp.net apps work fine on this computer.
I'm running VS 2008 on Win7 Home Premium x64 and I did install SQL Server 2008 Express last night in case it's needed.
Well the thing is im making a tool for a game(No hack)the display is like this Name : [here a text box] Time : [Here can be laber or textbox] [start] [stop] [reset] in the first textbox the user who is using the program have to put a player name and in time when they click start in the second textbox or labe it should start countingdown from 1 hour 1:00:00.Stop only stop the time but let the time where it was and reset to reset the time.so when the time get to 0 something should pop up with the name of the player that the user put in the text box like MsgBox Frolox's time has finish or something like that but it have to appear in top of everything.
View 16 RepliesI have various buttons in a tool strip which perform various commands aswell as function keys that carry out those same commands. So I use:
toolstripbutton.performclick()
to execute the same code
My VSScroll is set from a minimum of 0 to a maximum of 100 but when I slide it it only goes from 9 to 100.
Also it increases when I slide it down and increases when I slide it up. Any way to reverse this?
i want to develop one tool in visual studio 2008. I don't know about using the serial comm rs232 function there in visual studio?
View 1 RepliesMy code editing program, with text colouring and lots more, is almost finished. It uses a rich text box to edit in.On the right is a listbox, called the "suggestion box" The suggestion listbox is kinda large and eats up lots of valuable edit space How can I display my "suggestion listbox" control underneath the caret, like in Visual Basic?
View 7 RepliesI have created a custom control in one VS project. Once tested and built, I then copied the object over to a structured class library type project I hope to use as a code repository for these kind of things. To ensure I can get to the control, I created a test project and added this repository dll as a reference. The problem is that I cannot see the custom control in the toolbox.
Is there an attribute or something I should've used in the repository dll in order for this to happen?
My objective is to create a custom namespace in this repository dll so that any custom objects or controls can be referenced in various other applications without having to copy the objects to each. I know my reference is good as I can create the control in code. I would just like to see it show up in the toolbox!
Is CodeVeil the best tool available right now for protecting a program? I'd like to be sure that when I release my program, it'll be either ridiculously hard (and not worth it) to crack (I.E, to make it free), or impossible to crack. I've been told the latter is impossible
I really just want it to be the absolute safest, and secure, without increasing the memory or CPU requirements of my program. I'm going to trial CodeVeil from Xheo... I'm wondering if anyone else has used any others, and what is the best? Pricing isn't a big deal for me.
I'm trying to develop a tool to make upload of movies to some Hosting Servers like [URL]
I need to fill flash form and then submit the movies automatically!
I would like to set the tool tip of a button on a ToolTip control , but I would like it to do it by code during run time , not during design time . Is it possible ?
View 4 RepliesMy picture box is in a panel. How to prevent lines created using graphics tool from getting erase when moving the picture box around? Sometimes when I minimize my form, the lines goes missing also.. How do I make the lines stay on the picture box?
Example shown below in a gif...
I am using Regex operation by retriving column into Richtextbox and run sevral time of all regex operation ( which is quite good and faster on that) then updating that inti database (Sqlite).
1. Retriving 1 million of record column into richtextbox from database.
2. updating database with that.(using richtextbox).these things killing time.
what to use in place of that.(means what to use for fast preview-run regex - update that edited column into database)
Is there any tool that will convert a multiline text, to a compatible multiline string for Visual Studio 2008/2005?For example:
line1
line2
line3
[code].....
I'm trying to make something that will hunt down colors on the whole screen and click them every xxx secs.. here is what i have so far..
[Code]...
I am creating a user tool for a game I am playing (NOT a hacking tool, it simply shows information about my own character). I have a template of what I need to do with the data I recieve, here is the code, it is coded in PHP
function decode_style($r) {
//get gender
$gender_array = array('Male', 'Female', 'Male 2','Female 2','Male 3', 'Female 3');
$style['Gender'] = $gender_array[round($r / hexdec(4000000))];
//GET AURA
[CODE]...
Ok, I understand PHP a bit (As you know one programming language you can understand just about any) and this is what I have created from this
Dim Style As Decimal
Dim Rank, RRank As Decimal
Dim Gender, RGender As Decimal
Dim Aura, RAura As Decimal
[CODE]...
As you can see, it is receiving a single piece of data from a remote SQL server, I then need to run this data through the above calculations (Seen in the PHP file) although the answers I'm getting are incorrect.
Here are some simple instructions I got in what goes on between values:
gender :
PHP
[CODE]...
aura:
PHP
[CODE]...
I'm confused on when I should use the Randomize() function.It's my understanding that will give a new seed to the random based on the system clock, so should I therefore call it each time before generating a random number?I seem to recall reading once that it should only be used one time (like in the form load event), thus my confusion.
View 2 RepliesI have a list of names:
Public players As List(Of Player) = New List(Of Player)
How can I randomize the list? These are names of players in a tournament. I want to randomize the list so that they are not sitting sequentially at the table(s)