all groups > vb.net > february 2004
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
execute statement
Posted by TJS at 2/29/2004 11:16:15 PM
trying to use code below to create dynamic variables but no success, what am
I missing ?
--------------------------
for i = 0 to 2
dim vString as string = "Dim submenu" & Cstr(i) & " As New
skmMenu.MenuItem(" & tab.TabName & ", """")"
EXECUTE (vString)
next
... more >>
Writing client-server sysetem using VB.NET
Posted by Chin Fui at 2/29/2004 11:15:23 PM
I am now doing my final year project using VB.NET. The project is about
implement a multiplayer network game. But now I am stuck in the connection
part, no idea in how to start to write the network application. Hope anyone
can give me any hint or help...
Thank you...
Chin Fui
... more >>
Accessing forms controls in module
Posted by Phil at 2/29/2004 11:12:02 PM
Hi all,
If I remember correctly, in VB you can refer to your controls from a module
simply by referring to ControlContainer, ie. Form1.Textbox1.Text =
"something".
I have added a module to my project in .Net and I cannot access any of my
controls in Form1. In fact referring to Form1 brings ... more >>
how to save copy of project from inside visual studio
Posted by Richard Bell at 2/29/2004 11:08:16 PM
I'm new to visual studio. Is there an easy way to 'snap shot' a copy
of a project from inside visual studio?
Thanks
... more >>
Finding string in text file
Posted by Phil at 2/29/2004 9:36:32 PM
Hi,
Is there a 'shorter' way to find a string within a text file without
'testing' each character or using the LineInput function. Does the
StreamReader have any search facility?
Thanks,
Phil
... more >>
Skinning
Posted by CJ Taylor at 2/29/2004 7:12:29 PM
I've been googling this for awhile, but can't seem to find anything really
solid on skinning a windows forms app. I know how to skin the internal
stuff but would like to see an example of stuff like the titlebar and
pushbuttons, etc...
Thanks,
CJ
... more >>
Cannot get rid of these exceptions
Posted by Patrick Penet at 2/29/2004 7:05:06 PM
Again I need your help, cuz I'm out of idea !
I get an error at runtime at the indicated line :
System.NullReferenceException occured in MyApp.exe
If I continue, I get :
System.TypeInitializationException occured in unknown module ...
Help on these matters is chinese to me.
In a standa... more >>
Disposing of a log in window
Posted by damianm NO[at]SPAM webaware.com.au at 2/29/2004 6:42:37 PM
Hi !
I am trying to dispose of the startup form in my application a login
form (frmLogin) after it calls the main form (frmMain). I cant seem to
get it to work. Here is my code.
frmLogin Code
==============
Sub btnSave_Click
Dim mainF As New frmMain
mainF.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Threading Question
Posted by Ed Bick at 2/29/2004 6:42:31 PM
I'm very green with this concept. I saw a post before which applied I
think, but I can now not find it.
I am using Mappoint, a com control which can be very slow to load. I was
thinking as a browsed through the post that I could make the form "show"
faster if I loaded the control through a s... more >>
Re :Re: ### vb.net DataGrid problem, cant make unbound columns ###
Posted by BuzzLight at 2/29/2004 4:20:37 PM
Hi I saw the help file for the DataGridColumnStyles object but after reading the overview of it I didnt understand anything... its way too complex for a beginnner like me :( Is it possible for you to give me a simple explanation.. and how I could use that object for what I want?
For people read... more >>
sending html formatted mail through vb .net
Posted by Bernie Yaeger at 2/29/2004 3:49:16 PM
The following code works fine:
Dim sr As StreamReader = New StreamReader("c:\htdogpro\bhome.htm")
htmstring = sr.ReadToEnd()
msg.Body = htmstring
msg.BodyFormat = MailFormat.Html ' as opposed to mailformat.text
However, if the htm file has images, they do not go along with the text
str... more >>
Class Definitions and Performance
Posted by Rlrcstr at 2/29/2004 3:08:57 PM
Is there any performance or end-result size difference if you define several
classes in a single module as opposed to defining each class in a separate
module? Thanks.
Jerry
... more >>
Word Template with XML
Posted by Michael Steffen at 2/29/2004 2:46:46 PM
Hi all,
I'm trying to create a Word Template, that reads and xml file when a new
document is created.
The xml file contains information of all employees, that use the template to
create a letter.
At startup the user should select an employee and then specific information
for that employee sh... more >>
make pop account on mail server
Posted by MailYouLike at 2/29/2004 12:42:23 PM
Hi !
i need some help and advice
i am using asp.net to make a email application it is complete but just one
thing ,
i want to create a pop account at the mail server from my scripts is
that possilbe??? by soap or some thing else ?
Please let me know and if it is possilbe can you dire... more >>
Caspol / One Touch Deployment / Security Issues - Any Idea's ?
Posted by One Handed Man at 2/29/2004 11:47:07 AM
Trying to get No Touch Deployment working, which is having a .net exe =
application on a webserver. My Asp.net page links to the .exe and when =
the user clicks on the hyper link, the exe is downloaded and executed =
locally. I've got the application downloading , but now I'm having =
trouble ex... more >>
What code can my program Email me with if a condition happens?
Posted by Trint Smith at 2/29/2004 11:01:08 AM
How can I do this if a certain event happens within my program? Can I
use a hotmail.com account or one of the tribidz.com that comes with my
hosting account? Is there a free way to do it?
Dim email As New System.Web.Mail.MailMessage
email.To = "trintsmith@hotmail.com"
email.... more >>
help someone read data from a web page
Posted by arnoldpalmer007 NO[at]SPAM yahoo.com at 2/29/2004 10:18:59 AM
Hello everyone,
sorry to invade your group. I'm only a casual VB programmer. I'm
usually using it to automate some simple text file I/O.
Sub testopenwebpage()
Const www = "http://www.eastbayexpress.com/issues/2003-09-17/music.html/1/index.html"
Dim EachLine
Open www For Input As #4
Do While... more >>
Browser Control Events ?
Posted by meh at 2/29/2004 10:14:22 AM
What are the best events to hide and unhide the progressbar when navigating
to web pages using the AxWebBrowser control. I have tried a couple of
events i.e. BeforeNavigate2 to set the pbar.visible to True and the
DocumentComplete to set pBar.Visible to False but none seem to function the
way I... more >>
'Sub Main' was not found ....
Posted by Pavel at 2/29/2004 8:56:06 AM
Hi
I'm new with vb.net
I've got application of single form 2 buttons and text field
When I try to run my progra
I get the following messag
'Sub Main' was not found in 'LoanCalculator.Form1'
Where should I put Sub main and what should it contain
Thank you in advance
Pavel... more >>
Regular Expression brain teaser
Posted by genojoe at 2/29/2004 8:16:10 AM
Is there a way to substitute for two words using a single Regex command. I would like to do the following substitutions in a text fil
From "sans" to "without
From "stupid" to "questionable
Using two Regex passes is simple. Can it be done in one?... more >>
Sending email!
Posted by joe at 2/29/2004 8:09:34 AM
I need to send a email to a person with my program. Does
anybody know how to do that in Visul Basic? I would
really like to know how!
thanks,
Joe... more >>
Formatting textbox on the fly
Posted by carlob NO[at]SPAM global.co.za at 2/29/2004 7:29:26 AM
Hi
How do I get textbox text to be formatted on the fly as entering.
I have a textbox which will hold numerics larger than a million which I
want to autoformat i.e FormatNumber, so that it makes it easier for the
person inputting to visually see what they are entering i.e they could
enter 10... more >>
List Box
Posted by carlob NO[at]SPAM global.co.za at 2/29/2004 7:26:35 AM
I am trying to code a program which when a person enters values in a
text box the program should wait for a + or a - to be entered before
adding the number to a list box. How do I code it so that the program
checks each entry? (the + or - should be the trigger for lstList.Items.Add)
Thanks... more >>
CheckBox
Posted by carlob NO[at]SPAM global.co.za at 2/29/2004 7:24:28 AM
Hi
I am trying to add a checkbox programmatically next to a list box but
with each new item added to the list box it should have a
corresponding checkbox. I therefore tried to use a variable for the y
co-ordinate to the control. The initial value should be 13 and then
should increment by 17 for... more >>
What langugage is used to program EA Games Battlefield 1942?
Posted by David at 2/29/2004 7:04:05 AM
Does anybody know what language computer game programmers use? can you
program games with visual studio .net? would they be of good quality?
... more >>
Exception setting SocketOption
Posted by Milosz - [playseven.com] at 2/29/2004 5:59:40 AM
Dim EP As System.Net.IPEndPoint = New System.Net.IPEndPoint(mIP, mPort)
Dim S As Socket = New Socket(EP.AddressFamily, SocketType.Dgram,
ProtocolType.Udp)
S.SetSocketOption(Sockets.SocketOptionLevel.Socket,
Sockets.SocketOptionName.SendTimeout, Me.mTimeOUT)
.......
it crashes with Ex... more >>
VB6 to .NET
Posted by Giacomo at 2/29/2004 5:39:20 AM
I updated a project that has everything late bound (Sqldmo and scripting
runtime). It works in VB6, came across fine in the upgrade process,
compiled.... sounds great so far hmmm? It works fine when I test it on
another machine with the .NET loaded on it. I tried it on a machine that
doesn't... more >>
"Filter" data from XML datafile into datagrid
Posted by Thomas A at 2/29/2004 5:13:22 AM
Hi,
I fill a datgrid with data from a xml document, it works fine
But....
Now I will to filter the data to the grid so only the data shows from
the criteria that I set.
My code now is very simple to fill the grid
Dim strProj As String
Dim MyA As String()
... more >>
What can slow down VB.NET windows database applications
Posted by jbastovanovic NO[at]SPAM sezampro.yu at 2/29/2004 12:39:18 AM
What could be the common or possible reasons that can slow down an
VB.NET windows database (SQL Server) application. What is the normal
time needed for such an application to initialize and show is first,
start up form.
I used stored procedures for every communication with database and the
bi... more >>
Dynamic MDI Menus?
Posted by Matthew Speed at 2/28/2004 10:44:17 PM
I am developing an MDI database access app that will be used by people
with varying access rights. Is it possible to make menu items show or
be hidden based upon the authority of the user? BTW...the user's
access level is stored in the db and stored as a public variable upon
successful authent... more >>
### vb.net DataGrid problem, cant make unbound columns ###
Posted by BuzzLight at 2/28/2004 10:29:21 PM
Iam very new to .net, in vb6 there was the flexigrid component, you could add rows, columns .. change their width, height, header captions etc very easily... but in .net all I see is one DataGrid.
I want to add columns and rows to it, change their header captions etc but it does not give me any o... more >>
Validating file names
Posted by Lance at 2/28/2004 10:21:05 PM
Are there any methods that indicate whether a string can be used as a full path for a file? For example, what I'm looking for is a method that would test for things like correct file name format, invalid characters, total number of characters (to make sure the path is not too long), existing local ... more >>
Project Items - What's the purpose?
Posted by copyco at 2/28/2004 10:03:39 PM
Can anyone tell me what the purpose is to adding items such as a
VBScript file or HTML document to your VB.NET project? Once you have
these things added, how to you access them and use them in your code?... more >>
Re : Re ## Startup Forms and Splash screen Problem - Please help me!! ##
Posted by BuzzLight at 2/28/2004 9:42:47 PM
Thanks alot Charles m8, your suggestion was very useful, Iam very new to vb.net ... I used application.run and it works fine but I do not know what "Application.Run" means.. what it does..
But Thankyou for your help... more >>
Outlook programming
Posted by Shahin at 2/28/2004 9:28:40 PM
Greetings,
I have a problem. I have a client that has an database full of email
address. He wants me to make it so when he types an email in the TO box that
it check the database instead of Outlook Address book. I know this can be
done by either customizing the form or making an Add-in. I am a... more >>
Compress dataset sent over a web service
Posted by Dan at 2/28/2004 9:13:44 PM
Hi,
I pass datasets back and forth between client app and web services (hosted
on iis 5). When written to xml file these datasets can be 500kb+. From a
bandwitdth meter it seems this amount it tripled to about 1500kb for total
traffic to send or receive these datasets thru the webservice. ... more >>
mulitline textboxes
Posted by Thom at 2/28/2004 7:57:39 PM
I'm a real newbie so I apologize for the easy question. I have academic
version of vb.net 2003.
I am trying to write a multiline textbox with data from a text file.
Properties for the textbox are multiline = true, scrollbars = both, wordwrap
= false.
I actually have two textboxes side by sied... more >>
Class library search order?
Posted by Wayne M J at 2/28/2004 6:59:40 PM
For a Windows Form or a Console application that utilises class libraries,
does the search order include the local directory?
... more >>
listview index
Posted by Daniel Sélen Secches at 2/28/2004 6:15:19 PM
who can I get the value of a selected "field" of a listview?
what I need to know is which index is selected and for exemple
LVtasks.items(SELECTEDiNDEX).text
is that?
tks
... more >>
Help with vb.net controling excel and excel is hanging in mem
Posted by David C. Allen at 2/28/2004 5:58:31 PM
I have a vb.net app that is controling excel 2000 thru the com interop
interface. I have referenced the excel 9.0 library and have cut down the
code in the problem subroutine to this:
Dim objExcelApp As New Excel.Application
objExcelApp.Quit()
objExcelApp = Nothing
... more >>
Best Resource for learning .NET (from a VB6 User's point of view)
Posted by Terry Olsen at 2/28/2004 5:15:54 PM
Trying to learn VB .NET is proving to be an extremely slow & tedious
adventure. For example...
VB .NET won't let me add my own SUBS or FUNCTIONS to Form1.vb. So I created
a module and put my SUBS in there. I can call the SUBS from the Form1.vb,
but I can't reference the controls in Form1.vb... more >>
## Startup Forms and Splash screen Problem - Please help me!! ##
Posted by BuzzLight at 2/28/2004 5:12:21 PM
This is my problem :-
- I have set a form frmSplash as the startup form instead of sub Main.
- This means I dont create an instance of it myself at startup.. its automatically created.
- I have a timer on frmSplash set to 3000 ms interval - and here is its tick event :
Private Sub tmrStartup... more >>
writing to CD from visual basic
Posted by RexLex at 2/28/2004 5:06:06 PM
Is is possible to write to a CD-RW drive directly from Visual Basic code...(eg. Access 2002 form modual)
DoCmd.OutputTo acOutputTable, "tblTest", acFormatXLS, "E:\Test.xls", False
this will write data to any drive but a CD drive....... more >>
searching telnet example.
Posted by fabian ruranski at 2/28/2004 12:45:39 PM
Have someone an example for a Telnet application in vb.net??
... more >>
Drag and Drop on Web page
Posted by Bud at 2/28/2004 12:36:06 PM
Hi
I'm new to .net. I would like to develop a web application where I can drag a 'Customer Name" from a tree list and drop it on a "Update Customer Address Button" . Are there any simple VB examples that show Drag-and-Drop for a beginner.
... more >>
TAPI or similair? hat do I need?
Posted by Kristoffer Arfvidson at 2/28/2004 11:36:49 AM
Hi!
I would like to develop a kind of an telephone answering machine for my
computer...
This means that I need to figure out how to...
Detect a phone ringing.
Answer the call.
Play wave to phone line.
Record Wave from phone line. (Hopefully to stream)
Hang up.
But the problem is that I ... more >>
Active directory
Posted by Seth at 2/28/2004 11:36:06 AM
I'm a newbie to the whole .NET Framework. I need to create a Web Interface to search Active Directory and pull out all the Users and Contacts of a domain. What would be the best langauge to do this in? I was able to do this with VB6 as a windows application but I want to be able to do it through a W... more >>
Include dotnetfx and mdac in setup
Posted by Totto at 2/28/2004 11:35:01 AM
Hi,
Is it possibel to include installation of dotnetfx and mdac in a setup
project ?
Tnx
Totto
... more >>
combobox in datagrid scrolling behavior
Posted by Tom at 2/28/2004 11:16:06 AM
I have tried all the solutions I have found on the web, including the syncfusion solutions
I can get the combobox on the grid ok, but it does not behave like a regular combobox
Example
On a form, you can tab to a combobox, F4 to dropdown, up/down arrow to scroll, and Enter to select choice
On a ... more >>
Help with Crystal Report
Posted by RJN at 2/28/2004 10:51:25 AM
Hi
I'm new to VS.Net Crystal Report. I'm using data sets as the source for
crystal report. I've a dataset which has 2 data tables. The first
table's schema is like this
Ptid String
Prid String
Chid String
PtName String
Count int
The columnc Ptid, Prid and Chid are the primary key co... more >>
|