all groups > vb.net > june 2004 > threads for monday june 14
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
Problem with a code line - parameter.
Posted by Miguel Dias Moura at 6/14/2004 10:40:36 PM
Hello,
i am inserting form values into a database and i am getting problems in this
line:
<Parameter Name="@Local02Metro" Value='<%# IIf(local02Metro.Checked
<>"", local02Metro.Checked, "") %>' Type="WChar" />
The error i get is this:
System.InvalidCastException: Cast from string "... more >>
Loading XML Into A Define Typed DataSet
Posted by Ram at 6/14/2004 8:48:15 PM
Hey,
I'v created a define typed DataSet using an XSD Schema, and I tried to read
an XML file into the dataset and update my table with the new data.
The problem is, that I have a feild in the table/XSD Schema, that is of type
string (varchar2 to be exact),
And when I try to put a string contain... more >>
Session End does not fire
Posted by Tony at 6/14/2004 8:45:50 PM
I can't seem to get the session_end event to work?
I've tried to update databases in it and response.redirect to someplace
else.
Nothing works.
I load page and leave it for 60 minutes and I know that the session id
expired.
I used session.abandon and it didn't fire the session_end.
How can ... more >>
stop creation
Posted by Frank at 6/14/2004 7:41:00 PM
Hello,
I have as class and when I get wrong data when creating the object (in the
'new' routine) I want to break off the creation of the classObject, so it
results in 'nothing' to the creator . How can I do that?
Thanx
Frank
... more >>
Why doesn't load event fire when i use form.showialog()?
Posted by Engineerik at 6/14/2004 7:00:01 PM
I have a login form which I want to display with the showdialog method. When I do that the event handler for the load event does not run. If I use the show method the load event handler runs perfectly. I can't find any documentation regarding the load event not firing when a form is displayed usi... more >>
Passing Variables Between Forms
Posted by Jim Bayers at 6/14/2004 6:09:50 PM
This works and preserves tourID even after a postback:
dim tourID as integer
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then
to... more >>
MSMQ reading message
Posted by Bob Clegg at 6/14/2004 6:00:51 PM
Hi,
First venture into using MSMQ
Prog A owns queue and is receiving.
Prog B detects queue and sends message
Prog B appears to be working in that I can see the messages being created in
the Message console.
Prog A detects the message but I cannot get it to deserialise it.
It errors with 'Ca... more >>
How to Resolve MAC addresses. Help.
Posted by AP at 6/14/2004 5:49:28 PM
Hello, I've been Googling for hours...
Anyways, in VB.NET,
I wish to enter in a mac address and resolve it to an IP address.
(local IPs)
And simply output the ip into a textbox.
I found out how to get the MAC address from the host name
by importing System.Managment.
I was wondering if a... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
property
Posted by Frank at 6/14/2004 5:36:02 PM
Hello,
question about the values for a property. I have a class with an enum and
property:
classA
public enum x as short
a
b
c
end enum
property xy() as x
...
end prop
When I dim a new class and fill the property:
dim inst as new classA
inst.xy=
After typing the equal sign (inte... more >>
Addins in vb.net
Posted by BS at 6/14/2004 5:29:22 PM
Hello everybody
does anybody knows a good tutorial that explains how to create an addins in
vb.net ?
Thank you
Regards
... more >>
Session_end
Posted by Tony at 6/14/2004 4:38:34 PM
win xp -- vs 2002 -- web forms -- Access 2002
When does the session end I put code into the globalasax.vb , session_end
sub.
I go into the web pages and I add a record to a file and in the
globalasax.vb I update the record but it doesn't work. (I end the session by
clicking the X in top rig... more >>
Invalid Typecast, Newbie
Posted by Jim Bayers at 6/14/2004 3:51:56 PM
I'm having a bear of a time with this. The error is, 'invalid type cast'.
I'm trying to create a checkbox for a datagrid. The check box shows up and
is bound properly, but when I go to update, and read the value from the
checkbox, I get the error. Just what is the 'checked' property type... more >>
How the order of Get/Set property is determined?
Posted by Hani Atassi at 6/14/2004 2:41:01 PM
The definition of a read/write property in an interface is similar to the following:
Public Interface EiDuty
Property Key() As String
End Interface
If I would like to generate a TLB out of the interface, how does the tool tlbexp knows what to export first? The get property or the set pr... more >>
WIA Automation seems useless
Posted by ScanNazi at 6/14/2004 2:37:01 PM
If I want to suppress the scanner selection dialog and the devices properties dialog do I have to write a C++ wrapper around the WIA api? I want to set all the properties of the scan session within my app without user intervention.... more >>
Book for VB.NET
Posted by Fie Fie Niles at 6/14/2004 2:35:18 PM
I have been using Visual Basic 6 and ASP (Visual Interdev 6) for a few
years. I would like to learn VB.NET and ASP.NET.
If I study Visual Studio.NET, will it cover both ASP.NET and VB.NET ?
Based on your experience, what is a good book to study from ? Any of the 21
days series book that are good... more >>
Question about RAM
Posted by Éric_Lapointe at 6/14/2004 2:34:32 PM
I create a simple windows form with a textbox.
In Process information window of WindowsXP, my application eat 8,88 meg of
memory
IT IS A LOT ! it is normal ?
Thanks for your answers
Éric Lapointe
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/... more >>
Variant Record Types
Posted by Michael D. Ober at 6/14/2004 2:32:58 PM
Can VB.Net create variant record types similar to C Unions? If so, how?
Thanks,
Mike Ober.
... more >>
.net remoting debug: break point doesn't stop on remote server side.
Posted by feng at 6/14/2004 2:30:33 PM
Hi,
I have a VB.Net remoting project that has a simple Windows
form remote client and a HTTP channle based remoting
server.
The client and server works fine except that I lost
my "watching" capability on the server side all of a
sudden. Now I can't make code stop at my server side bra... more >>
How to pass data between two forms?
Posted by .NetHelpWanted at 6/14/2004 2:30:01 PM
Hi..
I have an application in which i have two forms. Form1 and form2.
Am able to pass the data to form 2. The below is the code snippet am using.
Private Sub directorytree_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles directorytree.DragDrop
... more >>
How to get the printable area of the printer ?
Posted by asd NO[at]SPAM asd-dot-com.no-spam.invalid at 6/14/2004 2:09:17 PM
Hi.
I try to get the printable area of the printer (Margins). I have used
Defaultpagesettings.Printersettings.Margins.Top, .Left, .... But it
didn't give the true values.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
... more >>
check for mdac in deployment
Posted by magnus NO[at]SPAM rad-o-resultat-dot-se.no-spam.invalid at 6/14/2004 2:09:13 PM
Hi
I need to check if the mdac 2.6 is installed on the clients computer.
So I need to define this when I deploy my application. Is there
anyone that can tell me how I can do that?
Regards
Magnus
Posted Via Usenet.com Premium Usenet Newsgroup Services
-----------------------... more >>
How may I change the Mouse Cursor ? (Hourglass)
Posted by Eddie at 6/14/2004 2:03:10 PM
Hi All,
I just want to change the mouse cursor during a process. I want a
hourglass...
How may I do it ?
Thx
... more >>
Passing Event Delegate as an argument
Posted by kerryljenkins NO[at]SPAM hotmail.com at 6/14/2004 1:54:34 PM
I am having problems passing an Event Delegate as an argument to a
method that accepts a delegate argument. I get the following error
message:
'Public Event ProgressChanged(sender As Object, e As
System.EventArgs)' is an event, and cannot be called directly. Use a
'RaiseEvent' statement to r... more >>
POP3 component comparison
Posted by Cablewizard at 6/14/2004 1:53:03 PM
I have been searching for some sort of comparison of POP3 components that would
work with VB.NET.
So far, I have not had great luck.
I am hoping that maybe someone here can point me to a comparison and/or give any
feedback on ones you have used.
The application I am working on will interact wit... more >>
Call WORD via VB.Net
Posted by Joachim at 6/14/2004 1:32:01 PM
Hi,
I want to try call/run Ms. Word via my VB.Net
First I added reference : Microsoft Word 11.0 Object Library. Then I got 2 references in my reference list : Word and Microsoft.Office.Core
When I typed :
Dim objWord as Word.Application
Dim objDocument as Word.Document
I got an error (und... more >>
Dataset Naming Question
Posted by jcrouse at 6/14/2004 1:22:32 PM
I have the following code that creates a couple of XML files:
Dim dt1 As New DataTable("P1JoyUp")
If H = True Then
Dim dsH As New DataSet("HCPViewer")
dsH.Tables.Add(dt1)
dt1.Columns.Add("Top")
Dim dr1 ... more >>
regex pro
Posted by steve at 6/14/2004 1:20:34 PM
here's the deal...cvs, tick encapsulted data. trying to use regex's to
validate records. here's an example row:
'AD,'BF','132465','06/09/2004','','BNSF','A','TYPE','1278','','BR','2999',''
,'LX','','01','09','1','','','','','','','','','CUSTOM JOB CODE TEST'
record type is in the 8th column ... more >>
Resize forms question
Posted by PocketPC at 6/14/2004 12:59:45 PM
Hi,
how can I make for resize the forms from my program when I change the size
of screen resolution?
Thanks in advance
... more >>
How Resize the form controls
Posted by PocketPC at 6/14/2004 12:55:08 PM
Hi,
How can I make for resize my forms in my program when I change the screen
resolution?
Thanks in advance
... more >>
Recent applications
Posted by Big D at 6/14/2004 12:05:16 PM
Does anyone know if there is a place where you can see the most recent
applications that have been run in xp? Does this get written to any kind of
log?
Tnx,
D
... more >>
Thread Results
Posted by Mythran at 6/14/2004 12:05:02 PM
I have a thread which executes database manipulation code. I need to display the
resulting dataset into a datagrid which is located on my main form (created by
the main thread, not the child thread that created the dataset). When I try to
bind the results to the datagrid, I get the following ex... more >>
Converting String to Byte Array
Posted by Wardeaux at 6/14/2004 11:54:53 AM
I'm sure there's got to be an easier way...
What's the best way to convert a String to and from ByteArray for use in
Base64 crypto?
MTIA!!
wardeaux
... more >>
Export data to excel
Posted by Tomek at 6/14/2004 11:45:42 AM
Hi,
How could I export data from table or query to excel file in VB.NET?
Thanks in advance,
Tomek
... more >>
Configuration File
Posted by Tim Marsden at 6/14/2004 10:59:58 AM
Hi
How do I manually read then values held in an app.config file.
I have an application with an application configuration file.
I can read the values in the file using Configuration.appsettings etc and
all is OK.
However I want to read the values from a DLL ( launched form another
applic... more >>
Format(Now, Milliseconds)?
Posted by DraguVaso at 6/14/2004 10:45:48 AM
Hi,
Is there a way to format a date like this: Format(Now,
"HH:mm:ss.Milliseconds")??
I knwo I can use the Now.Milliseconds-function, but it would be nicer to put
it in the Format-function too, but I can't fidn the abreviation for it?
Anybody can help me with this?
Thanks a lot in adva... more >>
Threading Help Required
Posted by Fraser Baldwin at 6/14/2004 10:40:34 AM
I have a Windows Form that, on initialization, creates/starts a thread that
runs a long process. When the user clicks the "Next" button on the windows
form I need to wait until the thread is completed and then continue this
what needs to be done. (using a call back function to enable the Next
... more >>
Novice: Save As -- Off to a shaky start
Posted by bole2cant at 6/14/2004 10:24:49 AM
I just received my free VB.NET package from MS, and can't figure out how to
Save As.
I loaded a sample program and made a bunch of changes to it and wanted to save
it without overwriting the original sample. The only place I could Save As was
the one place I didn't want to save it. Even with a... more >>
UrlEncode in VB.NET Class?
Posted by Dave at 6/14/2004 10:14:30 AM
Hi,
I have a VB.NET class project that I want to return a UrlEncoded string. I will eventually add this as an assembly to another C# Web Project.
How can I do this? I've tried Importing System.Web but the only options that appear are:
AspNetHostingPermisssion
AspNetHostingPermisssionAttr... more >>
horisontal splitter
Posted by magnus NO[at]SPAM rad-o-resultat-dot-se.no-spam.invalid at 6/14/2004 10:01:49 AM
Hi
This is probably a pretty easy thing to solve, but I cant find where
this is done.
I want to create a white area at the top of my windows form and then a
horisontal "splitter" that seperate the white area from the grey area
underneath it.
I know I can add a white panel, but how do I ... more >>
App.Config Problem
Posted by Norton at 6/14/2004 9:22:49 AM
Dear All,
I would like to make a make my VB Applicatin's web services URL as dynamic,
therefore VS.Net will add a key into app.config.
May i ask what can i do if i want to hidden those value from App.config?
Thx a lot
Regards,
Norton
... more >>
A VERY strange problem when Updating a Dataset
Posted by Lars Netzel at 6/14/2004 8:44:07 AM
A little background:
I use three Datagrids that are in a child parent relation.
I Use Negative Autoincrement on the the DataTables and that's workning nice.
My problem is when I Update these grid and write to the database and I set
the new Primary Keys and related Fields to the new asigned... more >>
Web References in code
Posted by John Smith at 6/14/2004 8:43:28 AM
Hi
I've only started "playing" with web services this weekend. I have one
question which I can't seem to find an solution to...
Is there a way to change the (web) server's name on which your web service
is running programatically? Let say I develop the web service on my
localhost but then I... more >>
(Probably obvious) .NET question - creating objects dynamically
Posted by Jethro at 6/14/2004 8:36:27 AM
Hi all,
I have a solution, which contains several projects. Each project occupies
the same namespace, and compiles to s different .NET DLL
e.g.
MyNamespace.ThisClass is in one DLL
MyNamespace.ThatClass is in another DLL
I wish for a .NET EXE to be able to dynamically create an instan... more >>
Responding to Cookie Requests
Posted by Ian Mooney at 6/14/2004 8:23:39 AM
I'm using the HttpWebRequest and HttpWebResponse components to automatically
scrape content from various internet news sites to store on my iPaq PDA
which I later read off-line while commuting to/from work. I don't have room
on the PDA for all the associated advertising stuff these sites have, s... more >>
Get Implementation/Interface Declaration from Method using Reflection?
Posted by google NO[at]SPAM dsdcorp.com at 6/14/2004 8:16:23 AM
I'm using reflection to inspect a class and its methods. Is is
possible to determine if the class is a derived class or an interface
implementation? I'm using the MethodInfo object for relfection that I
use for acquiring the function names, scope, parameters, etc. Is
there an "InheritedClassT... more >>
Creating dynamic objects
Posted by Jakob Lithner at 6/14/2004 7:11:23 AM
I have searched the news groups on similar subjects, but
haven't found anything adequate for my need ....
To save much duplication of code I would like to create a
baseclass that takes a SQL-Select-string and a type as
parameters. It will then return a collection of objects of
the specifi... more >>
Problem ocurred when i placed my working folder up the server
Posted by Kelly at 6/14/2004 6:22:01 AM
hi all,
it's me again. i'm using ASP.NET Web Application, using a "File Field"component under HTML tab and i do a right click on the component and select "Run As Server Control". This was done because i wanted the user to browse a specific file in their own directory.
Everything was working fi... more >>
Problem occured when i placed my working folder on the server
Posted by Kelly at 6/14/2004 6:18:01 AM
hi all,
it's me again. i'm using ASP.NET Web Application, using a "File Field"component under HTML tab and i do a right click on the component and select "Run As Server Control". This was done because i wanted the user to browse a specific file in their own directory.
Everything was working fi... more >>
Problem occured when i placed the working folder in the server
Posted by Keali at 6/14/2004 6:17:01 AM
hi all,
it's me again. i'm using ASP.NET Web Application, using a "File Field"component under HTML tab and i do a right click on the component and select "Run As Server Control". This was done because i wanted the user to browse a specific file in their own directory.
Everything was working fi... more >>
VB .Net WebProject Variables
Posted by dkalsow at 6/14/2004 5:37:01 AM
I am new to VB.Net WebProjects but have written VB.Net Projects for sometime. I am having problems with variables in my WebProjets. I dim them and I can use them but they do not keep there value. I have a timer that runs and each time the time if fired that value in the variable is back to what i... more >>
how to move a directory between two different volumes
Posted by karel.bruneel NO[at]SPAM informat.be at 6/14/2004 5:30:11 AM
Hello,
I have a VB.NET application where I want to move directories over a
network.
I tried this with system.io.directory.move, but that doesn't work over
different volumes.
Has anyone a sollution for this problem?
thx
Karel... more >>
completly unchecked checkbox issue
Posted by magnus NO[at]SPAM rad-o-resultat-dot-se.no-spam.invalid at 6/14/2004 5:07:38 AM
Hi
I have a checkbox column in my datagrid. When I uncheck the checkbox
it turn grey, and then I have to uncheck it once more to get it
completly unchecked. Why is that? I would like to skip that part.
<code>
Dim colCheckMe As New DataGridBoolColumn
With colCheckMe
... more >>
How can I Read/Write CSV using .NET CF ??
Posted by Neil Sutton via .NET 247 at 6/14/2004 4:59:28 AM
Hi,
I am new to Visual Basic =2ENet (some experience with VB6) and I am=
trying to write my first application for my PocketPC (WM2003) I=
need to be able to create/store/recall records like a database=2E=2E=
but from some reading on a few websites it looks very=
complicated to do this wit... more >>
Word and VB .NET
Posted by Vicky at 6/14/2004 3:13:24 AM
Hi,
Firstly apologies if this has cropped up before however I
have hit a small problem.
I have created a program which my colleagues can use to
generate mathematical quotes based on various known
variables. Now that this works very well we want to export
that data in the appropriated label... more >>
|