all groups > vb.net > august 2005 > threads for monday august 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 31
Populating Enum's dynamically
Posted by Sudhakara.T.P. at 8/22/2005 11:49:19 PM
Hi,
I want to populate my Enum dynamically from the database. Is that possible?
If so, what is the approach that I need to take.
I need this because I have some set of constants in my table which I want to
fetch once the moment i start my application and store that in Enum.
Regards
Su... more >>
Events
Posted by Nikolay Petrov at 8/22/2005 11:38:49 PM
Let's say I have a class, which raises events:
Class eventRaiser
Public Event Event1()
Private WithEvents timer1 As System.Timers.Timer
Public Sub New()
With timer1
.Interval = 2000
.Enabled = True
End With
End Sub
Private Sub t... more >>
File Handling - Difference between VB 6.0 and VB .NET???
Posted by Lily at 8/22/2005 8:07:21 PM
How do you open a sequential file using OpenFile Dialog and read from it in .NET?
Also, how do you create an open file, write to it, and save it using SaveFileDialog in .NET?
I was trained using 6.0 and am unable to make the conversion to .NET.
From http://www.developmentnow.com/g/38_2005_8... more >>
File Handling in VB.NET
Posted by Jody at 8/22/2005 7:58:03 PM
How do you open a sequential file in vb.net using the OpenFileDialog and read from it? Also, how do you create a file, write to it, and save it?
From http://www.developmentnow.com/g/38_2004_1_0_7_0/dotnet-languages-vb.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com... more >>
simple connection
Posted by iwdu15 at 8/22/2005 7:38:05 PM
hi, im new to creating connections to different computers in VB, so i tried a
simple program to connect with a different computer with my program on it. I
enter in the target computer's IP address, and try to connect to port 8080,
but each time it says "Connection Activly Refused" so i have no... more >>
How to populate with standard ToolBox entries?
Posted by BobAchgill at 8/22/2005 5:32:33 PM
I just did a clean install of Visual Studio but the ToolBox was empty for VB
..Net.
How do I populate the ToolBox with a standard set of toolbox entries?
Thanks!
Bob... more >>
Data adapters, connections, and datasets
Posted by Dave Cullen at 8/22/2005 5:04:29 PM
Can someone please explain the relationship between data adapters,
connections, and datasets?
Why would an application have one adapter and multiple data connection
objects? Does each form that uses data need its own connection?... more >>
ClientToScreen
Posted by Lou at 8/22/2005 4:24:00 PM
How do I get the ClientToScreen area of a control.
-Louie
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to Get File Path
Posted by Dustin Wilson at 8/22/2005 3:33:09 PM
I'm looking for a quick function that will give me just the path for a file.
For example if I have the string "C:\Temp\MyFile.txt", I want to just return
just the string "C:\Temp\". How is this done using VB.NET?
Thanks
Dustin
... more >>
Migration from VB 3.0 to VB 6.0
Posted by Old_VB3_User_MX at 8/22/2005 3:25:05 PM
I do have a VB3 16-bit application that runs on a very old Pentium I machine
with Windows 3.11 since 1995. Application runs OK but the PC needs to
urgently be upgraded!!
The VB3 uses VBX components instead of OCX or classes or any of the .NET new
stuff. How could I test whether I will run... more >>
basic datetime format question
Posted by PJ6 at 8/22/2005 3:23:40 PM
What's the easiest way to get a string from a datetime that omits the time?
I want to respect whatever local format there is for dates, so it can't
involve something like "mm/dd/yyyy".
Paul
... more >>
Question on Panel Object
Posted by vvenk at 8/22/2005 1:31:02 PM
Hello:
I was planning to use the panel to create a dockable container at the bottom
of the screen that will display user preferences.
I would like it to behave the following way:
1. It should not have any caption. (I am unable to turn off the caption that
displays the name of the object... more >>
Multi-Language Applications
Posted by Amjad at 8/22/2005 12:00:02 PM
What's the best way to program applications that can have more than one
user-interface language (e.g. English, French and Spanish)?
Would you change the text of all labels, menues, buttons, etc. from one
language to another back and forth every time the prefered language is
changed?
Wher... more >>
Rename multiple files like windows does...
Posted by Rothariger at 8/22/2005 11:41:15 AM
Hello....
i want to know if its posible to rename multiple files like windows does..
example:
file zzzzzzz.doc
file asdasd.doc
file esfsefse.doc
if you select the three files and rename it, windows put this way..
file(1).doc
file(2).doc
file(3).doc
is there any vb.net way of do... more >>
retreive image from database
Posted by Jean Christophe Avard at 8/22/2005 11:35:34 AM
Hi! I have a dataset where I have a field that is a image. I can't figure
out how to retreive the imahe, I get the invalid paranmeter with this
code...
Try
Dim buffer() As Byte = CType(dstPlant.Tables("plant").Rows(intRow)("image"),
Byte())
'create memory stream from this array of byt... more >>
Using .NET-Class in VB6 and make them ready for setup
Posted by Nijazi Halimaji at 8/22/2005 11:26:05 AM
Hi everybody
I have created a .NET Library (Build it) and implemented it in VB6. In VB6 i
used a reference to get the functions, etc. and it worked fine.
But when I make a setup project in VB6 install it to another computer I have
the problem, that the reference to the class is not there (... more >>
60 GB IPOD deal found
Posted by adamfenator NO[at]SPAM gmail.com at 8/22/2005 11:12:57 AM
I just completed this offer for a 60 gb photo ipod and it is awesome!
My friend got one from it and he is waving it in my face and taunting
me! Anyways, all you have to do is complete a promotion offer and
cancel it before the 30 days trial is up and then get 8 referrals. I
recommend doing the r... more >>
(XML) Favourites for WebBrowser
Posted by zoneal NO[at]SPAM yahoo.com at 8/22/2005 11:09:55 AM
I'm making a "favourites" for a browser, as i may have said in previous
post. So I want to be able to read a simple xml's <Url>
<Favourites>
<url>http://www.google.ca</url>
</Favourites>
Any Idea's? I've looked around on code sites, but they only let me
display Favourites and URL...
I t... more >>
Array and console.writeline
Posted by Leszek at 8/22/2005 10:40:10 AM
Can someone help me?
Im trying to use console.writeline with ciag1.
Application must read string, split it by "," and show every section between
",".
Dim serwery_split()
Dim elementy As String()
Dim tablica(0)
Dim i As Integer = 0
Dim ciag1 = "a,b,c,d,e,f"
For i = 0 To tablica(i)... more >>
stringwriter
Posted by zoneal NO[at]SPAM yahoo.com at 8/22/2005 10:25:17 AM
anyone know how to insert a multiple line of string into
stringwriter.write where it will show like this
name : test
test1
id: 2
this is the format....
Thank you.
... more >>
Problem trying to determine if a file exists using wildcard
Posted by Dan W at 8/22/2005 9:50:27 AM
Hi there. I am parsing a text file and as I parse each line I need
to go out to two different directories and check to see if any files
beginning with the string I just parsed exist. For example... if the
first line in my text file is AS1501 then I need to check Dir1 and see
if there are any ... more >>
inheriting from vc++ ? etc.
Posted by Peter Plumber at 8/22/2005 9:21:29 AM
Hi,
I am just a (maybe) beginner in .NET
having some basic questions about the limits.
I suppose easy to answer for someone already using it ...
what are the limits of inheritance?
is is possible it possible to inherit from a vc++-class?
and if yes, under which conditions?
and what ... more >>
Creating simple batch numbers from selected date....
Posted by Blippy at 8/22/2005 7:55:05 AM
I want to create a small look up program that searches for a certain
date and the batch number that is represented by that day. For instance
if i wanted to find the batch for 20/08/05 i would choose that date and
then the program would tell me that it was batch 125. The batch number
are in... more >>
System.Management.ManagementException: Not found (Win 2K)
Posted by lcifers at 8/22/2005 6:45:30 AM
I have an application that uses the following code to return the
default printer:
Dim moReturn As Management.ManagementObjectCollection
Dim moSearch As Management.ManagementObjectSearcher
Dim mo As Management.ManagementObject
moSearch = New Management.Manag... more >>
Redirecting console output in realtime?
Posted by Markus S. at 8/22/2005 6:17:20 AM
Hello,
I have a problem with a DOS EXE that is called by a .Net Winforms
application. I need to redirect the console output into a textbox, but
this should happen in real time, so when new output is written to the
redirected StandardOutput-Reader, I want to catch it immediately and
add it the... more >>
How how to create frames in a windows forms?
Posted by J.S. at 8/22/2005 3:08:39 AM
I was under the impression that frames could be used in Windows forms in
earlier version of VB. However, in VB 2005 Express I don't see any such
tool/control. Is SplitContainer used for this purpose in VB 2005?
I want to create a frame in a Windows form because I'd like button clicks on
t... more >>
Cancelling event in event procedure
Posted by Adil Akram at 8/22/2005 12:42:01 AM
I want to cancel an event from its event procedure on some condition, I know
how to do this in VB6 i.e. by setting cancel=true. Please tell me how can I
do this in VB.net I don't know how to use the eventArgs in VB.net and neither
its help is available in MSDN.
I'm thank full to you in adva... more >>
Is GDI+ PageUnit Supposed to be Accurate?
Posted by Charles Law at 8/22/2005 12:00:00 AM
If I draw a rectangle, 6 inches by 2 inches, on a user control with a
PageUnit of Inches, I get a rectangle of 7 by 2.2 inches.
Is this what people would expect? I would have hoped that it was at least
scaled consistently.
Charles
... more >>
Force MeasureItem in OwnerDraw menu?
Posted by Rob Mayo at 8/22/2005 12:00:00 AM
How can I force a MeasureItem message for an owner-dramn menu item?
Here is the dilemma. I wrote a lovely little Component for owner-drawing all
the menus on a form and making them look like Office XP-style menus (mostly
an academic exercise). I came across a problem with another app I wrote,
... more >>
Unable to write to registry
Posted by Vernon Peppers at 8/22/2005 12:00:00 AM
I am a newbie with .NET, trying to step up from VB6. I have a need to write
to and read from the registry. Config files will not be acceptable due to
their lack of security. The registry entry will have to do with the proper
registration and purchase of the program. I have the following code ... more >>
Free UI tools?
Posted by at 8/22/2005 12:00:00 AM
Hi,
I would like to know if there are any good and free UI that i can
download for vb .net win. app. Like buttons, Forms, Bars, ...etc.
Thanks a lot.
... more >>
ListBox
Posted by Doug Bell at 8/22/2005 12:00:00 AM
Hi,
I thought that this would be a simple exercise but I am struggling to get a
result.
I need a listbox that will display a list of items from a DataTable,
dtUnits. The displayed list comes from Column [UnitsProdDescn]. Selecting an
item in this list needs to return a value from Column [UnitsC... more >>
Form interaction
Posted by poldoj at 8/22/2005 12:00:00 AM
Hi all, I have a simple question. I have 2 form; form1 is the main form and
form2 is a secondary form. Just wondering if is possible to change the text
value of a control label placed in the form1 from form2. Example, I have put
a button inside the form2 like this:
________________
Private S... more >>
Problems with Minimizing Forms
Posted by Don at 8/22/2005 12:00:00 AM
I have a form that displays a second form modally (via ShowDialog). When
the second form gets minimized, how do you get the parent form to minimize,
too?
- Don
... more >>
Webrequest threading timeout
Posted by LS at 8/22/2005 12:00:00 AM
Hi Guys,
I'm building a spider application for our intranet and have problems making
webrequests.
I spin of 10 threads, they all do the same code, a webrequest and processing
of the page.
This is the code of the webrequest:
--------------------------------------------------------
req = Ht... more >>
RichText File displayed in RichTextBox
Posted by thomasp NO[at]SPAM msala.net at 8/22/2005 12:00:00 AM
Using VB2005 I am trying to display a .rft file in a richtextbox control.
The file contains an table and some other text. The file opens without a
problem in MS Word, but when I display it in the richtextbox control, the
text in the table is not in the correct columns. The text is shifted to t... more >>
User resizes a form: Only one event instead of hundreds
Posted by Robert Schneider at 8/22/2005 12:00:00 AM
Hi,
I have a form that is resizable. On the form is a user control (ocx). To
resize the user control I have to call a certain method. Till now I used the
Form.Layout event. This works well. But what I would like to have is that
the certain method is called only once, when the user releases ... more >>
|