as I'm starting at this I'm very confused trying do this stupid code in visual basic 2008 in .net : Each time i create an instance of clsTest (for example) i would like to do an attribute call mID that adds 1
So I've created a very simple UserControl that is pretty much just a combo box that has US States in it and a couple properties to return the selected value as an enumeration or a string, etc.The enumeration and string values I'm using are being referenced from an external library which is working. However, when I add my user control to another project the designer-generated code has errors in it. [code] I would assume that this probably has something to do with project settings or something similar for the user control. The control itself is in a separate project and compiled as a .dll which has been added to my main project's toolbox and subsequently added to my form. [code]
I already made a code on vb.net to generate random numbers with letters using HEXA + date time. Now, all i want to know is how to set it to single use? Once they got it, they can no longer use it back. They have to request for new one..
How can I call this kind of subroutine Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click ? How to pass the values of the two parameters sender and e?
I created a custom datagridview. In the constructor of that datagridview, I set
Me.AutoGenerateColumns = False
and then, declared and added 4 DatagridViewImageColumns and 140
DatagridViewTextBoxColumns by the code ... Dim dvgCol as New DataGridViewImageColumn
[code]....
But when I add an instance of that datagridview onto a form, in the form.design.vb there are many code defines for each columns and then sometimes adds additional code to create those columns again. Sometime when I delete the datagridview control in the form,that code is not deleted.
I am trying to insert data into two tables on two different forms. My problem is that I don't know how to get the last entered Auto generated ID from the first table to pass it to second form.
I have around 60 dropdowns and textboxes on webform, have primary key column (QuoteNumber) too which is dropdown control and Auto-generated value. I have a button called AddQuote when I click this button QuoteNumber should be autogenerated in database and same should be loaded into QuotNumber drop down, how can I achieve that.
I am trying to format the width of my gridview columns dynamically for easy of use in editing and updating. Is it possible to have multiple column widths defined? Here is the code I am using to create the gridview...
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack)
I created a vb.net script to autogenerate a code. Now, after generating this code, what I want is to determine the validity of this code. for example, a code has been generated now and this code will be valid for 24 hours only. Can someone help me how to do this? i have no idea as of this moment. Been searching over google and dont know what's the right keyword for that.. Below is my script for the auto generation code
Dim randomvalue As New Random Dim randomhold As Integer Dim newcode As Long
I am new to vb.net. I created a vb.net script to autogenerate a code. Now, after generating this code, what I want is to determine the validity of this code. for example, a code has been generated now and this code will be valid for 24 hours only.
Below is my script for the auto generation code Dim randomvalue As New Random Dim randomhold As Integer Dim newcode As Long For i As Integer = 0 To 9999 randomhold = randomvalue.Next(1, 9999) newcode = randomhold & DateTime.Now.Minute & DateTime.Now.Year Label3.Text = newcode Next The code generated will be sent via sms. If the code hasn't used within 24 hours, it will be invalid.
i'm worried about doing this since my changes will be overwritten when the dbml file is auto generated again (as they often are).i'm thinking of doing a partial class and writing out the same properties to annotate them, but worried that it will complain about duplicates, and the reason i can't even experiment brings me to the second part of my questions...
that, the expandable arrow on my dbml file listing is missing, right clicking and selecting "View Code" just displays an empty partial class as below.
For example:Public Event CurrentChanged As EventHandler(Of CurrentChangedEventArgs(Of T))Shows the message "Do not nest generic types in member signatures." on CurrentChangedEvent, which is the variable that holds the delegate for the event, and VB generates it automagically.How do I suppress the rule for the item?
I need to help about treeview.I have a auto generated treeview with only SubNode checkboxes like this;Forexample; when I want to check B-SubNode-1 checkbox, the other node checkboxes (A-Node & B-Node) must be uncheck if it is checked. It might be check all SubNode checkboxes if their state under on a same Node.
I am trying to use a script mananger to use page methods to communicate between the server and client side of my page. I have added this code to the html
According to the General Naming Conventions the usage of CLR type names (e.g. String, Int16) should be preferred over the usage of language specific type names (string, short). I usually follow this advice. Resharper however seems to use the language specific type names when generating code (eg. when extracting methods or generating foreach loops) which is very annoying.
As mentioned in the subject. I found this default setting in VB 2010 rather annoying. For example:I have created an combox box and i have created an event as below as well
Private Sub cmbBuildingID_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbBuildingID.TextChanged listUnitStatus()
I'm messing with a GUI however I can't seem to find the auto-generated initialize components method. There certainly is a constructor somewhere, my gui initialises and works just fine, but I can't see it...
I am using ADO.NET Datasets in my VB Applications. I have a typed dataset with one Parent table and many child tables. I want to generate Identity Key when I insert data into Parent Table and then update the data in all child tables with the Same key (As Foregin key).At last, I want to update the dataset in Database(SQL Server08).Well, the above thing can be possible by first inserting Parent Table in Database directly, get the Identity column and than use to for Child tables.
Dear Developers, I have a problem with combobox AutoComplete mode. it appears that when I set the DropDownStyle = simple , I cant select text with the Enter key Or with mouse click can someone please explain me how to bypass this problem?
Beginning VB 2010, had a project that requires us to create a list box of 25 randomly generated 0s or 1s. Problem is when I put the loop in, it only repeats the same random number, not different one each loop. What am I doing wrong?This is the code I have so far...Code in Question:
'Declare new random object Dim RandomGenerator As New Random intRandomNumber = RandomGenerator.Next(0, 2)[code]......
I'm wondering, is it possible to create a (REALLY) simple web server in VB.NET? I may be wrong, but don't you essentially just need a listener for port 80 and a way to send pages to the client?
Im trying to create a program with a simple gui that enables me to search for and select parent folders containing child folders containing multiple files and then validate those files based off of constants i set per child folder and file.
Example
User selects Parent FolderX Parent FolderX > (ChildFolder1 ( Constant for ChildFolder1 says open file 4 ) > File 4
Compare multiple strings of text in a specific order based off of file name to constants i have set for that named file Then continue to ChildFolder2 ( Constant for ChildFolder2 says open file 16 ) > File 16 Compare multiple strings of text in a specific order based off of file name to constants i have set for that named file If there is any constants not read in one of the files after all have been checked, return msgbox with a notification and write .txt log with child folder and file names to specified directory?
My professor said that if I create a cleverbot she will give me a high grade but the problem is I only have 2 weeks to do it. Please help me, i can connect vb 2008 to ms access ( i think i will need it)[code]...
I just want to be able to click on a commandbutton, menu_item, or maybe even a wizard at program install time, to make the database from scratch.
1) I do not care what type of database it is it is as long as it will run on any pc machine without having other programs installed except the one im creating.
2) I do not want to use access or the designers to create the database either
I apologize if this question is something of the most simple, but I'm not even sure what terms I should use to search. What I'm trying to do is create a 'Sub' that will do something when I call it in another Sub, however I am unsure in how I would pass variables from one another. Here is what I have;
Private Sub Log LogBox.AppendText(logstuff & vbNewLine) End Sub