all groups > vb.net > january 2004 > threads for thursday january 15
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 30 31
Mulitselect listbox
Posted by Eric Schreiber at 1/15/2004 10:52:37 PM
How can i get the itemdata form each item in a mulitselect list.
I made a loop but keep getting only the first value.
Dim i
Dim array1(100)
For i = 1 To aantalrecords
If ListBox1.GetSelected(i - 1).ToString = True Then
ListBox1.SelectedIndex = i - 1
mylist = ListBox1.SelectedIte... more >>
Undo option
Posted by John at 1/15/2004 10:30:57 PM
Hi
Is it possible to implement an application wide Undo facility, like that
under the Edit menu?
Thanks
Regards
... more >>
Copy, Cut, Paste
Posted by John at 1/15/2004 10:08:04 PM
Hi
How can I implement cut or copy or paste in code?
Thanks
Regards
... more >>
Webservice 'can not create type' parse error
Posted by Troy at 1/15/2004 9:26:16 PM
I installed the default hello world web service on my site and get the error below. My site is being hosted by a 3rd party and i copied the asmx file to a folder in my root, the /bin is in the same folder as my asmx file. My host is saying all looks good on thier end. Am I uploading/naming someth... more >>
alternative to 'window.parent.frames'
Posted by spamproof2005 NO[at]SPAM yahoo.com at 1/15/2004 7:26:00 PM
I have a frameset that breaks my page into 3 sections. Top, middle &
bottom.
My navigation is in the middle part. I use the following code to
change my top & bottom page when a user clicks a link. Problem is, if
they ever hit the back button, the previous top page shows and only if
the hit th... more >>
Copy protection
Posted by John at 1/15/2004 6:29:22 PM
Hi
Is there a way to copy protect a vb.net app? I am thinking may be activation
of some sort over tel or internet. Has anyone done something on these lines?
Thanks
Regards
... more >>
Converting Recordset to DataView
Posted by kjvt at 1/15/2004 5:41:13 PM
Based on a prior posting, I've written a function to convert a
recordset to a dataview. The first call to the function for a given
recordset works perfectly, but the second call always returns a
dataview with a count = 0. Can someone explain why and how I might
work around this problem?
H... more >>
Copy entire folder to X path
Posted by kevin at 1/15/2004 5:39:44 PM
Greetings,
I am looking for an efficient way to copy an entire folder into a path.
I looked all over MSDN and found ways to copy files individually, but i have
a folder with lots of sub folders and files.
Your help is appreciated.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
copy entire folder to x path
Posted by kevin at 1/15/2004 5:37:32 PM
Greetings.
I am well aware that visual studio.net (vb.net) has the option of using
their custom installer software, but i insist on creating my own.
I am relatively new, and so i am looking for a quick and easy solution.
I have a folder that we will call X. It has several sub directories a... more >>
Error creating database connection with field name "Section"
Posted by nlls NO[at]SPAM nospam.home.com at 1/15/2004 4:24:40 PM
I've run across a strange error when creating a simple ADO.Net
connection in VB.Net 2003
To replicate an error:
Create an Access database (2002) with table named "Student" and fields
SID (Autofill), FirstName and LastName.
Put some dummy data in table.
Start a new VB.Net application, cre... more >>
blue bar above the datagrid
Posted by DraguVaso at 1/15/2004 4:24:25 PM
Hi,
When using the Datagrid I always have that blue bar above it. Is there any
way to remove that bar, so I have more space on my forms?
Thanks in adavance,
Pieter
... more >>
Datagrid Problem
Posted by cornelissen3s NO[at]SPAM hotmail-dot-com.no-spam.invalid (--=|3s| at 1/15/2004 4:18:06 PM
I have a form students. 2 oledbdataAdapters. 1 dataset. One
oledbdataAdapter for my student table one for a table with courses.
I want to see per student the courses that he follows.... On my form
u can see 3 txtboxes with name, surname and number of a student. Now
the datagrid on my form must ... more >>
Creating services
Posted by Alessandro at 1/15/2004 4:07:21 PM
Hi !
I want to create a service .net that any day at 2 A.M make a mirroring of a
db via web-service. i have no experience in that, anyone can help me ?
I can create a simple exe and then using win2000 scheduler to start it , or
a can use something that asyncronously do it from my web application... more >>
Databases ... which way is the best?
Posted by Luke Vogel at 1/15/2004 3:53:17 PM
Hi all.
This is a bit of a newbie type question.
I am trying to figure out what is the best way to connect to a database;
ado.net, odic others?
I've found a couple of examples that show you how to connect to the
"Northwind" database, using oledb??
Do these actually query the database f... more >>
Code Sharing Problem
Posted by A-PK at 1/15/2004 3:46:24 PM
Hi, currently I am working on a project with several programmers.
my problem is how could I separate one project into several small module and
assign to my programmers. after all the coding is done, then just add in
those modules, and combine all modules into one conplete project
Let's say t... more >>
SelectedIndexChanged
Posted by A-PK at 1/15/2004 3:45:45 PM
Could someone guide me why "SelectedIndexChanged" always trigger event twice
I tried to put a simple messagebox.show("test") there. but always poping up
twice messagebox. please guide me.
... more >>
Delete element from a 2-D array
Posted by Hugh at 1/15/2004 3:19:07 PM
Hi,
Is there easy way to delete elements from a 2D array?
Thanks for your tip.
Hugh... more >>
BinaryReader C# Problem
Posted by mychevworld NO[at]SPAM yahoo.com at 1/15/2004 3:04:51 PM
I'm reading in a text file 602 bytes at a time, using the code below.
One of the lines has text that looks like this: "Cell#+9 and
more text here going to 602 characters for each line."
For some reason when this line is encoded the +9 is gone and
everything is moved to the left 2 bytes.
... more >>
Msgbox parameter Or operator questions
Posted by Eric Goforth at 1/15/2004 2:56:32 PM
Hello
I'm sure that anyone with VB.NET would be familiar with the msgbox parameter syntax
Dim msg As Strin
Dim title As Strin
Dim style As MsgBoxStyl
Dim response As MsgBoxResul
msg = "Do you want to continue?" ' Define message
style = MsgBoxStyle.DefaultButton2 Or
MsgBoxStyle.Critic... more >>
How to call an Event ?
Posted by Stan Sainte-Rose at 1/15/2004 2:11:40 PM
Hi,
How can I call an event from an action.
Example, I want to call the datagrid.Double.click event when a button is
pressed.
Stan.
... more >>
newbie with a VisualBasic.NET Winforms problem
Posted by bobmellon NO[at]SPAM hotmail.com at 1/15/2004 1:52:25 PM
I have a function - UserSaysSave() - that asks user if they want to
save using System.Windows.Forms.MessageBox and Returns the Result.
Function UserSaysSave() As Boolean
if MessageBox.Show(strText, strCaption, MessageBoxButtons.YesNo,
MessageBoxIcon.Question, DefaultBtn) = DialogResult.Yes) Th... more >>
Documents on MDI forms with Dataset?
Posted by grawsha2000 NO[at]SPAM yahoo.com at 1/15/2004 1:51:19 PM
Greetings,
Thanks in advance for your kind attension.
I have been searching for documents about dynamically coding MDI forms
when working with datasets. Does anyone know of any???
MTIA,
Grawsha... more >>
Second try. Insert data from Dataset in to Database
Posted by Ruslan Shlain at 1/15/2004 1:29:50 PM
I have looked high and low and i cant get anything to work.
I have a dataset that i fill with data from text file.
I need to populate my SQL Server 2000 database with data in that dataset.
Dataset has close to 3000 records and may have as many as 70 + columns.
I am looking for an exemple of some... more >>
Removing items from the "SelectedItems" in a ListBox
Posted by Robin Tucker at 1/15/2004 1:22:54 PM
SelectedItems and SelectedIndices appear to be read-only, so I cannot remove
a selected item. I need to do this to synchronise the selection in my list
with the selection in other views (ie. select in another view and the
selected items in my list change).
How can I change the selected items ... more >>
How can I wirte ASP applications???
Posted by Arturo Toledo at 1/15/2004 1:20:21 PM
Yes, I know I am a beginner hahaha. Anyway.
I´ve been studyng ASP and web xml service development. I use Visual Basic
..NET STANDARD Edition...
Everytime I need to tryout a script or module I get asked by VS to install
that on a virtual server in my computer... that´s supposed to be done with... more >>
DataTable.Select
Posted by Tae Lee at 1/15/2004 1:07:59 PM
Could someone please help me? I have searched everywhere
but couldn't find definite answers. I am trying to read
xml file to a dataset and select from it. Here's xml
file:
<?xml version="1.0" encoding="utf-8" ?>
<root>
<data>
<id>1</id>
<name>Tae Lee</name>
</data>
<data>
... more >>
What's the defrrence between these(sub,procedure,function,private) !!??
Posted by ifrst at 1/15/2004 12:26:13 PM
What's the defrrence between these(sub,procedure,function,private)
and when i use them
Als
i know it can be function ,sub or procedure Public or private so what does it mean Private only such as
Private ask(
.......
statmen
........
End private... more >>
Slow opening of outlook
Posted by John at 1/15/2004 12:00:27 PM
Hi
When I open a new outlook email from vb.net, sometimes outlook is very slow
to appear or occasionally outlook freezes completely. I am targeting mixed
office2000/xp environments so I am using the office2000 interop dlls
generated by vs.net by adding office 2000 com reference.
Any one el... more >>
DateTimePickers.Checked Problems
Posted by Marco Castro at 1/15/2004 11:24:12 AM
Is it just me or does the Checked property of the DateTimePickers not work
properly?
I was trying to set it to off (which should disable the editing of the
control) to indicate that its a null value.
However sometimes when I do set it to off the control doesn't change. If
you read back the val... more >>
WebRequest in VB.NET ?
Posted by MikeG at 1/15/2004 11:22:50 AM
Hi,
Here it goes...
I am writing a WINFORM app using VB.NET.
On one form, I have a text field where the user can write a search criteria.
When he click on the *search* button, my application searchs a particular
WEB page.
The results are pulled from a result WEB page and store into a WinFo... more >>
Update Parent Window
Posted by Rob T at 1/15/2004 11:15:23 AM
I have a simple form with a text box in it that I'm using to show the
history of events in my program. My main form references a bunch of class
modules to execute various routines. I would like these routines to be able
update the textbox in the main form but am at a loss on how to do it.
(exa... more >>
Month As Integer Format to String?
Posted by Dave at 1/15/2004 11:10:31 AM
Dim iMonth As Integer = 1
Dim strMonth As String = Format(iMonth, "MMMM")
console.write(strMonth)
Output = "MMMM" expected "January"???
what should the code be?
... more >>
HELP: Subscript out of range error (array) - CONFUSED!
Posted by VB Programmer at 1/15/2004 11:10:22 AM
I'm acutally using VB6, not VB.NET, but I couldn't find the newsgroup for
version 6....
I need help for something that should be simple. I keep getting a
"subscript out of range" error and don't know why. Briefly....
I have an array of Variants dimmed as this:
Global gMyConnection() As Va... more >>
Whidbey month of release...?
Posted by Crirus at 1/15/2004 11:10:11 AM
Any ideea?
--
Cheers,
Crirus
------------------------------
If work were a good thing, the boss would take it all from you
------------------------------
... more >>
How to pass a subroutine as a parameter to another subroutine?
Posted by Richard at 1/15/2004 10:55:38 AM
Hi. How can I pass a subroutine as a parameter to another
subroutine? How would the formal parameter list needs to
be declared in order to receive a rubroutine (address)?
Thanks in advance,
Richard
... more >>
debug problem
Posted by LM at 1/15/2004 10:50:39 AM
Whenever I debug the project, I get compile error every
other time. Even just adding comment gives me error.
It's very annoying.
Does anyone know why? I uninstalled and reinstalled
VS.net, but problem is still the same.... more >>
Local DotMatrix Lineflow Single Line Print
Posted by bclegg at 1/15/2004 10:13:29 AM
Hi,
I have a Monitoring application that needs to output single line
summaries to a local dot matrix printer loaded with line flow. ie. It
will have exclusive use of the printer which is connected to LPT1.
I need to get the normal number of lines to each page. ie 60 summaries
onto a 66 lin... more >>
Scrolling within a Text Box
Posted by Geoff Olding at 1/15/2004 9:48:35 AM
In VB.Net, if you click on an editable text box which is
too small to fully display its contents, the content are
right aligned (i.e. scrolled).
This is OK, however when you move away from the text box,
the display is not changed, i.e. the contents are not then
left aligned again so that th... more >>
Save DataTable To SQL Server
Posted by Ruslan Shlain at 1/15/2004 9:43:00 AM
I have a data table with 3000 + rows in it. Is there a way to insert it in
to the SQL server database with out going through datatable row by row? Any
code samples or links would be great. Thank you all very much
... more >>
Windows Forms Application Desktop Toolbar
Posted by borisbulit NO[at]SPAM yahoo.com at 1/15/2004 9:21:31 AM
Does anyone know how to create a Windows Forms Application Desktop
Toolbar in VB.NET?
Something like this:
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=BC0A1F5C-07FF-4B50-B3FF-FF60795FD21E
But in VB.NET
Thanks
Boris... more >>
Inheritance
Posted by Frank at 1/15/2004 7:32:12 AM
This is probably an easy question for you experts to
solve: I'm trying to extend the datatable type
Private Class MyDataTable
Inherits DataTable
End Class
Sub Test
Dim mTbl as New MyDataTable
mTbl = GetData
End Sub
This code generates an 'Specified cast is not va... more >>
EM_SETTARGETDEVICE and RichTextBox
Posted by active at 1/15/2004 7:15:45 AM
While editing I'd like the RichTextBox display to look as the printed output
will look.
I believe EM_SETTARGETDEVICE does this. Not sure how to use it.
Do I give it the window handle of the textbox and the paper width or the
window handle of the printer and the paper width minus the left and... more >>
UserControl hangs on to SelectedText
Posted by Troy at 1/15/2004 6:57:42 AM
A user control with
1 combobox
1 button
has a default constructor.
The control has public properties to set the combobox
Datasource, DisplayMember and ValueMember properties.
These are set in the Forms Load event handler.
The combo box control has its text selected even though
it d... more >>
Add Printer Wizard
Posted by Will at 1/15/2004 6:41:17 AM
Hi all,
I want to run that add printer wizard and i'm using this:
System.Diagnostics.Process.Start("rundll32.exe
shell32.dll,SHHelpShortcuts_RunDLL AddPrinter")
And i'm getting this error:
An unhandled exception of
type 'System.ComponentModel.Win32Exception' occurred in
system.dll
... more >>
DateTime value as just Time on DataGrid
Posted by Sean at 1/15/2004 6:34:09 AM
How do I setup the DataGridTextBoxColumn object so that a
DateTime variable only shows the time portion?... more >>
cant view source of web page html
Posted by ron at 1/15/2004 6:15:55 AM
Hi,
can any one help me out with viewing the html of web
pages. I go to view and source and nothing happens. Some
setting in the depths of windows xp i suspect. I am
trying to learn html so this would help me along big
time. please send a novice type responce. many thanks in
advance... more >>
Screen Resolutions
Posted by Me at 1/15/2004 5:51:49 AM
I am about to roll out a vb.net 2003 app for screens
using 1024x768.
However some users will only have 800x600. Is there
a quick method of scaling down the screens already written
(e.g. SystemMetrics or Anchor points etc....) for these
users ? There are no bitmaps or images in this app, on... more >>
File history
Posted by Pums at 1/15/2004 5:36:06 AM
Hi,
I am using one webservice from which I am pulling the
information of a file like version, date, etc. now when i
rename the file am using system.io.file.move to move the
file and then i am deleting the file from old path. but,
in that case old history is lost which i want to maintain.
... more >>
Machine debug manager is disabled
Posted by Steve Handley at 1/15/2004 5:28:51 AM
Hi All,
I am new to VB and am learning VB.Net deluxe learning
edition 2003. When I try to run the program I get a
message saying "Unable to start debugging. The machine
debug manager service is disabled."
Any help to get around this would be greatly appreciated.
Many thanks
Steve... more >>
delegates in classes
Posted by Robert Batt at 1/15/2004 5:27:58 AM
Hello,
I'm trying to modularize the code in my forms by
putting some procedures and delegates in a seperate class.
However I try to put a delegate with the following header
in a class.
Public Sub DecimalToCurrencyString(ByVal sender As
Object, ByVal cevent As ConvertEventArgs)
... more >>
SMTP Add Attachments - Cannot access CDO Message Object
Posted by gavin.morgan NO[at]SPAM lineone-dot-net.no-spam.invalid at 1/15/2004 5:17:59 AM
I am having trouble with mail attachments when executing
mail.send(message).
The mail attachment is fine if it is an RTF, but as soon as i use JPEG
or Doc then i get the error of Cannot access CDO Message Object.
I have tried adding Header
(message.headers.add("Content-Transfer-Encoding", "... more >>
Auto sise windows at runtime
Posted by Dicky at 1/15/2004 4:54:42 AM
How can I auto resize windows, controls etc at runtime,
including changing the positions, but maintaining relative
locations and sizes.
This should account for different display resolutions at
runtime.
Thanks... more >>
Image & MdiContainer
Posted by Stan Sainte-Rose at 1/15/2004 4:23:09 AM
Hi,
I m trying to add a picturebox into a Winform.
But when I load a new form using .show the picturebox appears in front of
the loaded form.
Is it possible to display the form in front of the picture box ?
Or how to display a centered image in a mdi form using the background ?
Stan
... more >>
A Datagrid embedded in a Treeview
Posted by GladaFrasse at 1/15/2004 12:55:16 AM
Hello
Has someone made a treeview with 3 nodes. When the third node is
expanded then a datagrid should be shown (integrated in the treview)
with the possiblity to edit the values (not the columns) in the grid.
If someone has some clue on how to make this I would appreciate if that
person coul... more >>
Event : ANYKEY
Posted by Dan DeConinck at 1/15/2004 12:01:25 AM
Hello,
I want a key press ( any key ) to be an EVENT in the currently active FORM
As I am new to VB the only EVENTs I have used have come from the list of
controls on the left hand side of Visual Studio. Where would I get the
ANYKEY code and where would I get the code for other such events t... more >>
|