-
- ByVal and ByRef differences are demonstrated here.
by John Oliver (UK&am
- 9 Replies
- Last post
by Spidermans_DarkSide - VSIP
- Hi ALL,
This shows the difference of passing ByVal or ByRef with a simple example.
Just add two buttons to a FORM along with this code.
PASTE it in if you like.
Regards,
S_DS
____________________________________
Private Sub Button1_Click _
( ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
-
- Flexible Datagrid?
by wei82
- 0 Replies
- Last post
by wei82
- Is there any way i can put a combobox in datagrid using vb6 Anyone haf the source code
-
- ByVal and ByRef differences are demonstrated here.
by John Oliver (UK&am
- 9 Replies
- Last post
by Spidermans_DarkSide - VSIP
- Hi ALL,
This shows the difference of passing ByVal or ByRef with a simple example.
Just add two buttons to a FORM along with this code.
PASTE it in if you like.
Regards,
S_DS
____________________________________
Private Sub Button1_Click _
( ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
-
- SmtpClient error
by fabal
- 5 Replies
- Last post
by KevinBB
- Hi to all.
I have done a console program for send an e-mail via bat.
My program is perfect if start form the same machine where is the exe file bu if i try ti start the program by network i recive this error:
Demand for authorization of type ˇ°System.Net.Mail.SmtpPermission, System, Version= 2.0.0.0, Culture=neutral, not satisfied PublicKeyToken=b77a5c561934e089ˇ±
I had try ti set:
-
- The VS2005 Debugger and GUIDs
by ReneeC
- 2 Replies
- Last post
by ReneeC
- Here's a really obvious question that has not been asked in this forum.
Why is it that the debugger always shows a Guid to be empty when it is not empty
-
- V
by dominiklachance@ho
- 1 Replies
- Last post
by spotty
- Hi !
I work with a solution of 5 projects in vb.net and I have some problems.At all 5 or 10 seconds, the Visual studio 2005 IDE freezes during 3 or 4 seconds (the sand glass appears) and the CPU charge jump at 60%-100%.
This problem occurs under the following conditions:
- To copy/Stick text
- When I type text
- With the change of line
- By using the intellisense
T
-
- Another CSV to SQL project
by Johnny-dog
- 6 Replies
- Last post
by Johnny-dog
- Greetings;
I am developing in Visual Basic 2003.
The code I am trying to create will read a CSV file and then create a new table in my SQL 2000 database with the contents of the CSV file.
I have searched these forums and the internet in general and I have found several posts on how to do this, but I have yet to find one that makes enough sense to me that I have bee
-
- printdocumnet1 question(s)
by killerbeam
- 3 Replies
- Last post
by Bruno Yu - MSFT
- i'm working opn a project now the bigest problem of them all is the printdocument
i use this script in my printdocument1
Code Block
Private Sub PrintDocument1_PrintPage( ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
With e.Graphics
.DrawString( "BOUWKUNDIG RAPPORT
-
- Convert Days Into Months
by Dark Dominion
- 3 Replies
- Last post
by MS Johan Stenberg
- I have used a timespan into my program so that i can calculate someone's age based on the date he chooses as a birth date from a datetimepicker. Now i want to show his age in years and months. Timespan however can calculate the time in days and not months. How can i convert the days to months correctly considering that some years have 366 days (leap years) and not every month has 30 days
-
- Com Object Failing on server.createobject in Windows 2003
by Shafeeq573869
- 10 Replies
- Last post
by Shafeeq
- Dear All,
Please help me to solve the issue. I have created .NET COM DLL and i can able to use in windows 2000 using ASP.
But if i want to use in Windows 2003 using ASP it is giving the error as follows:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
And also i tried the same in VBScript (vbs file) it is working in windows 2003, only ASP is giving the above
-
- ComboBox: VB Code to select first one.
by highNNdry
- 4 Replies
- Last post
by highNNdry
- Hi
I have the following VB code, when someone selects the worksheet name from the combo box in the summary page it takes them to the worksheet. However, the problem is that if they select, for example, worksheet "B" it takes them to the worksheet fine but when they are back in the summary worksheet the "B" is still selected in the combo box and you can not select "B&qu
-
- Append text without using scrollbar!
by jasmine pham
- 3 Replies
- Last post
by hong thanh
- Hi everybody, In my function, I append text to a textbox. The text is very long and I want the display screen scroll to the end line. I don't want to use srollbar. Is there any way to do this Thanks for any help.
-
- Difference between Static Private and Private Shared variables
by busyme
- 9 Replies
- Last post
by John Oliver (UK)MSP, VSIP
- What is the difference between Static private and Private Shared data in VB.net
-
- Loop through text file and view one line in listbox
by TonyFlora63
- 14 Replies
- Last post
by TonyFlora63
- Hi
I'm looking to write the contents of a text file to an array and view one line at a time in a listbox. When I say one line at a time I mean only view one line in the listbox and as It loops through the text file the line that is showing is replaced with the next line, and so on.
TonyFlora63
-
- Running batch file on network computer?
by sourvil
- 2 Replies
- Last post
by sourvil
- Here is my code: Dim psi As New ProcessStartInfo psi.FileName = "\\ComputerName\SharedBatchFiles\FileName.bat" psi.WindowStyle = ProcessWindowStyle.Hidden Process.Start(psi) I can run the batch file. But it starts a windows service (NET START "ServiceName") in my own computer. How can i start it in "ComputerName" not in my own computer With this batch file or anot
-
- Redim Variable in Generic Class
by RoninBreank
- 12 Replies
- Last post
by RoninBreank
- Group,
Is there a way to Redim a variable in a generic class
Sample code
Code Block
Public Class clsReflectStructure( Of iType As Structure )
Private iList As iType
Sub New ( ByVal dt As DataTable)
'Insert the redim statement for the iList variable here if possible base on dt.Rows.Count-1 value
End Sub
End Cl
-
- Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document
by Chris D Jones
- 14 Replies
- Last post
by CoolVanilla
- There was a similar question posed on the C++ forum back in February to which I responded yesterday, but unfortunately, did not get a response. I am therefore putting this question in the VB forum.
I have a VB 2005 project which is actually an add-in to Outlook 2003, which was I was able to debug fine until earlier this week. Now I cannot debug it at all - the message in the subject is displaye
-
- Application taking up too much memory (VB.NET 2003)
by N. Farr
- 3 Replies
- Last post
by spotty
- Hello all,
I have a sizable VB.NET 2003 app made up of 30 or so fairly busy forms. When the app is first run, it takes up about 52 Megs of RAM, however, by the time I hit the 20th or 21st form in the sequence the memory print is about 300 Megs! There is a maximum of 3 forms loaded at any one time, and forms that are no longer needed are closed and their handles are set to Nothing. Why does
-
- Search query using search term from user input into TextBox
by Mendozagold
- 8 Replies
- Last post
by Mendozagold
- Hi everyone, thank you for the help you provide on this forum, I've learned a lot so far. Right now I'm making a simple Access-Visual Basic 2005 .NET database. I want to make a Search Query that will search the Database for text similar to what the user inputs into TextBox1.Text on the form where the datagrid is displayed. I've created a query that works if: SELECT... FROM... WHERE mycolumn = 'oxy
-
- handling drag & drop
by Benny V
- 1 Replies
- Last post
by JohnHart_MSFT
- I'm trying to handle a drop event in a shape but dont see how to do this. I would like to be able to drop something on the shape and then take some actions. Any ideas Thanks
-
- How do I Display a Cash Till Style currency Textbox?
by Brandville
- 3 Replies
- Last post
by tattoo
- This is what I want to do. If the user enters 10 this should be interpreted as 10 pence. i.e. 0.10. if the user enters 100 it should be interpreted as 1.00 pound without having to insert a period or fullstop. As a guide the default value can 0.00
Any ideas
Thanks
-
- Keyboard sendkeys
by briendjf
- 11 Replies
- Last post
by briendjf
- Hello,
In a windows Form I have two buttons :
One to navigate on the Web
The other one to send to the active page ( in my example : "google"), a string (in my example : "test".)
I do not see on the Google welcome page the "test" indication arriving !.
What is wrong
Thanks for your help !
Public Class Form1
Private Sub Button1_Cl
-
- ClickOnce doesnt work on vista
by Luis Esteban Valencia Mu&a
- 4 Replies
- Last post
by Luis Esteban Valencia Munoz
- Hello, I got Windows Vista Ultimate and developed a small winform application, when I click publish it doesnt work it says that I dont have frontpage extensions installed, but I dont know how to install them.
Thanks
-
- The process cannot access the file during System.IO.File.Delete(filename)
by wilsoneden
- 7 Replies
- Last post
by subba
- I encountered the error: The process cannot access the file <full file path> because it is being used by another process. during System.IO.File.Delete(filename) I have opened the file using: pctPhoto.Image = Image.FromFile(filename) before I delete the file. Please advice. Thnx.
-
- Multiple threads reading from the same file... is it possible?
by WATYF
- 11 Replies
- Last post
by WATYF
- Hi there... I have a huge text file that needs to be processed. At the moment, I'm loading it into memory in small chunks (x amount of lines) and processing it that way. I'd like the process to be faster, so I'd like to try creating multiple threads, and having them load different chunks of the file at the same time and process it asynchronously. Is it possible to do something like that, and if s