Ut The Stuff Into The Hashtables?
Jul 25, 2009
i have a hashtables working with a simple dictionary, my problem is i put the stuff into the hashtables but i cant extract the key... i need the key so i can remove stuff from it using the code..
View 11 Replies
ADVERTISEMENT
Feb 4, 2010
I have a type of object called Bin, which has a hashtable field called Attributes. Like so:
Public Class Bin
Private _attributes As Hashtable
Public Readonly Property Attributes() As Hashtable
[CODE]...
If I have two bins, I'd like to compare if they have the same attributes (if they have the exact same keys, as well as the right values for those keys) in the Hashtable. I have a set of constants (String) for the key, but the value will be a Boolean. If there's an easy way to do it with Dictionaries, I'd be open to that too. I haven't used this aspect of vb.net so I'm not really sure what's possible, or if I'll have to hand-code the comparison.
View 1 Replies
Dec 4, 2011
Is there anything like STL in Visual Basic , e.g a binary tree , quick sort Do I have to implement those algorithms myself , does Microsoft provide any useful interface ?
View 1 Replies
Sep 23, 2008
i am making a program and the program runs too slow, so i would like to declare my functions at once.. not like this :
[Code]...
View 6 Replies
Jan 17, 2010
I've been looking for some programming languages, and I've read about the basics of Python and C++, but I'm more interested in Visual Basic But! Everywhere I look, I only find tutorials about how to use MS's Visual Basic Express and stuff, not how to code, not tutorials about the code syntax, how to declare variables and these essential things.Does anyone here has a good tip about learning the basics of VB? And not how to use VB Express/Full edition I can insert a new button but I have no idea on how to make it work, what's the point of it?
EDIT: Oh and another thing.I was playing around VB, creating a simple user interface with buttons, and I've noticed that the code doesn't change when I update the button's or other objects' Name property in the Designer window... shouldn't the code update itself with the new objects names?
View 6 Replies
May 11, 2011
i am working on a project! the problem i am having is that i have two combo box first combo box takes stuff form the file and then add it to listfile it also removes that selected file from the combo box.suppose i have four carid in my combo box...when i select one car and then send it to dispatch it removes form tht combo box and add it to the lst file... this much i can do. is i need that carid that removes from the combo box should add in another combo box ... but i cant able to do it
Public Class MainForm
Private strCarID() As String
Private strTime As DateTime
Private strDate As DateTime
[code]....
View 27 Replies
Sep 10, 2009
I am making kind of like a login form, except a little more complicated. Right now I have an SQL Database that stores the login information. My question is, how do I add stuff to the existing tables? Like How would I have it so an admin can type in a new login and a new password, and have it so the form stores it in one of my tables in the database?
View 11 Replies
Feb 1, 2012
I can't get anything to display on the list box that I created named "depreciationListBox" I have been working on this project for a while and I am quite stumped.
Private Sub displayButton_Click(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles displayButton.Click
Dim cost As Double
Dim life As Double = CDbl(lifeListBox.SelectedItem)
Dim period As Double
[Code] .....
[URL]
View 2 Replies
May 8, 2011
Dim ThisModule As IntPtr
Dim Proc As Process() = Process.GetProcessesByName("Sol")
For i = 0 To Proc(0).Modules.Count - 1
[code]....
I have made this code, and works perfectly, but now... i want to make it in Delphi, the problem is... i have not the enough knowledge for make it, and... in google, i haven't found the information i need.
View 2 Replies
Jun 30, 2010
Adding it there but if i load i it loads it all
View 8 Replies
Apr 13, 2010
I am trying to polish up a program a program that I have converted from a Windows Form in to an ASP.NET Web Application. I have several questions:
1.) I have a drop down box where users can select their variables, but users can also enter their variables manually into various text fields. What I want is for the drop down box to show a string like "Choose Variables" when ever the user enters their variables manually. I want this to happen without having to reload the page.
2.) In the Windows Form version of this application I had a RichTextBox that populated with data (line by line) after a calculation was made. I used "AppendText" in my Windows Form, but that is not available in ASP.NET, and neither is the RichTextBox. I tried to use just a text box but that isn't working right.
[Code]...
View 3 Replies
Nov 6, 2010
I am almost done cleaning the code. It is a huge project and I only have 35 errors left. I have opened a new thread as this is no longer only about IsNumeric. All errors relate to the following Microsoft.VisualBasic keywords:
InStrRev
InStr
Mid
DateDiff <=== solved date.Subtract(otherDate)
[code]....
View 7 Replies
Feb 11, 2009
I saw this thread and think that this is something I could use [URL]. I'd like to be able to pass stuff to and from a PHP file.
View 1 Replies
Jul 23, 2011
I used a combination of If and doWhile loop codes. Is it possible that the loop will stop at 2nd loop if it will perform a 3 loops?I'm creating an app that if the problem is got the match at 2nd out of 3rd loop, the loop will stop.
View 1 Replies
Jul 30, 2011
How can i make it where you click button 1 and on a page likeebbrowser1 it will click the text Add as friend cause they don't
View 1 Replies
Jul 26, 2010
I am well aware that finalizers are typically used to control unmanaged resources. Under what circumstances may a finalizer deal with managed ones? My understanding is that presence in the finalizer queue will prevent any object, or objects strongly referenced thereby, from being collected, but it will not (of course) protect them from finalization. In the normal course of events, once an object is finalized it will be removed from the queue and any objects it references will no longer be protected from collection on the next GC pass. By the time a finalizer is called, the finalizers may have been called for any combination of objects referred to by the object; one cannot rely upon finalizers being called in any particular sequence, but the object references one holds should still be valid.
[Code]...
View 4 Replies
Feb 19, 2010
How do I connect to the rcon and handle the stuff?
View 5 Replies
Mar 1, 2012
I want to create a variable that will hold bunch of stuff.
I will be using over 50 IF statements (it's a complicated number game) and the IF statements will be something like this.
If something = 1 then
' do this
' then do that
[Code]....
View 12 Replies
Aug 17, 2011
So Im making a program with 2 different data tables where different columns from those tables are used in different tabs in the same form. This all works good and well so far, but I have one issue which just drives me mad, and a couple minor ones.
1. I have an ID column in each data table marked as Primary Key, Unique and Identity. Problem is that even if I choose to hide this column it just randomly decides if it actually is visible or not. Most often its visible. I dont get it, doesnt this function work? Do I use it wrong? Im not using any code for this, just right click on the data grid, press Edit Columns... And change the Visible to False. It works for all other columns all the time as far as I can tell, but for my ID column its just random.
2. Im wondering if its possible to align the text in some of the columns of my data table to the right, note I only want some of them, not all of them.
3. Is it possible to do maths with the values from the columns in a table on the same row? Like for example having column 3 = column1 + column2?
View 3 Replies
Mar 16, 2011
Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
View 3 Replies
Dec 17, 2009
I have strings like:
1. Three (3) 10,000 gallons underground gasoline storage tanks.
2. Equip ID: (23-1)
I want to extract the '3' and the '23-1' and from the strings. I can rely on the first set being inside ( ) as the strings I need. The strings will be numeric characters plus the dash (anything between ( ) would be preferable.) What RegEx pattern would I use?
Here's what I have so far but it gets the first number and not the ones in ( ):
Function Extract_Stuff(ByVal LineText As String) As String
Dim myMatches As MatchCollection
Dim myRegex As New Regex("([0-9]+)")
myMatches = myRegex.Matches(LineText)
For Each successfulMatch As Match In myMatches
Return successfulMatch.Value ' should only be one match, return first
Next
Return ""
End Function
View 2 Replies
Nov 18, 2011
Okay what I have saves my stuff to the database. However, when I rebuild my application the previous data is gone. The data is loaded into datagridview using
[Code]...
View 5 Replies
Jun 12, 2011
VS 2008 [RESOLVED] Delete stuff at runtime
View 1 Replies
Aug 17, 2009
Last night 3 updates automatically installed from VS 2008 on my comp KB952241, KB971091 and KB973674 Today intellisence was not working for .net - I uninstalled the updates and everything is, once again, working fine I dont know what update did it ... But I was just wondering if anyone else has experienced this - I would rather not have the updates if they stuff things up.
Oh - and before anyone asks - I tried resetting the visual studio settings
View 1 Replies
Jun 7, 2012
Anyone use the framework binarysearch methods?Can they do lower and upper bound searches?
View 4 Replies
Aug 19, 2010
how to place stuff on forms and such but not much else so i was wondering if a book was better to use to learn or something from a website? if book which books should i check out or which website?
View 5 Replies
Jun 20, 2010
So ive Almost got Most of the Beggining Stuff done. but there's one thing. How do i get it to Save Its Data for the CheckedListBox?
View 4 Replies
Jun 20, 2010
I have a .txt file on website, and i need to get it's contents to string, so i try with webbrowser control, i set everythin up, test run it, after 100 times testing[url]...
View 5 Replies
Sep 4, 2010
I want to click on a textfield, or an image or anything for that matter, and i was just wondering how to do that?
and also, how to count the lines in <div class="content"> or <div id="text">
View 4 Replies
May 12, 2010
I come from ROBLOX. Anyway, whats wrong with with code, it's in a button.
ProgressBar1.Value = "100"
if ProgressBar1.Value = "100" then
Me.Close()
I do realize it's missing all of the Private Sub, and end class stuff... This is just the main body of code.
View 8 Replies