Click here to Skip to main content
Page 1 of 199
Page Size: 10 · 25 · 50


Tag filtered by:  VB [x]
Answer 13 May 2013   license: CPOL
This project is beyond the scope of a "Quick Answers" type question. This section is for people who have actually produced some code themselves and have encountered a specific problem with their code.You can certainly develop websites using ASP.NET and VB.NET. You can send information...
VB
Question 13 May 2013   license: CPOL
I want to develop an ASP.Net web site using VB.Net for receiving data from a device.The device will send data to the server where the website is placed.My question is: can I write my script in WebService VB.Net for getting the values from the device and for storing the same information...
VB
Answer 13 May 2013   license: CPOL
Thomas, what was your solution to this?
Answer 13 May 2013   license: CPOL
This is an example of what you might do:Dim buttonList As New List(Of Button)()buttonList.Add("add your buttons from the page here or if you create them dynamically do it for each one");For i As Integer = 0 To buttonList.Capacity Then Dim btn As New Button ...
Answer 13 May 2013   license: CPOL
If I understand the question correctly I guess he already created the buttons in the designer. In this case you can change the text property of each button with the following code: Dim ButtonCount As Integer = 1 For Each c As Control In Me.Controls If TypeOf c...
Answer 13 May 2013   license: CPOL
Hi,have you tried this;Private Sub FetchEnvelopesAsync(mailbox As cMailbox) Dim T As New Thread( New ThreadStart( Function() Try Using client = CreateClientByAccount(mailbox.AccountState.Account) client.[Select](mailbox.Fullname) ...
Answer 13 May 2013   license: CPOL
Because these are radio buttons only one rb may be checked at any time. Clicking on one of them will automatically clear the rest. The same will happen if you do it in code.In your code you are setting values to False so the automatic behaviour does not kick in. Try just using Private Sub...
VB
Question 13 May 2013   license: CPOL
Hello, i am doing a project and i need some help.i created a button, "clean"in this button i put this validation, bellow.. Private Sub cleanbt_Click(sender As System.Object, e As System.EventArgs) Handles cleanbt.Click > If rbbut_company.Checked Then >>...
VB
Question 12 May 2013   license: CPOL
Having a problem converting a Linq lambda from C# to VB.The error is:Error 5 Overload resolution failed because no accessible 'New' is most specific for these arguments: 'Public Sub New(start As System.Threading.ParameterizedThreadStart)': Not most specific. 'Public Sub New(start...
Catalog 12 May 2013   license: Commercial
Unsurpassed Documentation Comment generation and updating for C#, Visual Basic, C++/CLI, C++, C, Java and UnrealScript code. Keep your comments readable and in sync with the code with a minimum of effort. Plus other coding utilities.
Answer 12 May 2013   license: CPOL
First, yes, bad programming...However getting to the point, a random number is just that, random. It is not guaranteed to give you any value, only a value within that range. So lets say you run this and it NEVER randomly gives you the value of 2, your code will continue to loop forever until...
Answer 12 May 2013   license: CPOL
Unfortunately, this code does not deserve debugging, because this is not how a software developer writes code. A software developer would never repeat identical declaration several times like your 10 Boolean variables. A software developer would declare an array or use some collection. A...
Question 12 May 2013   license: CPOL
im trying to make thing,that generates random number, not includes previos(1-10)Public Class Form1 Dim NewTicketNumber As Integer Dim IsTicketDone1 As Boolean = False Dim IsTicketDone2 As Boolean = False Dim IsTicketDone3 As Boolean = False Dim IsTicketDone4 As Boolean...
Answer 12 May 2013   license: CPOL
The only way to do that is to either :1) Keep track of the values you have previously used and generate another if you find a random value in the listOr2) Set up a List of all possible values and generate an index randomly. Set the value at that index to be the random number and remove it...
Question 12 May 2013   license: CPOL
Vb.Net: how to generate random nuber, not including previos generaded???
Article 12 May 2013   license: CPOL
.NET Framework Cultures with Culture Specific Formats and Mapping with SQL Server Language. CultureInfo, DateFormat, Number Format, Currency Format, Percent Format, Infinity Format etc.
Article 11 May 2013   license: CPOL
Indepth detail of how to utilize the trail period of windows Azure
Question 11 May 2013   license: CPOL
I wrote application to send sms using AT commands as followsSerialPort _serialPort = new SerialPort("COM40", 115200); Thread.Sleep(1000); _serialPort.Open(); Thread.Sleep(1000); _serialPort.Write("AT+CMGF=1\r"); ...
Answer 11 May 2013   license: CPOL
And Bingo was his name o!MSCOMCT2.OCX exists but is not registered by default in x64 SP1Now it works
Answer 11 May 2013   license: CPOL
timer1.stoptimer2.stop This should do it. If you're still getting one last timer event firing after that, then try setting a public boolean to false in your button, and then check for it in the beginning of your timer events. If it's false (or whatever you set it to look for), then exit...
Answer 11 May 2013   license: CPOL
Hi,AFAIK you can directly stop a timer using Timer.Stop[^].Of course, this solution supposes that you have direct access to your timer object from the button code.But even when you have to wait 1 min, what is the problem?The timer ain't does nothing until the tick event comes...
Answer 10 May 2013   license: CPOL
sorry but both datagridviews are unboundalso there is not only datagridview to be saved in file , addition to this 2 datagridview u=i also have to save 2 richtextbox text and some variable valuesso what i want iswhen user closes application the whole project is saved in a file , so...
Answer 10 May 2013   license: CPOL
Assuming you have a DataSet or DataTable associated with the DataGrdiView, you could just use DataSet.WriteXml[^] to write the lot. If each DGV is based on a DataTable, then create a new DataSet, add both tables, and write the DataSet. You can then read it back with DataSet.ReadXml[^] and...
Question 10 May 2013   license: CPOL
i have 2 datagridviews while working both have a very large data about 70,000 + rows with 3 columns in each datagridviewnow i have to save both datagridview to a single file with my own extensionso when user simple double clicks a file with my custom extension , my form1 is opened...
Question 10 May 2013   license: CPOL
I use Visual Fox 9.0 to send mail by Outlook Express.This is error:OLE error code 0X800040154. Class not registered.Class containing OLE object is being ignored. Record number 16. plase help me. Plase give me DLL library to register to system32
VB
Question 10 May 2013   license: CPOL
i have two timers timer1 is slow , tick time of 1 minwhile timer2 needs to be extremely fast , tick time of 10 milliseconds each have separate tick timenow in i have created a button to stop all working and it should also stop timer from working but as timer1 tick time is 1 min...
Answer 10 May 2013   license: CPOL
It looks like you are out of luck.If you look at MSDN: Key Differences Between Visual Basic for Applications and VBScript[^] at the bottom, under "System Objects" you will find this message:"Although Visual Basic for Applications supports the Screen, Printer, App, Debug, Err, and Clipboard...
Question 10 May 2013   license: CPOL
Hello,I tried 20+ codes for setting text to clipboard, BUT ALL WENT IN VAIN!!Please help me in how to set text to clipboard using VBScript only.Thanks in Advance,Ajay Varma
Answer 9 May 2013   license: CPOL
Calculate it. Imaging you know that there is no fixed column and row, but you calculate both from some cell values, in integer indices, let's say, relative to the location "A1". Imagine your calculation is done in the methods:Function GetRow(...) As Integer' ...End FunctionFunction...
Question 9 May 2013   license: CPOL
Hi, I have a problem with my code at the moment, the chart is displaying and is showing correct results, however, it always displays at the bottom of the page, my question is, is there a way of hardcoding a position to display in VB.net, i cant hardcode it into html as i am manually creating the...
Answer 9 May 2013   license: CPOL
To text is very easy, use File.WriteAllText(). In VB, use & for concatenating or use a StringBuilder.
Question 9 May 2013   license: CPOL
How do i print the text box and labels in a form to a doc or text file using codewithout writing 1000 lines of codeIN .NET LANGUAGENote:The solution posted below is not for .Net u will have to make little changes. eg dim while declaration of variables
Answer 9 May 2013   license: CPOL
Hello!I'll say you for .txt files (text files). I brlive for .doc is the same.string fromLabel;string fromTB;string Path = @"C:\Users\Administrator\"; //Write the path herevoid FileWrite(string TextHere, string path){ string line = TextHere; System.IO.StreamWriter...
Question 8 May 2013   license: CPOL
I should say at the outset that this problem may not be limited to win7 x64 as I just haven't tested any other OSes yet except I can say that I have not had a problem with XP 32bit.I wrote a 64 bit COM plug DLL for a larger 64 bit commercial applicationMy DLL starts and talks to, a UI that...
Article 8 May 2013   license: CPOL
A simple way to place any DataGridView inside a ComboBox.
Article 7 May 2013   license: CPOL
Automatic UI Generator with two-way binding for ASP.NET Forms from an object using Code First Principals
Answer 6 May 2013   license: CPOL
U have to read file and insert it into one datatable int counter = 0; string line; DataTable table = new DataTable(); DataColumn cl = new DataColumn("Text"); table.Columns.Add(cl); // Read the file and display it...
Answer 6 May 2013   license: CPOL
Of course it is possible.At each (periodic) 'parse and insert operation' you have to:Check if current file size is bigger than a certain amount with respect 'last operation' file size (abort operation if it is smaller or equal).Parse only the augmented part of the input file, inserting in...
Question 6 May 2013   license: CPOL
What i am trying to do is to parse below text from a text file.10:06:59:Sell Order 59266 5,000 TL at 22.20 Queued in the Regular Book Regular Market for Account # CC123310:06:59: Ticket 47930 Sold Order 59165266 5,000 TGL Regular Market filled at 22.20 - remaining 0 For Account #...
Answer 6 May 2013   license: CPOL
Can this work for recognizing people's full names ?
Answer 5 May 2013   license: CPOL
You can password protect the entire database, or you can do what you should and encrypt the passwords so that they aren't stored clear text. Its best to use a one-way encryption and compare the encrypted data to each other, that way you know that the data can't be decrypted. I don't believe you...
Answer 5 May 2013   license: CPOL
See this pattern:^*([A-Z]{2,3}\-[0-9]{4}).*Tested on Rad Software Regex Designer[^] and this set of records:MH-9940NH-1940AGV-9Az0FG-5940MZ-92X0AHV-9930with IgnorePatternWhiteSpace and Mulitline set to TRUE.Returns:MH-9940NH-1940FG-5940AHV-9930Is that what...
Question 5 May 2013   license: CPOL
i have 5 tables in my access database i wish to make my login table password protected since its goin to contain user name and passwordalso what should i do so no error happen when i am opening connection and inserting new datamy front end in vb.net 8
Answer 5 May 2013   license: CPOL
Try this: ^[A-Z]{2,3}-\d{4}$For testing an learning purposes I suggest you download Regex Coach[^].
Answer 5 May 2013   license: CPOL
Regular expressions can be extremely complicated to explain, the easiest by far is to use fome editor like:Expresso - A Tool for Building and Testing Regular Expressions[^]
Question 5 May 2013   license: CPOL
i wish to check for this format similar to this MH-9940 how do i customize regular expression to check if first 2-3 letters are capital from a-z then there should be hyphen followed by four digits from 0-9link to good explanation about regular expression will also be helpful here is by...
Question 5 May 2013   license: CPOL
Hello FriendsWhen i am running my macro,if my order_no is like 1,2,3,4,5,6,7, i.e primary, that time it is giving garbage value.and sub order no is like 1,2,3,4,8,9 in this 5,6,7 are missing which is also primary key, when i enter order no 1 so it will keep the sub_order no also it may be 3...
Answer 4 May 2013   license: CPOL
It actually does read the whole line:http://msdn.microsoft.com/en-us/library/system.io.streamreader.readline.aspx[^].You actually read the whole line and than extract just one character by its index. No wonder you get one character. Remove this "5". (And don't hard-code anything, for...
VB
Question 4 May 2013   license: CPOL
I'm using objreader.readline to read my config.txt file to pull information, however I can't seem to get it to read the whole line.My code:Dim FILE_NAME As String = "C:\Config.txt" Dim objReader As New System.IO.StreamReader(FILE_NAME) settings.TextBox3.Text =...
VB

Page 1 of 199
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid