all groups > vb.net > april 2004 > threads for wednesday april 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
How can I make the 'List Box' show several column data ??
Posted by Agnes at 4/14/2004 11:12:00 PM
Before, I am vfp developer, the list box can show more than 1 column.
Now, i don't know how to do in vb.net ? I found that it only can display one
member .
Thanks
From agnes
... more >>
How to set Datagrid column width programmically ?
Posted by Agnes at 4/14/2004 11:10:35 PM
I set my datagrid's datasource programmically . However , as the form load,
I found that every column width is the same,
Question 1) How can i adjust it programmically ???
Question 2) I need to do some specail effect as the user press 'enter' in
the 3rd column, how can i know the user press 'ent... more >>
How do I change pen color?
Posted by nobody at 4/14/2004 11:06:48 PM
Here's setting it....
Dim PenColor As New System.Drawing.Pen(System.Drawing.Color.Red)
Now how do I change "PenColor" variable?
Or, do I have to do like this below for each color?
Dim PenColor_Red As New System.Drawing.Pen(System.Drawing.Color.Red)
Dim PenColor_Green As New System.Drawing... more >>
lisview
Posted by Rado at 4/14/2004 10:18:51 PM
Hello.
In listview I have about 100 Items.
I would like to add new item for example interim items 44 and 45, while
program is running.
It's possible?
In listview I have 4 collumns.
Thanks
... more >>
Running a program from CD
Posted by Brad Allison at 4/14/2004 9:57:41 PM
Okay, easy question for this newsgroup, but difficult for me being new.
I have an application in where the user can either install the program to
their machine or they can run this from the CD. However, in testing the
program where PCs without the .NET Framework installed, there of course is
... more >>
Copyright Symbol
Posted by Radith Silva at 4/14/2004 9:51:19 PM
First of all thanx for the help with my last q.
Just wondering, how would you insert the copyright symbol into your
projects.
Thankx in advance
Radith Silva
radith@xtra.co.nz
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded ... more >>
VS does not work properly
Posted by Mike at 4/14/2004 8:37:02 PM
Hi,
When I dblclick the control on the form VS switch to the edit window but
it does not "jump" to the correct location in the code (eg CheckBox_
CheckedChanged), just remains in the position where I left it during last
editing. Any ideas?
Thanks
... more >>
C# is too nitpicky?
Posted by VeebeeGeeBees at 4/14/2004 7:44:08 PM
Why is it that you can do this in VB.net but not (the syntactical
equivilent of it in) C#?:
Dim m as MessageBox
m.Show("hello")
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Event/Notification when a USB device plugged in
Posted by Charles Law at 4/14/2004 7:41:23 PM
Is there an event or notification that my application can receive when a USB
device (or other) is plugged in?
I have looked at WMI as this appears to be the right area but cannot see how
to get notification when this particular event occurs. The same goes for
removal as well.
TIA
Charles... more >>
Graphics and resize problem
Posted by Christian Soltenborn at 4/14/2004 7:24:34 PM
Hi guys,
I have a question to VB .NET: I add a Graphics object to a panel and use
a bunch of DrawLine methods etc (it's really nice and convenient).
But: As soon as I send my form (which contains the panel) to the task
bar and get it back, the graphics are gone.
I guess that I need to add... more >>
Update to DataTable having Calculated Row
Posted by manish.chaturvedi NO[at]SPAM hmshost.com at 4/14/2004 6:39:19 PM
Hello Everyone
I am having weird problem in my datagrid bounded to datatable. My
datatable is populated from SQLServer database. DataGrid has
Calculated column Week% and Calculated record, SPLH.
An example of datagrid is
Category Amount Week%
Revenue 200
Cost ... more >>
DLL Call in VB.NET
Posted by Maximilian Hofer at 4/14/2004 6:00:46 PM
Hello NG,
I Have follow Declaration in my VB6 Code:
Declare Function EPS48_Receive Lib "bkeps48.dll" (ByVal RecvData As String,
ByVal MaxLength As Integer) As Integer
This is the Code where i call this Function:
Dim Length as Integer
Dim RecvData as String * 1021
Length = EPS48_Rece... more >>
Making a control with transparent background
Posted by Juan Romero at 4/14/2004 4:19:06 PM
Hey guys,
Does anyoone know how to make a control with transparent background?
This is what I have so far and it doesn't work:
Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True)
Me.UpdateStyles()
Me.BackColor = Color.Transparent
Invalidate()
This allows me to set the back... more >>
How do I detect which object cause memory leak????
Posted by astroboy at 4/14/2004 4:13:49 PM
How do I detect which object cause memory leak????
Thx
... more >>
need help on simple thread (simple I hope!)
Posted by - Dan - at 4/14/2004 4:10:24 PM
Hello, i have a form with a text box on it. When the user does something on
the form, the data in this text box is passed to a function and the function
returns a dataset.
function foo (byval input as string) as dataset
....
end function
The dataset can be large so I want the UI to rema... more >>
Streamwriting a large ASCII string to a file
Posted by bidalah NO[at]SPAM yahoo.com at 4/14/2004 3:23:22 PM
Hi everyone,
I am using vb.net to edit the ascii code of a print stream directly.
Why am I doing this? It's complicated but its something my boss
needs. I am successfully using Streamreader to read all of the data
into a string:
Dim FixFile_StreamReader as StreamReader
FixFile_StreamRea... more >>
Template Language: [!output .......]
Posted by Michael Maes at 4/14/2004 2:46:23 PM
Hello,
I want to add a date (ShortDateString) to a custom template-file =
(Class).
I use:
a.. [!output SAFE_NAMESPACE_NAME]
b.. [!output SAFE_CLASS_NAME]
c.. [!output SAFE_ITEM_NAME]
But I can't find anythig on a date (something like: [!output =
SHORTDATE_STRING])
TIA,
Michae... more >>
Access 97 Images
Posted by Bob at 4/14/2004 2:16:06 PM
I'm looking for an example of how to extract images from an Access 97 blob into an asp datagrid. Anybody have examples?... more >>
How to solve the Crystal Report error keycode2.dll invalid
Posted by Kashyap at 4/14/2004 2:06:50 PM
i have a project in which i have used crystal report. when i run this
application on other computer which has a microsoft framework install give
me error when open the form containing the crystal Report viever.
can anybody help me to solve the problem.
Thanks
Kashyap
... more >>
CSV Files
Posted by scorpion53061 at 4/14/2004 2:05:14 PM
I need to write a dataset to a csv file.
It is my understanding a user who does not have excel on their machine can
still work with csv files. Let me know fi that is mistaken.
I need to write a dataset to a csv file. This file would be uploaded to a
ftp server eventually. I need a tutorial o... more >>
I just want the Version number of my app..please....!!!
Posted by N.Naeem at 4/14/2004 1:53:47 PM
how do i do the following in vb.net as done SIMPLY! in VB6
label1.caption = app.major
... more >>
reboot command
Posted by martijn.vanleeuwen NO[at]SPAM stibbe.com at 4/14/2004 1:39:27 PM
Hi,
I am trying to create an application for our servicedesk. With this
application the servicedesk members, can remotely image an
workstation.
What am looking for is a command line that reboots the users machine
and creates a network share that starts up an batch file which calls
Norton g... more >>
Converting text to menu item?
Posted by news.microsoft.com at 4/14/2004 12:57:26 PM
I am trying to write a menu handler to enable/disable menu selections
based on user permissions. I did this in VB6 - no problem - but since
I have now lost the name of the menu, I'm trying to come up with an
alternate way to do this.
In my database, I have an array declared as string type that... more >>
getting associated icon for file type out of system
Posted by Brian Henry at 4/14/2004 12:22:05 PM
How would you get the associated icon for the file type of a file with a
certain extension?
like BMP, JPEG, MPEG, etc etc find their default icon using the File Types
listing that associates the extension with an icon in windows. thanks!
... more >>
hover over link label, give description
Posted by Helen at 4/14/2004 12:16:11 PM
Hi, I'd like to give a detailed description of the link label when the user hovers over it, just like the web environment. How is this done, please? Tks!... more >>
quickly sorting a large listview in detail mode
Posted by Brian Henry at 4/14/2004 12:10:24 PM
How do you quickly sort a listview that could have a large amount of items
based on the column header that was clicked? it seems so much more complex
in .net now then it was in standard vb.. thanks
... more >>
Refresh Page vs. Postback
Posted by Coleen at 4/14/2004 12:00:51 PM
Hi All :-)
I have a web page that I need to refresh every time the page loads. I thought that the page automatically did a refresh/postback on the Page_Load event. Isn't refreshing the page the same thing as an Auto-postback? My page does not refresh with current data if you leave it, go to an... more >>
VSLive experiences
Posted by Raymond Lewallen at 4/14/2004 11:05:44 AM
I am considering asking the government to spend your tax dollars to send me
and a few others to VSLive, possibly the Orlando in September. None of us
in my developer group have been to VSLive before, and was curious as to the
value of information received.
Thank you for any feedback regarding... more >>
How do i initiate a simple dialog box to ask a question??
Posted by acool at 4/14/2004 11:04:06 AM
How does one intitiate (I remember a certain type of dialog box in VB6) so
that I can ask a simple question in a messagebox?
... more >>
reflection? Not sure how to do this...
Posted by Jordan Bowness at 4/14/2004 10:55:29 AM
I have an MDI parent with 1 mdi child. I'd like to be able to run a
routine on the parent to enumerate the handled events on the child form.
Specifically, I have a control on the parent which I want to update
depending on what keydown events are handled by the child form.
Any suggestions? ... more >>
Service that Reads/Writes Files/SQL Server
Posted by DraguVaso at 4/14/2004 10:53:50 AM
Hi,
I want to create a Service that Reads and Write Files, and Insert and Select
Data from a Sql Server Database.
I did a little test with a small Service that I wanted to write something to
a File when it starts and stops. I did it like this:
Protected Overrides Sub OnStart(ByVal args(... more >>
Memory Leaks?
Posted by David Schwartz at 4/14/2004 10:53:27 AM
Has anyone noticed memory leaks in their VB.NET Windows Forms apps? My app
definitely has some memory leaks, so I did a simple test to see if it was my
app or something about VB.NET.
I created a test app with 2 forms. Form1 has a command button with the
following code:
Private Sub Butto... more >>
text decoding from dataset, hmm... help appreciated.
Posted by Peter Row at 4/14/2004 10:51:25 AM
Hi all,
Here is my problem:
I have a SQL Server 2000 DB with various NVarChar, NText fields in its
tables.
For some stupid reason the data was inserted into these fields in UTF8
encoding.
However when you retrieve these values into a dataset and ToString() them
some
characters come out... more >>
Dataviews and joining to tables
Posted by Brian Henry at 4/14/2004 10:10:43 AM
I have a strange problem...
I have a junction table that i need to filter based on a id, then take the
filtered data and join it to a description table then show the data that was
filtered in a listbox with the description instead of the id... here's an
example
Junction table
===========... more >>
what [] means?
Posted by A.M at 4/14/2004 9:53:00 AM
Hi,
I am analysing a VB.NET code and i see this line of code:
Dim strCacheKey As String = [ProviderType] & "provider"
What is the role of [ ] ?
Thanks,
Allan
... more >>
me.cursor...??
Posted by Mobile Boy 36 at 4/14/2004 9:50:03 AM
Maybe this is a very ridicules question.
I 'm developing a vb.net compact framework application and I try to change
the cursor to an hourglass with the following code:
me.cursor = cursors.WaitCursor
It seems like "me.cursor" does not exist. It's underlined with scrigles.
How... more >>
Registering a DLL in setup project
Posted by Simon Jefferies at 4/14/2004 9:47:40 AM
Hello,
How can I register my own .NET DLL through a setup project? In other words
perform a regasm on a dll?
Thanks In Advance
Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:simonj@headfirst.co.uk
-
... more >>
Array of Objects
Posted by JF at 4/14/2004 9:24:08 AM
Trying to create a variable array of SMS collection rules:
Dim aRules() as Array, Dim oRule as Object
Index = 0
sub proceedure
oRule.XXX
oRule.XXX
ReDim Preserve aRules(i)
aRules(i) = oRule (error here!!!)
i=i+1
Error: InvalidCastException "Specified cast is not Valid"
Works in vbs... more >>
releasing memory...
Posted by paruchurip NO[at]SPAM hotmail-dot-com.no-spam.invalid at 4/14/2004 9:05:54 AM
I wrote a ado.net application that uses dataadapter,connection and
command objects.
I have a procedure to populate dataset.I call dispose on all objects
after dataset is populate and close the connection.
I see that the application still uses connection on sqlserver(I
verified this by executin... more >>
Creating OCX?
Posted by Brian Mitchell at 4/14/2004 8:59:34 AM
How do you create an ActiveX control using Visual Studio .NET? I have
successfully created a Windows Control Library project but that only creates
a .dll and when I register it (using regasm) it doesn't show up in my
references and when I try to add it to the toolbox I get "It was not
recognized... more >>
Application.Run() and ShowDialog error
Posted by Mike NO[at]SPAM walterscentral.com at 4/14/2004 8:38:30 AM
I have a Appication starting thought a Module Main sub
<System.STAThread()> _
Public Sub Main()
System.Windows.Forms.Application.EnableVisualStyles()
System.Windows.Forms.Application.Run(splash)
End Sub
This works great, I start my splash screen and move on from... more >>
Access field name & brackets problem
Posted by s_fontinalis NO[at]SPAM hotmail.com at 4/14/2004 7:13:45 AM
I have an Access db (actually, about 60 of them) that has a table with
a field named Q#. This table gets read into a dataset. In the dataset,
the field is also called Q#. But when I try to update the db, an error
occurs because Access wants the field to be surrounded by brackets -
[Q#] - when wr... more >>
System Active Title Bar Color1 and Color2
Posted by Jeff at 4/14/2004 7:01:08 AM
Is it possible to find out what the Active Title Bar's color 1 and color2 is for the system
If you go to the display properties and click advanced, andother window pops up allowing you to change the Active Title Bar color1 and color2, which creates the gradient effect
What to know if it was possi... more >>
Unable to "publish" files
Posted by Stefanie Gardner at 4/14/2004 6:06:05 AM
I am a programmer, new to VB.Net. I have a client with a website designed and built by someone else, that has handed it over to me to maintain. I have enjoyed/hated the challenges involved with .Net. Right now, I have an interesting problem that I hope y'all can help with.
I open the project fr... more >>
Generating code from OCX control
Posted by Al Bahr at 4/14/2004 5:56:04 AM
Hi
I have OCX control which was developed for VB6. The distributing company seems out of business. Control works ok in vb.net but required some changes. Is there a tool to do reverse engineering and generate code for OCX
Thanks in advanc
A
... more >>
using keys in datagrid in vb .net
Posted by Saji .net at 4/14/2004 5:39:37 AM
how I can use control keys like enter in datagrid cell in
vb.net?... more >>
Global Variables
Posted by Matt at 4/14/2004 5:11:04 AM
Is there a way to create global variables to be used across all forms?... more >>
setFocus
Posted by Radith Silva at 4/14/2004 4:44:12 AM
HI TO ALL:
What happen to the setFocus method from VB 6.0
I have a code:
With txtName
.Text = ""
.setFocus
VB.NET don't read it.
What is the alternative???
Thanx in advance
Radith Silva
radith@xtra.co.nz
*** Sent via Developersdex http://www.developersdex.com ***
... more >>
Closing a msgbox w/o user interaction
Posted by EvanK at 4/14/2004 3:56:06 AM
Is there a way to display a message box and have it close after a certain amount of time w/o user interaction?... more >>
Displaying superscript and subscript text in a label in VB6
Posted by Rani Ponmathi at 4/14/2004 3:46:02 AM
Please can I know how to display the formulae using superscript (Ex:- E = mc2 here 2 is superscript text) and subscript (H20 - here 2 is subscript text) in Label control of VB6
Thank You!... more >>
Detecting when the delete key is pressed
Posted by Austin T at 4/14/2004 3:21:02 AM
Hello
I wish to set up a handler to detect when the <Delete> key is pressed on the keyboard. This is so that I can intercept it and if the focus is on my datagrid, I will display a confirmation button, if they say No then the delete will be reversed (if possible)
Thanx in advanc
Austin ... more >>
Query Table
Posted by WStoreyII at 4/14/2004 2:32:23 AM
how can i only show certain records in a datagrid
based on user defined criteria
like only show records where amount = x ect?
WStoreyII
Thanks Again
... more >>
VB is dead.....
Posted by Joe Coder at 4/14/2004 1:28:15 AM
Need more proof? Here's more....
http://msdn.microsoft.com/whidbey
http://www.asp.net/whidbey
Take a look at whidbey. So far (unless something is being hidden from us
at this point) whidbey is all about C#. Just another reminder from MS that
VB is dead. VB is not on their radar. It's a... more >>
Pasting image to rtf file
Posted by sneffe at 4/14/2004 1:06:02 AM
Hi, Does anyone have an example of how to paste or inserting an image into a rtf file? I have tried the following but the image is represented as a lot of weird letters and numbers
FileOpen(1, "c:\temp\Document.rtf", OpenMode.Binary, OpenAccess.Write
FilePut(1, "c:\temp\on.gif"
... more >>
error in me.show()
Posted by ed at 4/14/2004 12:36:03 AM
Hi I can't seem to make the Me.Show() work
My code is
dim dlgresult as dialogresul
dlgresult=me.show(
The message is : "expression does not produce a value
But if I sue this: dlgresult=Me.ShowDialog(), it works. It's just that I need my form to me modeless
What am I missing here
Thanks... more >>
How windows draws dialogs
Posted by Brian Henry at 4/14/2004 12:15:46 AM
This is a little off topic, but does anyone know where I can find
information on how windows draws forms and dialogs on screen? I know it
depends on 2D hardware, and GDI/GDI+. Does anyone know where I can find
documentation on how it does it? thanks
... more >>
|