-
- SSH, VB.NET and Multi-threading
by new2vbdotnet
- 3 Replies
- Last post
by Bruno Yu - MSFT
- I'll start with my question and a brief bio:
The question is, "Can anyone assist me in multi-threading this "
Bio: I'm still new to VB.NET. A while back, we had a need to create "something" that would SSH to multiple servers, run a command (or series of commands) and return the results. The code below is what I came up with.
In regards to the question I posed, this app
-
- VisualBasic::Finance::Rate() used in C++ programs
by kenth
- 2 Replies
- Last post
by kenth
- I'm a newbee, using Visual Studio 2005 standard
I posted this in C++ forum and was told I was in the wrong forum
I'm trying to write a C++ program to find mortgage rate calculations. VB seems to have a function that can be referenced in C++.
I just can't get the namespace, using, and #using, etc in the right area of my source and help files.
I seem to be very close, at one point the ar
-
- Data row array 'Index was outside the bounds of the array'
by CookieB
- 3 Replies
- Last post
by CookieB
- I am trying to run the following code (VB.Net 2003) this is a simplified example of something I am trying to do in a real app:
Dataset11 is a dataset based on the Employee table of the Northwind database (SQL2000) and returns 'firstname', 'lastname' and 'employeeid' and is fill on form load via sqlDataAdapter:
Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As
-
- Need a way to store and retrieve 31 Strings in a Property
by Tim8w
- 14 Replies
- Last post
by Spidermans_DarkSide - MSP, VSI
- Since I haven't had much luck solving this problem myself, I'd thought I'd throw out what I'm trying to solve and see if someone has another way of doing what I want.
I have a CustomCalendar control. It contains 31 RichTextBoxes (one for each day of the month) where data can be entered during run time. I would like to have a Property where this information can be loaded and retrieved by the
-
- TextBox value saved in combobox
by SiLverFerret
- 8 Replies
- Last post
by SiLverFerret
- Hi.
How is it possible to make the textbox value (the text entered inside the textbox) to be saved in the combobox
i.e:
1. I enter the word "Hello" inside the textbox.
2. The word "Hello" appears in the combobox.
3. I close the form.
4. I open the form again.
5. The word "Hello" is still in the combobox.
How is this possible
-
- Date Expression
by Billy2005
- 1 Replies
- Last post
by kleinma
- I need an expression that returns a date in this format MM_YYYY for the previous month whenever it is executed.
For exampleif it were executed in may 2007 it would return 04_2007.
Also i need to make sure that if it is executed in January it returns the year of the previous month ex. in Jan 07 it returns 12_2006.
I'm new to Visual Studio and whenever I lookup date functions
-
- Copy renders System.InvalidCastException?
by Dallastower
- 4 Replies
- Last post
by Dallastower
- Hello.
IĄ¯m having some problems copying files after creating a new directory. Basically I check wheter a directory exists or not, and if it doesnĄ¯t, I create it before copying the files.
The code looks like this:
If Directory.Exists(fileto & rapport & "\" & Now.Year.ToString & "\" & dest & "\" & currentChef) = True Then File.Copy(member, fileto & rapp
-
- DrawString() on textbox
by mameenkhn
- 6 Replies
- Last post
by JohnWein
- i tried to drawString on textbox control. but it is not displaying using DrawString Function
-
- Code using socket for LAN messaging applications
by Stephen_Sbh
- 5 Replies
- Last post
by Bruno Yu - MSFT
- How can I develop a simple application that can send message through a LAN, without using the NET SEND
-
- Can't drag & drop database fields from Server Explorer to form
by Christos25
- 1 Replies
- Last post
by SteveS_MS
- Hello,
I'm developing a VB .Net application which is connected with an Access database.
The problem I'm facing is that I can't drag & drop any database field from Server Explorer to any of my forms. Even the drop-down button next to the fields for changing the control doesn't appear. When I'm manually binding (from properties) a control on my forms with a database field it works fine, so
-
- Logon failure
by Baby programmer
- 1 Replies
- Last post
by Jazz4sale
- Dear all,
I have a simple program, which will delete files from a remote computer. It works fine on my pc. When I run the same program on another pc, th error message "LOGON FAILURE. UNKNOWN USERNAME OR PASSWORD" is displayed.
Can anybody tell me what's wrong
thanks in advance!
Here is the program coding:
Public Class Form1
Private Sub Form1_Load(ByVal se
-
- Method POST to send Data from windows form to ASP web page and get response
by Romantic_touch
- 11 Replies
- Last post
by Butterfly Boy
- Hi Friends over here, I'm using httpwebrequest and httpwebresponse to send and recieve data between windows form in my project and web page (ASP) using GET method, what I need is how to send same thing Using POST I found some example in MSDN but it was not clear for me and not working !!! Please help me as soon as possible.
-
- Draw a line if you clickt on a button
by WILLIAMXXX
- 2 Replies
- Last post
by WILLIAMXXX
- Hello,
If i have a button and a picturebox.
If i click on button(1) then must me programma draw a line in the picturebox.
If i a line direct want draw then have i the next code:
Private Sub PictureBox1_Paint( ByVal sender As Object , ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint
e.Graphics.DrawLine(Pens.Gold, 10, 10, 100, 10)
-
- HELP: How to Copy and Paste a document using Visual Studio.NET 2003
by kewldood
- 1 Replies
- Last post
by Spidermans_DarkSide - MSP, VSI
- Hi guys been searching the net for quite a few hours. I just want to know how to move my files using VB.NET. Thanks help will be appreciated (Sorry kinda new here so im a noob)
-
- Get | Set author name for Dll
by Rakesh Simpi
- 6 Replies
- Last post
by Rakesh Simpi
- im building a custom user control with .net 2k5. can ne of you tell me a way to get and set author name for the dll being created
thank you!
-
- round decimal to fraction
by all2neat
- 4 Replies
- Last post
by Spidermans_DarkSide - MSP, VSI
- I am calculating cut lengths for pipe and when I output the data I convert this to a fraction. The problem is the fractions sometimes come out to be something like 3/234. We are looking to round these up to the nearest 1/16 of an inch while at the same time keeping values like .75 as 3/4. The data is stored as a decimal.
Here is my present Decimal to Fraction function.
Public Shar
-
- mscomm32.ocx : file is missing or invalid
by YimTaka
- 10 Replies
- Last post
by Patricia P
- Hi when installing a visual basic 6 project in Vista 32/64, the process completes fine but when i try to execute the file after i get the error: "component 'mscomm32.ocx' or one of its dependencies not correctly registered: a file is missing or invalid". I have made sure i have the control in the correct place and that it is registered fine aswell. Any ideas
-
- Return Lowest Value
by obrienkev
- 11 Replies
- Last post
by Riquel Dong ¨C MSFT
- Hi,
I have 4 variables with datatype of double.
I want to return the lowest value of them.
However, any of the variables may at one time be null.
What is the best way to do this
Code Block
Dim item1 As double
Dim item2 As double
Dim item3 As double
Dim item4 As double
Dim LowestValue1 As double
Dim LowestValue2 As double
Dim LowestValue3
-
- IDE annoyances
by Daniel_laksjdhfg
- 9 Replies
- Last post
by Kea
- While i absolutely love the new visual studio, there are a couple of things that drive me nuts!!!
when i right click on a symbol in code (such as a variable or procedure name), i can choose "Definition" and jump to that location. unfortunately, the "Last Position" menu item (that was available in VB6) was removed so now i cannot jump back to where i was previously.
when i want to save my fil
-
- How to check for network
by None01
- 14 Replies
- Last post
by cybertaz69
- Hello,
I am at making a small application that runs in the background each time a user logs on his computer.
When the application starts, it copies a file from a netwok path and runs an other application.
After that it starts cheking if the file on the network changes, if it changes then it copies the file again and runs the other application.
My problem is now that if my applicati
-
- how to import contact from yahoo,hotmail,gmail
by narasiman_jayachandran_2b5374
- 9 Replies
- Last post
by Pradeep.Mehta
- hi
i am creaing a address book and i want to imports the contacts from the website like yahoo, gmail, hotmail, & so
-
- Pointer to an image in memory
by myoungbl
- 2 Replies
- Last post
by Bruno Yu - MSFT
- I have bit a code where I need a intptr value for a byte array, and I have no idea how to get the pointer to the byte array.
Dim myImage() As Byte = conv.GetImage
image = Drawing.Image.FromHbitmap(<POINTER TO myImage>)
I"m not even sure this will work, but an answer will help. Can anyone help me here
Thanks.
-
- Adding a date to a cell using VB
by JoLehrer
- 1 Replies
- Last post
by Dick Donny
- Hi
Is someone able to give me the code to ad the current date into a cell in excel.
I have created a form and when it is approved i want a particular cell date stamped before it sends so we can keep record of when it was approved...
thx
Jo
-
- using python interpreter from visual basic
by nta1
- 0 Replies
- Last post
by nta1
- I have a windows application, written in vb.net, that should use the python interpreter.
is there any simple way of doing it - meaning: a way that doesn't involve writing an additional application that would handle the python operations- for example, can I redirect the python stdin\out to a stream located in my application
I know I can redirect stdin\out as long as I don't use the shell,
-
- WYSIWYG with RichTextBox
by QWERTYtech
- 7 Replies
- Last post
by cybertaz69
- Hey everyone,
After using the WYSIWYG online in almost every forum I'm a member of, I was wondering if anyone knew if anyone has created it for VB .NET 2005. I have a RichTextBox that I would like to add it to.
Thanks,
QWERTYtech