all groups > vb.net > april 2004 > threads for thursday april 22
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
Invoking IE from VB.NET app
Posted by MC at 4/22/2004 11:42:34 PM
Hi,
Does anyone know how to invoke IE in a specific url when I click a button in
a VB.NET app?
Thanks.
MC
... more >>
Catching Event
Posted by Deadly_M at 4/22/2004 10:58:03 PM
I have asked this question before but it was a while ago , hope there are
some new readers here now
Windows XP, VB.NET
I want to catch the event of a program being run
for example user loads notepad, im assuming there is an event triggered that
can be caught with VB
i want to detect any pr... more >>
Detecting Internet Connection
Posted by Adam Tibi at 4/22/2004 10:07:15 PM
Is there any way to detect Dial-up Internet connection using .NET libraries
or do I have to use Win APIs for that?
... more >>
Datagrid scrolling onCurrentCellChanged
Posted by John Bayly via .NET 247 at 4/22/2004 9:57:48 PM
I'm working on an inherited Datagrid class that includes a=
function called onMouseMove to paint the row under the cursor to=
make reading easier for users=2E
To paint the row, the function sets the current cell to by:
'Get Screen Coorinate of Mouse Cursor
Dim p As Point =3D... more >>
System.Security.Permissions.SecurityPermission Error
Posted by Glenn Hulls via .NET 247 at 4/22/2004 9:55:20 PM
(Type your message here)
--------------------------------
From: Glenn Hulls
I am new to VB.net. The app i have written is short
and simple, it uses the process class to invoke an
internet explorer session. It then saves the generated process
ID so the process can be killed later usin... more >>
Getting Syntax error converting from a character string to uniqueidentifier
Posted by Roy Rodsson via .NET 247 at 4/22/2004 9:55:18 PM
Hi all!
I am using a stored procedure in SQL2000 for retrieving file=
informations from a db=2E
the table as an uniqueidentifier for the file information=2E
The stored procedure has a variable called fileIds that is of=
type varchar=2E
I am putting in a comma separated string with ids... more >>
Single file setup
Posted by John at 4/22/2004 9:44:38 PM
Hi
My setup project creates three files. This is a slight problem as when
sending link to clients I need to send three links and they have to download
all three files in the same folder before installing app. Is it not possible
to have a single file setup?
Thanks
Regards
... more >>
Variable set?
Posted by John at 4/22/2004 9:26:38 PM
Hi
I have a variable like this; private coform As frmContacts. Now I need to
do coform = New frmContacts but only if this has not been done already. How
can I check if coform has been assigned a 'New frmContacts' or not?
Thanks
Regards
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Printing proprietary formats
Posted by Dan at 4/22/2004 9:15:57 PM
We are running into trouble when trying to print
proprietary formats (ie; .pdf, .xls, .doc, etc.) from our
VB.NET application.
Binary files generate garbage when printed.
We have no trouble printing text files using .NET objects
such as System.Drawing.Printing.PrintDocument and would
l... more >>
MSDN Universal question
Posted by DMan at 4/22/2004 7:32:53 PM
I have an MSDN universal subscription. Is there any way I can add a second
passport login for a recently aquired business partner I took on? I really
don't want to give them my login information!
Thanks
... more >>
RichTextBox Span method
Posted by SamSpade at 4/22/2004 7:03:55 PM
The VB6 TextBox had a Span method to extend a selection.
Is there a similar capability in Dotnet?
I can't find it.
Thanks
... more >>
Outlook?
Posted by Fredrik Melin at 4/22/2004 6:54:06 PM
Hi,
I have a project that uses Interop.Outlook, works fine on both my computers.
When a teammember trying open the project he gets the following message:
The referenced component 'Outlook' has an updated custom wrapper available.
He has copied all Interop.dll's to his bin directory, if he ... more >>
XML Deserialzing causes exception
Posted by Simon Jefferies at 4/22/2004 6:14:57 PM
Hello,
I'm trying to deserialize a document created with the following pieces of
code.
I get an exception "Additional information: There is an error in XML
document (2, 2).", why does this happen?
Serializing code:
Dim fs As New FileStream(Filename, FileMode.Create, FileAccess.Write)... more >>
Creating objects via New
Posted by tinman at 4/22/2004 5:46:22 PM
Hi...
Are there performance issues related to the way in which the New keyword is
used
in VB.NET?
For example, is there a difference betwen the following calls:
1. Dim TestString as StringBuilder = New Stringbuilder
2. Dim TestString as New StringBuilder
Thanks...
... more >>
fire a click event from another form
Posted by eveready at 4/22/2004 5:41:03 PM
Hello
I have two forms - a start form running in the background and a content form in the foreground. When a timer fires on the start form, I need to fire the click event for a button on the other form. I have delcalered the 2nd form as a friend, but still cannot get to the button's click event
... more >>
save record in datagrid while still editing
Posted by jaYPee at 4/22/2004 5:24:32 PM
i'm wondering how can i update the current record in datagrid while
still editing the record. cause i have a checkbox in my datagrid and i
want to save the record before changing the value of this checkbox to
true to enforce referential integrity. i don't have problem changing
the checkbox to tr... more >>
Imports Microsoft.VisualBasic.Compatibility.VB6
Posted by Bill at 4/22/2004 5:01:02 PM
What reference do I need to include this statement in my VB .NET program? Thanks.... more >>
ClassName case sensitive
Posted by Vicenç Masanas at 4/22/2004 4:13:26 PM
I had a problem with some webforms and user controls. From time to time when
developing a new form or user control and testing I got the following error:
Could not load type 'xml.WebForm1'
I use to fight with this for a while and I allways endend up deleting the
form and starting again. Then... more >>
Pages User Permissions
Posted by ruca at 4/22/2004 4:00:48 PM
hi,
How can I setup the user permissions over some pages of my web application?
I want to deny that some users access some of my web pages. How can I do
this in code?
At this moment I have a session variable that have False or True value. I
get this value from my DB.
Then in my Page_Load e... more >>
Changing foreground / background of disabled combobox
Posted by Brian Mitchell at 4/22/2004 3:54:45 PM
Is it possible to change the fore and back colors of a combo box when its
enabled property is set to false? I need to lock the value of my combo boxes
(and still keep its color) but that control doesn't have a read-only
property.
Thanks!!
... more >>
tabcontrol event called at odd time
Posted by amber at 4/22/2004 3:41:03 PM
Hello
I'm curious as to why the following would happen
I have 4 forms that I'm dealing with. On form4 is a tabcontrol (we'll call it tab1)
When form1 is opened, and OK is pressed, form2 opens, when an item is clicked, form3 opens
On form 3 is a menu, and when file, open, and form4 is selected, ... more >>
Sorted column in the DataGrid.
Posted by Frank Rizzo at 4/22/2004 2:51:27 PM
How can I find out which columns is the currently sorted one in the
DataGrid (WinForms, not asp.net)?
This issue has been driving me nuts for a little while now.
Thanks,
Frank... more >>
Really daft question from a newbie...
Posted by Rich at 4/22/2004 2:42:24 PM
Can anyone tell me how to draw a rectangle on a windows form? I've tried
the help but can't find this any info at all!
Thanks
Rich
... more >>
knowing the 'result' of a, INSERT/UPDATE/DELETE
Posted by DraguVaso at 4/22/2004 2:33:44 PM
Hi,
I'm writing a VB.NET application who has to insert/update and delete a whole
bunch of records from a File into a Sql Server Database. But I want to be
able to knwo the 'result' of my ctions.
for exemple:
- after an INSERT: knowing if this happened well or not
- after an UPDATE: knowing... more >>
Newbie help with VB.NET 2003
Posted by Phil Betts at 4/22/2004 2:25:08 PM
Hi Guys
I am the first to admit that i am not an accomplished programmer so i'm sure
i have made an error somewhere. I'm hoping somebody here may be able to
point out where i'm going wrong.
I have written a program in VB 2003.Net that can change a password of a
local account on another mach... more >>
Running Setup project causes error code 2709
Posted by Simon Jefferies at 4/22/2004 2:22:24 PM
Hello,
I've created a setup project and when I run the .msi I get the following
message.
"The installer has encountered an unexpected error installing this package.
This may indicate a problem with this package. The error code is 2709."
What causes this error message?
Regards
Simon ... more >>
datagrid loses user entries
Posted by Sean Foley at 4/22/2004 2:08:01 PM
I have a MDI parent (basically a menu) and a MDI child (data form with
datagrid). When i close the parent and the datagrid has been changed i ask
the user if they wish to save changes made in the grid
The save routine that i have on the MDI child accessed via a button on the
form saves all ... more >>
Quick question about ByVal and ByRef when passing objects
Posted by Dmitry at 4/22/2004 1:04:34 PM
Hi there,
Just came across this problem and was wondering if someone
can shed a light on it as it somewhat puzzles me.
Suppose I have the following classes:
Public Class CTest
Private m_objCMember As CMember
Public Function addMember(ByVal objMember As CMember)
... more >>
Please help, Sockets / Threading
Posted by Matt at 4/22/2004 12:51:05 PM
Hello Everyone
I am making an instant messenger program. I have used the MSDN sockets example to get started with this. I have transfered the code that is found within this project into a class and can access it fine
The problem is, that the messenger sends a message to the server which relays t... more >>
help in intellisense..
Posted by ashish at 4/22/2004 11:58:50 AM
hi Folks,
just wondering how could i get help in intellisense help in assemblies
created by me, like i get when i access .net assemblies.
any help or pointers would be appreciated ...
thanks... more >>
mscoree.dll
Posted by Kirby at 4/22/2004 11:56:03 AM
I get the error mscoree.dll not found when I run an application built with VB.net. From what I figure it is because the pc does not have the .net framework. Is there a way to compile this so it will work on PC's without the .net framework
Thank
... more >>
Image in toolbar disappeared
Posted by Hugh at 4/22/2004 11:01:24 AM
after I changed the image size. I tried different
combinations of images sizes and button sizes. I have
tried both botton and the image in the same sizes or
button size was larger than that of image. The images
were still invisible. What is the trick? I asked this
question a while ago... more >>
Variable Conversion
Posted by Tracer at 4/22/2004 11:01:09 AM
I have a variable named blnAnswer that is a flag in a subprocedure called ValidateEntries() set to true and tripped to false if something fails. When the variable comes out of the subprocedure and everything has passed it is true, but when it gets passed to the calc function it turns to false on th... more >>
Adding nodes to a treeview only when needed
Posted by pmcguire at 4/22/2004 11:01:03 AM
I have a treeview with a lot of nodes. I want to load only the nodes that are initially visible when the form loads, and then continue to populate it in background and/or when the nodes are required by the user either scrolling or performing some other action that would move the treeview window to ... more >>
GridColumnStyle that has a Width that 'Expands' to fill?
Posted by Troy at 4/22/2004 10:56:04 AM
Is it possible to set the first Grid Column to 'autofill' (not the last column, the first)
I could calculate the width I guess but the scroll bars are not always there
thx
troy... more >>
Read and Write Text Files
Posted by scorpion53061 at 4/22/2004 10:51:38 AM
Is it possible to read and write to text files that are remote (sitting on
my server that can be accessed from the internet.)
... more >>
Getting info from MDI child?
Posted by Lars Netzel at 4/22/2004 10:45:50 AM
I have a Main Window called frmBase and it has a child window based on
frmProject.
I want to save the data I have enetered in frm Project by choose ing save in
the menu of frmBase...
How doget the info from the MDI child window? And what happens if I have
more than one child, based on frmPr... more >>
sq root
Posted by Paul Mars at 4/22/2004 9:26:06 AM
How do I code for square root?
tx,
Paul
... more >>
Splitting my vb.net application
Posted by jlpraz NO[at]SPAM corobori.com at 4/22/2004 9:20:25 AM
I developed a vb.net application which has about 90 forms an 70
reports.
I have got the following question: my customer asked me to split up my
application in several application. One containing the complete
application, and different application each of them containing a
different subset of ... more >>
speeding up form display/repaints in MDI apps
Posted by Sarah Smith at 4/22/2004 9:07:32 AM
Hello,
I am a bit of a newbie to VB.NET, but not totally new. I took the
plunge recently and decided (along with my colleagues), to try to
convert/port a VB6 client/server app to .Net.
(I'm not using any upgrade tools, I'm just re-writing).
I have be learning/testing .net with SDI type ... more >>
How do you determine if a file exists before using the StranmReader object?
Posted by Darrell Wesley at 4/22/2004 8:21:03 AM
Is there any better method of determining if a file exists then using the Scripting.FileSystemObject
If I do thi
Dim fs As New System.IO.StreamReader(FileName
and the file does not exist thena n exception is thrown, how can you determine if the file exists before attemptng to open it
... more >>
Opening a notepad file for viewing in ReadOnly mode.
Posted by Suma at 4/22/2004 8:11:04 AM
Hi
To open a notepad file, right now I am using Process.start. But this does not ensure that the file is opened in readonly mode
How can I make a notepad file open in Readonly mode
I do not want to change its attributes to Readonly
I do not want to open it in browser or in any other editor exc... more >>
Interactive drawn controls (hittest questions)
Posted by Brian Henry at 4/22/2004 7:24:37 AM
Hello,
I am trying to make a user control that is interactive. What I am doing is
drawing a set of bars on a control similar to a gantt chart and allowing a
user to place the mouse over them to see a tool tip, or if you click on them
to open a form associated with data tied behind them.
Wha... more >>
UNC System.IO
Posted by Andrew J Durstewitz at 4/22/2004 7:17:16 AM
Hi!
I'm having an issue using the System.IO namespace and
trying to use File.Exists(myFile) when myFile exists on a
mapped drive. I have setup the machine (where the drive
is mapped to) to give my computer full access.
Has anyone else run into issues like this? Any ideas on
how to re... more >>
Tokenizer question
Posted by burak.gunay NO[at]SPAM xpandcorp.com at 4/22/2004 7:03:31 AM
Hello,
I will start working on a project where we have to parse a string and
store the words and the number of times each word appears.
I know you can use the Split function to split a string into words
and then I'd have to savethe words and keep a track of how many times
each one appears... more >>
Adding buttons programmatically in visual basic .net
Posted by Silvia at 4/22/2004 4:26:13 AM
Hi,
I have a form and I add buttons programmatically in de form_Load function.
Anybody know how implements de function button_click if in the designer mode the button doesn't exists?
I write in visual basic .net:
mybutton.Click = New EventHandler (AddressOf DetectedAClick)
private Sub... more >>
Architecture Question
Posted by Ken H at 4/22/2004 4:11:14 AM
Hi I have a question about architecting solutions..
I have a part of a project which requires me to track person details (name, addresses, etc...
Should I be creating Person objects, Address objects etc as Business layer classes and then have an data access layer which actually save / updates / d... more >>
convert function to IntPtr
Posted by Ken Hughes at 4/22/2004 3:56:05 AM
Can anyone help me with this one...
I am doing an API call and need to convert a function address to a IntPtr for a callback...
e.g.
RasDial(X,X,X,Pointer to Callback Function,X)
'Pointer to CallBack Function' needs to be of type IntPtr and the actual function to handle the callback is
... more >>
Value of 2 dataTable in a DataSet
Posted by slipcortex NO[at]SPAM hotmail-dot-com.no-spam.invalid at 4/22/2004 3:36:31 AM
Hi all, i'm newhere and I'm french so excuse me for my bad english :(
In my dataset I have 2 Table:
-the first named questionnaire which has 4 columns: question_Id,
ennonce, format and type
-the second, named answer which as 3 columns: code, answer, and
question_Id
My data come from an ... more >>
Simple question about datagrid row
Posted by sajid_yusuf NO[at]SPAM yahoo.com at 4/22/2004 1:36:16 AM
Hello!!!
I have a datagrid with multiple rows in it. One way to put any row in
edit mode (which displays a pencil mark) is to click on any row and
then edit by manually typing in it. But I want to change the values in
the rows programmatically. So my question is how can I put any row in
edit ... more >>
Passing Parameters to an Event
Posted by Lucas Tam at 4/22/2004 1:17:37 AM
Hi all,
What is the best way to pass parameters to an event?
I have a dataadapter.update that fires, and I am capturing the RowUpdated
event. How do I pass some custom pamaeters into this event?
Thanks!
--
Lucas Tam (REMOVEnntp@rogers.com)
Please delete "REMOVE" from the e-mail addr... more >>
|