all groups > vb.net > september 2007
Filter by week: 1 2 3 4 5
Questions about ProcessStartInfo
Posted by Academia at 9/30/2007 8:36:15 PM
I use:
'Execute Command (DOS) commands
Dim StartInfo As New ProcessStartInfo
Static sMyProcess As New Process
StartInfo.FileName = "cmd"
....
1) Is there another file that runs DOS commands in XP besides cmd?
Does the XP Command prompt window use cmd or something else?
... more >>
Determine if a Form is already open.
Posted by Greg at 9/30/2007 6:07:00 PM
How can I tell via code if a Form is already open.
Each time my forms load I have some initialization code that runs, but if
the form is already open and hidden I don't want that initialization code to
run. Thus, I just want to unhide the form.
My thought is eveyrtime I go to load a form... more >>
Unknown Form Load Error
Posted by Greg at 9/30/2007 5:50:00 PM
When loading my project i get the following error message.
The form referred to itself during construction from a default instance,
which led to infinite recursion. Within the Form's constructor refer to the
from using "Me.".
I have a main form named frmMain. I have another form named fr... more >>
Reading Information from a File
Posted by cmdolcet69 at 9/30/2007 3:58:29 PM
I have this code below that will open a created file and read the file
to the end. However if my file has values 200,300,400 seperated by
commas how can i read in each seperate value and place it into an
arraylist? I need to do some sort of commas split to just read the
values and not the commas... more >>
Muti-parameter for System.diagnostics.process.start() ???
Posted by kimiraikkonen at 9/30/2007 3:19:30 PM
Hello,
I want to ask this:
If i do: System.Diagnostics.Process.Start("c:\lame", "--preset
standard c:\blabla.wav c:\blabla.mp3") it works.
But i don't want this. I want my 2 textboxes must take place as
variable like: System.Diagnostics.Process.Start("c:\lame", "--preset
standard textbox... more >>
Slow Transfer Rates on Socket and TCPClient data reads
Posted by Andrew Jackson at 9/30/2007 2:17:57 PM
I am writing a newsgroup client. I have the protocol figured out. But I
get slow transfer speeds off any of the network objects read the data from
For example one of the commands for a news client to use is "XOVER
articlenumber-"
This return string after string of all the news articles f... more >>
Perl RegEx - VB.NET equivalent?
Posted by Spam Catcher at 9/29/2007 11:09:59 PM
Hi all,
I'm porting a peice of Perl code and it has the following regex:
$text2Check =~ s/\x0D\x0A|\r/\n/g;
I'm confused about the s/ and /\n/g.
Anyone know what the equivalent is for .NET?
... more >>
What happened to Dynamic Interfaces?
Posted by Joh Smith at 9/29/2007 9:21:17 PM
Hi,
I remember reading about Dynamic Interfaces when VB 9.0 has been announced.
http://download.microsoft.com/download/5/8/4/5841bc1a-e864-4423-bb75-d4f3c18c0af5/visual%20basic%209.0%20overview.doc
http://channel9.msdn.com/showpost.aspx?postid=116702
What happened to this feature? Is it avai... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
monthCalendar
Posted by jay at 9/29/2007 6:37:47 PM
given the post date of Septemtber,I have set the
monthCalendar.calendardimensions = 1,3. This displays Sept, Oct and
Nov, but I would like to display Aug, Sept, and Oct. Is there a
property that will allow this ?
... more >>
dataGrid
Posted by jay at 9/29/2007 6:33:09 PM
I have a databound grid on my form. I edited the collection and set
the defaultCellStyle.Format = c2 on a particular column, but when I
enter 100 thats the way it is displayed in the grid. If the format is
c2 it is supposed to display $100.00. What am I missing?
Thanks
... more >>
Save Image
Posted by <999> at 9/29/2007 12:00:00 AM
Hello All
I Use The Command Me.ImageList.Add(Image.FromFile(PATH)) To Loed Images To
An ImangeList But The ImageList Dont Save The Images (Delete Them From The
HD Or Change Their Path They WIll Disappear From The Imagelist)
So Please How Can I Save Them (I Must Use The Path)
Thanks For All ... more >>
Multiple Comboboxes bound to one Dataview
Posted by Randy at 9/28/2007 8:11:44 PM
I have a routine that creates a series of comboboxes, each of which is
bound to a common dataview. Everything used to work fine, but now,
when I change the value of any of the comboboxes, the value in ALL of
the comboboxes changes to the new value. I have boiled down the code
to the simplest ... more >>
DeviceIoControl
Posted by Lou at 9/28/2007 7:24:32 PM
is there a VB .NET way to use the API "DeviceIoControl"?
-Lou
... more >>
How to create a new column in a datatable from two existing column
Posted by Peter at 9/28/2007 5:34:00 PM
I want to create a new column in a datatable from two existing columns. I
have no problem to create the new column using the datatable.columns.add
method. The problem is the value of the new column may become system.dbnull
since one of the two existing columns may have system.dbnull. How ca... more >>
Testing for null value gives unexpected error
Posted by Problematic coder at 9/28/2007 5:19:56 PM
Here is the code:
64 If objdr.Item("BD") = "" Or objdr.Item("BD") Is DBNull.Value Then
'test to see if result is blank or null
65 strBD = "00000000" 'No birthdate found so set to 8 spaces
66 Else
67 strBD = objdr.Item("BD") 'All ok so leave as is
68 End If
Here is the erro... more >>
Creating classes|properties|methods programatically
Posted by Andrzej Lipski at 9/28/2007 4:34:14 PM
I am new to dotnet and I'll tried searching Google for a solution to my
problem. I am hoping that it is possible to do, or am I going down a dead
end?
I have a User class that has known properties from a DB table (EmployeeID,
FirstName, LastName) and a set of unknown properties that need t... more >>
3.5 Framework
Posted by bmckenna NO[at]SPAM gmail.com at 9/28/2007 2:39:48 PM
Hi there,
I recently built a relatively simple application in VB.net using
VS Studio 2008(the front end is attached to an Access database).
Everything seems to run smoothly on my machine and on any other
machine that has the .net 3.5 framework installed, but on any machines
running .net... more >>
Graphics question
Posted by Kevin at 9/28/2007 1:41:58 PM
I'm trying to create a scheduler program to keep track of what parts
of our training grounds are being used on what days.
I'd like to have a drawn out representation of our training areas and
show the reserved areas shaded. Is there an easy way to do this in
VB2005?... more >>
Serial COM.Read
Posted by cmdolcet69 at 9/28/2007 10:19:24 AM
Can anyone help me out? I have some code below that writes a packet of
bytes into the Serial COM. When i call the Ocp.Read (7) i pass in all
7 bytes and i can;t get it to return byte(2) and byte(3) position?
The mabtRxBuf stores all the byte written in however it return an
integer i want it to r... more >>
Need a clever solution.
Posted by Shawn at 9/28/2007 9:17:29 AM
I am building a Windows app (VB.NET) that has a form that contains a panel.
At runtime, the panel is populated with any number of labels that are
dynamically built from a database query and placed in the panel. I want to
be able to move the labels around so that none of them are overlapping. T... more >>
how to Automatically select next item in listbox
Posted by kimiraikkonen at 9/28/2007 8:46:24 AM
Hello,
I have a moodest mp3 player which has a playlist as listbox1 which
shows full path or each inserted file.
The problem is, when a media playing is ended, i want my listbox to
select automatically next (under/below) item to continue.
What things can i add to that code:
If Me.AxWindo... more >>
Open a file text file with data and parse
Posted by cmdolcet69 at 9/28/2007 6:49:46 AM
How do i parse a text file with data value in it? I have a series of
values that are sepereated by commas. the file holds around 3700
values and all these values need to be parsed out and put into an
array to be used.
... more >>
Tree View - List OU's
Posted by Darren (UK) at 9/28/2007 5:36:03 AM
I have very limited knowledge of VB and am trying to convert this to list
Just OU then when selected fill a text box with the full DN. I know this is a
big ask but can anyone help.
I know i need a filter to filter on Just OU.
The code i have thus far is:
Private Sub subRootNode()
... more >>
Vb newb needs help on data import/export
Posted by joaotsetsemoita NO[at]SPAM gmail.com at 9/28/2007 4:40:31 AM
Hello everyone,
im completly new to vb.net and I was assigned to do a simple piece of
software that just had to select from um db in a MS access data base
and insert into a SQL server Database. The structure tables are
exactly the same so there's no need in data conversation.
My idea was t... more >>
SortedList or Dictionary of KEYS ONLY
Posted by pamela fluente at 9/28/2007 3:11:33 AM
I noticed that I am using quite often SortedLists where I use KEYS
only.
when I add new elements I use something like : MyKeyObj ,
Nothing/Null/false
Is there a collection type which is similar to the SortedList by does
NOT
have the Values ?
And, a similar question, I have for the Di... more >>
Access Table and ColumnNames
Posted by Peter W Johnson at 9/28/2007 12:00:00 AM
Hi Guys,
I have a VB .NET application that uses Access as the database. I
have one query (qryInvoiceNumbers) which creates a join on the ColumnName
InvoiceNumber in each of three tables using the same columnname
(tblTaxInvoice, tblPayments and tblTransactions). The tblTaxInvoice tab... more >>
Formless application
Posted by John Devlon at 9/27/2007 9:59:51 PM
Hi,
This is maybe the most stupid question you will ever read ...
I'm trying to create a small application, when launched, executes just a few
small tasks...
No front-end is needed... How can I create a small application that triggers
a few actions, but doesn't show anything (no forms)
... more >>
Connecting to remote access database
Posted by Alexander Dong Back Kim at 9/27/2007 8:12:15 PM
Dear all,
First of all, I know many similar questions has been asked in this
forum, however I couldn't find any answer for VB.NET or I'm not that
great on VB 6.0 so I couldn't understand their answers. Second of all,
most of answers are related with intranet whereas I want to find a
solution ... more >>
.net framework version, visual studio '03
Posted by jroozee NO[at]SPAM gmail.com at 9/27/2007 6:17:25 PM
I am developing in VS '03. I have all of the current framework
versions installed on my PC, 1.1, 2.0, and 3.0.
How can I make sure the code I am developing in is using the 3.0
framework version? Or do I need to be using the latest version of
Visual Studio to do so?
Thanks,
Jason
... more >>
Picture and datagridview
Posted by Screaming Eagles 101 at 9/27/2007 6:00:51 PM
Hi,
is there an easy way to add a picture(box) to a column in a datagridview ?
My first column has a code, ex. 1, 2 or 3
According to these codes I'dd like to add a picture(box)
to my second column, just at the time when I show the data in the grid.
I don't save the pictures in the databa... more >>
Is there a better way to do this
Posted by kah at 9/27/2007 5:29:02 PM
Hi Guys,
In my ASP.net application, i am display information using a dataset.
e.g
for each datarow in dataset.table(0).rows
label.text=datarow.item("ColumnName").tostring
next
This works perfectly fine until i have to rename a column in my table.
Obviously the easiest way to make th... more >>
Eject cd
Posted by John Devlon at 9/27/2007 5:11:47 PM
Hi
Does anyone know how to eject a cd/dvd on a drive?
Thanx
John
... more >>
connecting to news server
Posted by John Devlon at 9/27/2007 4:53:48 PM
Hi,
I would like to develop a small application that connects to news server .
Does anyone know any good tutoral ?
thanx
John
... more >>
Printing question
Posted by Andy Baker at 9/27/2007 4:53:18 PM
All of the reports in our VB.NET 2003 application are printed on blank A4
paper, and Crystal Reports XI is used to create all the forms, logos etc on
the report. We have a new user who wants to print reports (invoices) on to
pre-printed stationery on a dot-matrix printer. As far as I can see, ... more >>
Getting command prompt result into textbox
Posted by kimiraikkonen at 9/27/2007 3:33:38 PM
Hello,
I have a textbox named "textbox1" and a button named "button1"
How can i retrieve the console (cmd) data into textbox?
For example when i run Shell("cmd.exe /k dir c:\",AppWinStyle.Hide)
when pressed button1, i want the result is displayed into textbox.
Thanks
... more >>
How to prevent Start menu to open (disable it)
Posted by bz at 9/27/2007 2:28:00 PM
Hi,
I need an app to run in kiosk mode, so user will not have access to
start menu and taskbar while the app is running
I was able to hide / show the taskbar with trhe following code when
app starts / exits
(the code is in C#, but please help me with suggestion no matter what
lang you ... more >>
Textbox text property with HTML facillities??
Posted by Finn Stampe Mikkelsen at 9/27/2007 2:20:48 PM
Hi
Is there any way to make the textbox property show html, like a textarea on
a webpage would??
I have a webapplication that saves an textarea complete with html tags and
everything...
Now i'm coding a windows application to work with the same data and i need
these data to be display... more >>
Beginner level VB.NET question
Posted by OregonMike at 9/27/2007 11:45:52 AM
I'm a C# guy tasked with fixing some bugs in VB.NET code. I've run
into something that doesn't seem to make sense. I have an Object
reference to a System.Windows.Forms.ToolStripComboBox Object that gets
initialized and performs just fine. Now, when closing the app, this
object gets Disposed.... more >>
Inheriting from UserControl
Posted by Charlie Brown at 9/27/2007 7:39:39 AM
I have two classes, one that inherits from UserControl called Base. I
have a second class that inherits from Base. I do not want to expose
a lot of the properties of usercontrol beyond the Base control. For
example, lets say I want every control that inherits from Base to have
a RED backgroun... more >>
Best practice for coding two similar forms?
Posted by at 9/27/2007 7:16:46 AM
Hi, I am a C/C++/C# programmer that has inherited a HUGE VB.Net
application with several VB forms. I am a mediocre VB programmer.
Two separate companies are now going to be using the application.
Most of the forms are fine for both companies. A few of the forms
require significant modification... more >>
Display a text file with a ListView
Posted by Marco at 9/27/2007 6:57:40 AM
Hi everybody,
I should create a little utility that can give the chance to view a
log file, created by an external application, in .txt format; for
example I could have a similar log file:
27/09/2007 15:47:00 operator1 GENERAL CYCLE STARTED
27/09/2007 15:48:19 operator2 GENERAL CYCLE SUSPENDE... more >>
Dynamically list all System types in VB.Net
Posted by Joh at 9/27/2007 6:21:46 AM
Is there a way to dynamically list all System types that exist in
VB.Net? I.e. I'd like to list all types in the System namespace
programatically.
... more >>
can i have a book
Posted by meherzad at 9/27/2007 4:09:57 AM
I really wanted to ask can i have a book on vb.net.the name is deitel
n deitel
... more >>
Flicker-free Ticker / Text Scroller
Posted by trondhuso at 9/27/2007 3:31:34 AM
Hi Group,
I'm to write a Ticker application that will get it's content from RSS-
feed(s), the RSS-part is not part of the problem though.
I've searched the web and found a few solutions here and there that
creates the scrolling text, but not without flickering. I then tried
to move the text i... more >>
VB.NET Documentation
Posted by BWPanda at 9/27/2007 12:39:46 AM
I'm fairly new to VB.NET, and having just come from learning Java, I'm trying to
locate documentation similar to that which Java has online (explaining all the
different classes, etc.)
Apparently VB.NET is an object-oriented language too...
A page from Microsoft (http://support.microsoft.com... more >>
AspNetSqlMembershipProvider problem
Posted by Rudy at 9/27/2007 12:00:00 AM
Although I have set the 'requiresQuestionAndAnswer' to false in the
web.config I still get the error {"The password-answer supplied is
invalid."}
Anyone have a clue?
Button handler:
Dim m As MembershipUser =
Membership.CreateUser(Me.CreateUserWizard1.UserName,
Me.CreateUserWizard1... more >>
Resource files / Language files
Posted by Screaming Eagles 101 at 9/27/2007 12:00:00 AM
Hi,
we used to have a resource file in VB6 and use this as a provider according
to the language a user chose
(English, Dutch, Spanish,....), his interface thus.
In this resource file we had al labelcaptions, texts for messageboxes,
etc... stored,
so when the user chose for an interface in ... more >>
Memory...issues
Posted by James at 9/26/2007 4:44:53 PM
I have a record set of roughly 1200 records. The logic flow is like this:
Dim ds As New DataSet
Dim da As New SqlDataAdapter("SELECT * FROM Fax_Queue", objConnection)
da.Fill(ds, "Queue")
Dim dr As DataRow
Dim rpt as FaxReport = New FaxReport
For Each dr In ds.Tables("Queue").R... more >>
Compile Date
Posted by Mufasa at 9/26/2007 3:40:14 PM
Is there any way to find out when the program was last compiled?
TIA - Jeff.
... more >>
Multiselect problem with listbox
Posted by kimiraikkonen at 9/26/2007 3:11:52 PM
Hello,
I have openfiledialog control named "openfileplaylist" and multi-
selectpropert is TRUE. But although i select more than one files using
"shift+arrows", i only get one file listed in my listbox.
What's wrong?
Code:
If openfileplaylist.ShowDialog() = Windows.Forms.DialogResult.OK T... more >>
|