all groups > vb.net > june 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 30
Dataset, Datatable,Dataview,Datagrid - release memory
Posted by slaprade at 6/30/2004 10:36:01 PM
I am loading a weeks worth of web logs into a dataset using Imports Microsoft.Data.Odbc
These are text - fixed length fields so I have written a schema for them. The adapter fill looks like this
Dim dt As New DataTable()
Dim cnString As String
Dim adapter As New OdbcDataA... more >>
Control other app---Calculator
Posted by SStory at 6/30/2004 10:18:49 PM
I would like to launch the calculator object.
Have it show at a certain X,Y coord and then next time the user clicks the
Calc icon on my app, if Calc is already running, have it maximize it if it
is minimized.
Is there a managed way to do something like this?
Thanks,
Shane
ps. if no... more >>
Why is e.Cancel set to True on Entry to Closing Event?
Posted by Charles Law at 6/30/2004 7:12:36 PM
Under what circumstances would e.Cancel be set to True on entry to the
Closing event of an MDI child form?
I have found that this is why my application won't close properly. I can
explicitly set the value to False, but I would have expected it to be False
on entry.
TIA
Charles
... more >>
How to modify it's value while Enumerating?
Posted by Shelby at 6/30/2004 6:38:05 PM
Hi,
I would like to modify the object's value while enumerating but I get this
error
Additional information: Collection was modified; enumeration operation may
not execute.
This is my code:
Dim icom as MyOwnStructureObj
Dim MyEnum As IDictionaryEnumerator = Myhash.GetEnumerator()
While M... more >>
Creating components
Posted by Brian at 6/30/2004 5:35:59 PM
How do you create components on the fly using VB Ver.6?... more >>
Serializable class
Posted by John at 6/30/2004 5:21:54 PM
Hi
What is a Serializable class compared to a normal class?
Thanks
Regards
... more >>
XP-Style border for PictureBox
Posted by Marco at 6/30/2004 5:05:08 PM
Hi to All,
Is it possibile to use an XP-Style border for a picturebox? I am referring
to the border that, under XP, listboxes and textboxes have (i.e. a single
blue line, if you use the default theme).
I have tried many ways, with no luck!
Can you please help?
Thanks.
Marco
... more >>
Reflection...
Posted by Simon Verona at 6/30/2004 4:58:29 PM
How can I write a line of code that sets an object to be an object thats
contained on the parent form.
Basically, I have a usercontrol, where one of the properties that I have
added that can be entered at design time is an object name (on a windows
form).
I want to be able to set a variable... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Visual Studio Remote Debugging:
Posted by spamtrap NO[at]SPAM online.nospam at 6/30/2004 4:47:15 PM
I cannot for the life of me get remove debugging to work. I continue to
receive "Error while trying to run project: Unable to start debugging on the
web server. Access is denied. Verify that you are an administrator or
member of the Debugger Users".
I have followed
(ms-help://MS.VSCC.2003/M... more >>
Localization of forms is problematic.........
Posted by Robin Tucker at 6/30/2004 4:16:20 PM
Can anyone please explain to me the process of form localisation? Are there
any tools that will extract all strings from all forms in a project (so they
can be sent for translation) and then import them into the project again
(with the appropriate Locale setting on the form).
I have string li... more >>
BUG: Text Box Controls Data Bound on Tab Controls
Posted by Andrew McKendrick at 6/30/2004 3:57:57 PM
Hi,
I've noticed a bug in VB.NET (latest .NET Framework)...
- I have a TabControl on a form with several tabs.
- Each tab contains text boxes that are bound to fields in a data source
(DataBindings).
- When I display a record and then try to access the .Text property of one
of the text box... more >>
Raising Events From Objects In A Collection
Posted by Franky at 6/30/2004 3:40:32 PM
IN vb.Net
Class clsCommande Inherits CollectionBase
and
Class clsProduct
clsCommand contain a IList of clsProduct
the clsProduct.Quantity property Raise an Event : Events ProductModify().
- How can I trap this event in clsCommande ?
__________________________________
Franky
... more >>
receiving email
Posted by Larry Cheung at 6/30/2004 2:43:19 PM
Hi all,
Could anyone tell me how to read/received emails from SMPT or POP3 email
server? I use VB.NET 2003.
I can only found SMTP Send mail function in VB.Net.
Cheers
Larry
larry@hohotech.com
... more >>
Q: Formatting columns of a datagrid
Posted by Geoff Jones at 6/30/2004 2:13:46 PM
Hi
How can a column of a datagrid be formatted e.g. changing the values held in
a column to be strings instead of integers.
Further, I'd like to re-format a column that holds date/time values so that
the data looks different e.g. 27/03/04 to 27th March 2004
Goeff
... more >>
custom error numbers
Posted by Paul Wilson at 6/30/2004 2:11:45 PM
I want to use Err.Raise() method to raise my own exceptions.
Is this the right way of raising my own exceptions ? (i think this is the
only way).
What is the Error number i can safely use, ensuring that it isn't used by
..NET.
Ie, can i use -100 as a error number??
Ie, -100, -101,-102... etc... more >>
StreamReader question
Posted by Rob T at 6/30/2004 2:03:05 PM
Hi, I have a simple little program that I'm going to use to access our SMTP
server. The below code works perfectly fine, but my question is if I were
to try to execute the last line (info=streamReader.ReadLine) another time,
the program hangs. Most likely since the SMTP server has no other resp... more >>
Webservice crash?
Posted by Fredrik Melin at 6/30/2004 1:53:46 PM
Hi,
I am trying to return a Class from a webservice, the Class is very complex.
(over 50 functions, several sub-classes, etc)
The problem is, if I do the following in the webservice:
<WebMethod()> _
Public Function RemoteInventory(ByVal Product_ID As String) As
DacsaSupport.Inventor... more >>
Splitters, docking and forms
Posted by Gary Shell at 6/30/2004 1:52:50 PM
We are playing around with using the splitter on a form and want to do the
following:
1. On the left side of the form will be a tree view.
2. To the right of that tree view would be a splitter.
3. To the right of that splitter would be a second tree we call a palette.
4. To the right of the... more >>
design usertextbox
Posted by Frank at 6/30/2004 1:16:59 PM
Hello,
I made a library for classA which inherits from textbox. If I dim and
controls.add that in an application it works as expected. But I would like
to see my textbox in designmode. How do I go about that?
Just customizing the vb.net toolbox with the dll gives the error 'not
recognized as CO... more >>
How to store image in strongly typed dataset
Posted by moondaddy at 6/30/2004 12:59:37 PM
I'm caching a dataset in an asp.net session variable to hold a user's data.
one data item I need to store is an image the user uploaded. My problem is
that I don't know how to get the image into the dataset because I don't know
what datatype to set the dataset column and then set this image to. ... more >>
VB at the Movies not a scam!
Posted by KC at 6/30/2004 12:36:50 PM
FYI,
I can honestly say that this is no scam. I reviewed 5 tutorials and they
sent me a free copy of VB.net Standard. It took about 6-weeks but hey, it's
free.
http://msdn.microsoft.com/vbasic/atthemovies/
Ken
... more >>
Using Recursion looping through a ADO RS
Posted by Dacuna at 6/30/2004 12:29:01 PM
Is it possible to use a recursive function to loop through a recordset faster?
I have a table that I need to edit its contents after doing some calculation. The table has one field has an RawData field and a CalcData field. I open the recordset, exctract the RawData and after doing some calcula... more >>
Application.Exit() did not exist the application.
Posted by Shelby at 6/30/2004 12:21:26 PM
Hi,
I used System.Windows.Forms.Application.DoEvents() in a loop to handle user
click close button .
Private Sub btnclose_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnclose.Click
Me.Close()
System.Windows.Forms.Application.Exit
End Sub
However, the... more >>
Having problems with NULL fields in SQL
Posted by Ranjan as usual at 6/30/2004 12:17:01 PM
Dear folks,
I'm programming in VB .net and trying to import values from fields in a table in SQL. Everytime there is a NULL value in SQL, the program doesn't work and shows an error. How does VB realize there is a Null value in SQL. Any pointers would be appreciated.
cheers,
Ranjan... more >>
VB2005 Express & dial-up download
Posted by Chris Devol at 6/30/2004 12:01:51 PM
My dial-up connection sometimes hangs up and has to re-connect. The VB2005
installer/downloader apparently doesn't know how to resume when the
connection is re-established. It just aborts!
I've wasted many hours on this.
Can the whole package be obtained at once with a "smart" download man... more >>
Failed to load resources from resource file
Posted by bclegg at 6/30/2004 11:46:01 AM
Hi,
I am getting the above error when start my application which I
deployed successfully.
The msi was produced using a .net launch project.
I can't see how to dig deeper to find out what is failing to load.
I have looked at the manifest with ildasm but am none the wiser.
Does anybody kn... more >>
msgbox text align
Posted by Bull at 6/30/2004 11:38:52 AM
Hi
I am trying to centre align the text in a vb.net windows application but
cant find a way to do it. It defaulted to centre in vb6.
any ideas please?
... more >>
multipage tiff
Posted by Al at 6/30/2004 11:38:13 AM
Is it possible, using only VB.NET code, to extract a single page from a
multipage tiff file?
... more >>
Questions about folders "My Recent Document", "Desktop", "My Pictures",...
Posted by Just Me at 6/30/2004 11:20:36 AM
1)How can I find the folders like "My Recent Document", "Desktop", "My
Pictures",...
if I want to store a file there?
2) How can I find the icon for those files if I want to display it?
Thanks in advance for any helpful suggestions
BTW
Not VB.net but does anyone happen to know how ... more >>
Exceptions, not being caught outside of the IDE!!!
Posted by Rigga at 6/30/2004 11:14:36 AM
Hi all,
I am trying to catch the exceptions from a VB.NET app.
I use a startup project, so that i can show the MDI main application window
as a dialog within a Try Catch block. se below..
Try
Dim f as MainForm
f.ShowDialog()
Catch ex as Exception
' write nice error rep... more >>
How to deploy vb.net application.
Posted by Tracey at 6/30/2004 11:00:31 AM
Hi,
My winform vb.net app need to be packaged to distribute
for other people. This app has a back-end MS Access
database, and VB.net program files. In one of its
winforms, there's an OLEDBConnection connect to the
Access database. My question is how can I keep database
connection viable... more >>
Balloon Help
Posted by Nice Chap at 6/30/2004 10:59:39 AM
Has anybody got VB.Net code for ballon help for Windws Forms ? I got the
source code from Code Project which was in C# and tried to convert it to
VB.Net I'v run into problems and it simply doesn't work.
... more >>
Duplicate A Form Object - Please Help
Posted by BakelNB at 6/30/2004 10:03:02 AM
I am new to the .Net environment, so please bear with me.
I am passing a form object (e.g. formA) to an existing form (e.g. formB) by setting a property value defined in formB to hold the formA object. Please keep in mind that formB is defined in a separate library project.
I then display form... more >>
equivilant declaration in vb .net? (from vb6 sample)
Posted by news.microsoft.com at 6/30/2004 9:57:43 AM
public cFileName As String * MAX_PATH
public cAlternate As String * 14
--
Scott Emick
Web Programmer
Fox International
Remove the ham from mail address if it's not spam
... more >>
Crystal Reports question (newbie)
Posted by Adriano at 6/30/2004 9:43:02 AM
hello,
i created a crystal report, put browser on a form, pointed to report source
then while loading database login information dialog appears,
how can i avoid displaying that dialog???
tnx in advance,
Adriano
... more >>
Send SMS from VB .NET
Posted by Vittorio Pavesi at 6/30/2004 9:28:20 AM
Hello,
I'm implementing SMS notification on my OpenSource program
(http://healthmonitor.sourceforge.net) and I'm wondering if there is already
a class for sending SMS in VB .NET or someone else experienced the same
needings.
Thanks
Vittorio
... more >>
Overloads/Shadows question
Posted by Jeff Johnson [MVP: VB] at 6/30/2004 9:11:57 AM
I'm developing a form which is to be used as an enhanced MessageBox(). I
don't want it to be shown with the default Show() method, so as I provided
overloaded versions of Show() I marked them as Shadows and I didn't provide
a parameterless version of Show(). Would it have been better (or would th... more >>
I need a folder browser, but not as a dialog
Posted by Justin F. at 6/30/2004 9:10:16 AM
In my app I want the users to be able to select a folder to do their work
in. The FolderBrowserDialog is a great way to do this, but I don't want to
have a dialog pop up every time they want to switch folders. Is there a
treeview control (ala Windows Explorer) in the 1.1 framework, or do I need... more >>
can i install .NET Version 2 & 1.1 side by side??
Posted by Paul Wilson at 6/30/2004 9:09:00 AM
Currently i have .NET 2003 installed on my computer, can i now go ahead &
install .NET Version 2 (2005).
Without any repercussions???
Regards,
Paul
... more >>
Sending Webmail through Exchange Server
Posted by B-Dog at 6/30/2004 9:01:52 AM
I've built a small app that sends mail through our ISP's SMTP server but
when I try to send through my local exchange server I get CDO error. Does
webmail use SMTP or does it strictly rely on CDOmail. I don't want to use
the Outlook reference because outlook prompts each time program access it
... more >>
updated word query
Posted by Vicky at 6/30/2004 8:46:10 AM
Hi,
Further to a reply I recieved earlier I tested what was
written and produced the following
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button2.Click
Dim appWord As New Word.Application
appWord.Visible = True ... more >>
Validate Multiple Text Boxes?
Posted by B-Dog at 6/30/2004 7:43:54 AM
I have a form that has about 10 text boxes on it, they all have to be filled
out before submitting is there a quick way to make sure that none are null
or do I have to call out each textbox? Say something like textbox1 through
textbox10? Thanks
... more >>
Solution vs. Project
Posted by technolearner NO[at]SPAM yahoo.com at 6/30/2004 6:38:32 AM
What's the difference between a Solution and a Project in .NET? FWIU,
a solution could contain more than one project, like a project group,
which may also be of different .NET languages. I need a confirmation
of my belief in the form of some commentary from the documentation or
some other URL or... more >>
.NET Namespaces
Posted by technolearner NO[at]SPAM yahoo.com at 6/30/2004 5:13:30 AM
The .NET namespace organization confuses me. I opened a new VB.NET
Windows Application and headed for the object browser. It had things
such as:
(1) mscorlib
(2) Microsoft.VisualBasic
(3) System
(4) System.Data
(5) System.Drawing
(6) System.Windows.Forms
(7) System.Xml
(8) WindowsApplica... more >>
ANN: .NET Framework 1.x Service Packs - Tech Preview
Posted by Thomas Scheidegger [MVP] at 6/30/2004 2:53:22 AM
..NET Framework 1.1 Service Pack 1 -Tech Preview-
http://www.microsoft.com/downloads/details.aspx?familyid=12721880-cb9f-4481-9610-987de96532e7
Download:
http://download.microsoft.com/download/8/f/d/8fd0931f-23e9-4a56-b793-112a9db3bffa/NDP1.1sp1-KB840129-X86-Beta.exe
Import... more >>
ANN: .NET SDK 2.0 Beta 1
Posted by Thomas Scheidegger [MVP] at 6/30/2004 2:31:07 AM
..NET Framework 2.0 SDK Beta 1 x86:
http://www.microsoft.com/downloads/details.aspx?familyid=916ec067-8bdc-4737-9430-6cec9667655c
Download [~230MB]:
http://download.microsoft.com/download/a/a/1/aa1bb223-d4fa-4e1e-80c4-2dc31fbb09dc/setup.exe
Runtime :
http://www.micro... more >>
How to load Excel from a string
Posted by Li Pang at 6/30/2004 2:02:01 AM
Hi,
Instead of openning an Excel Worksheet from a file, I set the content of the file into a string (stays in the memory) and I'd like to load it into an Excel Worksheet. Anybody knows how?
Thanks in advance... more >>
Databinding not working when accessing Toolbar
Posted by Stewart at 6/30/2004 1:37:01 AM
Pressing a Save Button on a Toolbar will not bind or validate the last value entered in a text box.
I have found that when clicking on the Toolbar the focus in the binded text box does not leave. Therefore in this case not saving the last entry when saving.
I am able to use the following code ... more >>
Dim scope within an IF
Posted by Gary Shell at 6/30/2004 1:28:02 AM
I have two forms both derived by inheriting the same base form. I have a
third form that needs to instantiate one of those two forms, set some
Protected properties on the two forms, display the form, test a property of
the from when it is closed and then dispose of the instantiated form.
The ... more >>
Visual Basic 2005 Express and SQL Server 2005 Express preview
Posted by Brian Henry at 6/29/2004 10:57:50 PM
Visual Basic 2005 Express:
http://download.microsoft.com/download/f/c/7/fc7debaf-4513-4300-9e6a-8fe27be88cd1/vbsetup.exe
Visual C# 2005 Express:
http://download.microsoft.com/download/2/d/2/2d221839-eaf9-4d91-899e-95a9af12202e/vcssetup.exe
Visual C++ 2005 Express:
http://download.microsoft.... more >>
|