all groups > vb.net > july 2005
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
Installation issue: Can't install to other than C: drive(??)
Posted by Scott Glasgow at 7/31/2005 10:21:56 PM
I have the Microsoft Visual Basic .NET Deluxe Learning Edition from
Microsoft and am trying to reinstall it after a hardware system crash
requiring complete reformat/reinstall of Windows XP Pro and SP2. The first
time I installed on this machine under my previous OS installation, it quite
ha... more >>
Design time error opening inherited form
Posted by Peter at 7/31/2005 8:42:02 PM
I have a base form from which many forms inherit. The base form is in one
project, and the inherits form is in another project. Both projects are
under the same solution space.
Both forms compile and execute as they should and have done for quite some
time. I can open the base form in de... more >>
binder.Current.row.rowstate not reflecting actual state of child row
Posted by astro at 7/31/2005 7:48:37 PM
I'm working through the binder stuff trying to get a handle on it...
I have setup a master-detail dataset and have a couple of textboxes from the
master along with a datadgrid for the child data.
I have a navigation pallete with the usual arrows. All arrow btn's are
handled by the same ... more >>
Insert data into Access under IIS' wwwroot directory
Posted by sambuela at 7/31/2005 5:29:02 PM
I have one access file located at IIS' wwwroot directory.
My goal is to insert record to access database.
However, it seems that Access is proteced by IIS.
I had been open its writing privileage by file manager.
But the IIS will show the error message and halt on this line:
objCmd.Execute... more >>
Cannot write text to the file located in IIS' wwwroot directory!
Posted by sambuela at 7/31/2005 5:11:01 PM
How can I write message to the file located in the wwwroot directory?
It seems that IIS protect these files.
Let make me cannot do the I/O writing sucessfully.
I try to open file's write privileage by file manager and IIS manager.
However, one PC is okay and another PC is not.
Any help on t... more >>
Garbage Collection - dim x as y versus dim x as new y
Posted by hazz at 7/31/2005 12:57:57 PM
with respect to garbage collection. Does it make any difference? My current
understanding is that (to avoid memory leaks, ie memory accumulation - never
letting go of the memory something has referenced) it isn't so much HOW an
object reference (or string or byte())
is created, it is more ab... more >>
Would this be possible?
Posted by Nocturnal at 7/31/2005 12:41:55 PM
Would something like this be possible by writing it within VB.net?
I would like for a program to open up Lavasoft's Ad-Aware, check for any
updates available on the web by clicking on their update button, then if
there is an update, download and install it, if there isn't, go ahead and do... more >>
Enums and hashtables
Posted by John Dann at 7/31/2005 10:13:47 AM
I want to save the value of an enum variable in a hashtable but a
little confused as to what I can and can't do. I sort of imagined that
I could do eg:
Dim MyEnumVar as MyEnum = MyEnum.whatever
MyHashtable.Add(MyKey, MyEnumVar)
and then retrieve the value using:
MyEnumVar2 = MyHashTable(... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
SQL tables to class/entity
Posted by Sehboo at 7/31/2005 9:04:23 AM
Hi,
I have several tables on SQL Server. Is possible that instead of
manually creating entity classes (where each table is represented by a
class and each field on the table is represented by a property in the
class), I can run some wizard which create all these
classes/properties? Any free... more >>
pictures in menu bar?
Posted by iwdu15 at 7/31/2005 8:51:01 AM
hi, i was wondering if there was anyway to put icons/images next to menu
items? thanks... more >>
How to set focus to a popup
Posted by Giovanni Cobos at 7/31/2005 12:04:19 AM
Hello
I am developing a web page in VB .NET. I am using a popup to show pictures
of dresses. Mi probles is: When the used cliks on the button that calls the
popup it is loaded (until this point there is no problem) but if the user
closes the popup and cliks again the button that calls the popu... more >>
VSMacros71 folder?
Posted by Sam Marrocco at 7/31/2005 12:00:00 AM
When I open up a project I've made in the VB.NET IDE, a directory named
VSMacros71 (with underlying folders) is created in the same folder as my
project. I've created no macros myself, and the underlying MyMacros
folder is empty.
How can I stop these folders from being created each time I o... more >>
Multiple Type Definition Causes Resource Failure
Posted by Floppy Jellopy at 7/31/2005 12:00:00 AM
Hello,
I was recently asked to look at someones code to see if i could determine
why a particular form was failing to load and instead generating an error
about a lack of available resources for that locale. The form inherited from
a base form and was defined with an inline namespace rather th... more >>
Listbox
Posted by at 7/31/2005 12:00:00 AM
Hi all,
Are there any way to set different color per line on my listbox?
Thanks a lot.
Windy
... more >>
Lookup Table to select (or multi-select) for edit
Posted by abc my vclass at 7/31/2005 12:00:00 AM
I want to write a form control to lookup some tables fields from
database,
let users to select one record (or multi-select more records) under
win-form
environment for fill some fields of parent forms. Is datagrid control
support multi-select features? Is datagrid control... more >>
differ mouse down from mouse click
Posted by Boni at 7/31/2005 12:00:00 AM
Dear all,
A mouse click on some object in my application should select this object,
where mouse down should start moving until mouse up.
But, when I press mouse down small move always happens. I tried to work with
move tolerance, but then if mouse was near the border of the object, it
leaves... more >>
strange inheritance proble
Posted by Boni at 7/30/2005 10:52:47 PM
Dear all,
class A
overridable sub s1(byval a as integer)
end sub
overridable sub s2(byval a as integer, byval b as integer)
end sub
end class
class B
inherits class A
overrides sub s1(byval a as integer)
end sub
end class
s1 in both classes is public and has the same signature, but V... more >>
Passing data to a thread
Posted by Jerry Spence1 at 7/30/2005 9:46:46 PM
I have seen the following example of passing data to a thread:
Class ThreadData
Public Id As Integer
Public Msg As String
Public Done As Boolean
'
The entry point for the thread
Sub DoTheTask()
For i As Integer = 1 To 10
' Show that the... more >>
Iterate over hashtabel in reverse order
Posted by Boni at 7/30/2005 9:34:25 PM
Dear all,
following code iterates thru the hash table.
Dim _Enumerator As IDictionaryEnumerator = _myhashtable.GetEnumerator
While _Enumerator.MoveNext()
....
End While
But I can't find a way to iterate in reverse direction. Something like...
Dim _Enumerator As IDictionaryEn... more >>
Re: Common Problem I think... (More issues)
Posted by Chad at 7/30/2005 8:45:23 PM
Thanks for bearing with me. I am getting there (maybe)....
I change the SupervisorId property to use the SqlInt32 type as such:
Public Property SupervisorId() As System.Data.SqlTypes.SqlInt32
Get
Return m_SupervisorId
End Get
Set(ByVal Value As Syste... more >>
no taskbar or menu bar
Posted by iwdu15 at 7/30/2005 3:18:02 PM
hi, how can i make my windows form not show the start menu or any menu for
that matter so it will essentially be full screen?... more >>
Hot key underlines don't show at runtime.
Posted by ITJRW at 7/30/2005 3:16:53 PM
Hi All,
I'm going through Microsoft Visual Basic .NET Step by Step Version 2003 by
Halvorson. I have performed a Chapter 4 exercise according to the
instructions exactly. Using the & character before the desired hot key
character in MainMenu1 mnu????Item Text property. The hot key shows in... more >>
full screen?
Posted by iwdu15 at 7/30/2005 12:43:02 PM
hi, is there anyway i can make my windows form to be full screen? thanks... more >>
drawing snap mode indicator
Posted by Sam at 7/30/2005 11:12:12 AM
Hi guys
I'm writing a small drawing program which has "snap to grid" mode and I
want to display something (some kind of shapes for example a small square or
circle which indicate the current snap point of my mouse) but I have no
success so far. I tried controlpain.drawreversibleframe metho... more >>
Error closing VB2005
Posted by thomasp NO[at]SPAM msala.net at 7/30/2005 10:44:31 AM
I get the following error when closing VB2005 beta 2. Everything runs fine.
Just wondering what the error is and how to eliminate it.
********
The control System.Windows.Forms.MdiClient has thrown an unhandled exception
in the designer and has been disabled.
Exception:
Property accessor ... more >>
Datagrid row index errors
Posted by pdsluk at 7/30/2005 9:44:02 AM
Hi
Can anyone point me in the right direction
I am using vb.net 2003 to create a windows form application
I have a datagrid bound to a dataset, clicking between row 0 and row 1,
several times will cause an exception, the error is because the
currentrowindex has changed to 2, with only t... more >>
Get title/caption of window with focus? (Faulty code inside)
Posted by Trammel at 7/30/2005 5:26:19 AM
Hi. I have been trying to make a simple application that will sit in the
background and alert me of any changes in window focus (IE: Pop-up windows)
on my system.
I have used DirectTextToSpeech from Microsoft and tried the following
code...
The problem I am having is that it detects its own... more >>
Datagrid culture and money formatting issue
Posted by Earl at 7/30/2005 2:56:23 AM
Still trying to clean up some datagrid formatting issues from the past.
When I bring in money values from a stored procedure, I'm getting 4 decimal
places in the grid ( which of course I only want 2).
Soooo ... I tried to create the cultureinfo object, set the format decimal
digits, then a... more >>
International versions of .net framework
Posted by Jack Russell at 7/30/2005 12:00:00 AM
There are various versions of the dotnextfx installer fro different
"cultures" / languages. Is the installed framework different or is it
just the setup part of it? Out of curiosity why cannot one version cover
all by detecting the current culture?
Thanks... more >>
OLEDBConnection
Posted by David A. Osborn at 7/30/2005 12:00:00 AM
Is there a way to make the OLEDBConnection to my Access file relative to the
path of the executable of the file? I work on the program on a lot of
different computers and I am tired of having to copy things around so that
the Access file is in the right path.
... more >>
Balloon-Tooltips (CreateWindow fails)
Posted by VBTricks.de.vu Webmaster at 7/30/2005 12:00:00 AM
Hello,
I'm currently trying to port a piece of code from VB6 to VB.net which
enables my application to display balloon tooltips. Unfortunately it
doesn't seem to work. This is the code
VB:
Public Class clsBalloonTips
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Aut... more >>
Sub New() called when object declared BEFORE it's creation?
Posted by gurfle NO[at]SPAM oz.net at 7/30/2005 12:00:00 AM
I was quite surprised to notice that Sub New() gets called twice,
once at declaration time and once at creation time. I can't figure out
why it would be called at declaration if there is no class instance
to work with. What is going on here:
Sub Main
Dim NewObject as MyClass
MsgBox... more >>
Gif files and copyright issues
Posted by David A. Osborn at 7/30/2005 12:00:00 AM
I've heard that the gif file format is copyrighted and that there are issues
using it in your programs because of this. Is anyone aware of this? I am
writing an image program and it would be rather easy to added the
functionality for gifs, but I am concerned to due to this issues.
... more >>
Build installer? (feels stupid)
Posted by Trammel at 7/30/2005 12:00:00 AM
This is probably the most simplest thing... but I cant find it - lol!
I have created a program and wish to know how to make it into a
distributable installer.
In VB6 we used to use a seperate program to build installers but I dont find
that in [Start] menu or anywhere in the .net vis studio :¬... more >>
ForeignKeyConstraint
Posted by David A. Osborn at 7/30/2005 12:00:00 AM
I keep getting the following message when adding a new record to a database
that has two tables. On table is a parent to the other. I am adding a new
parent record that has child records and I get the following:
ForeignKeyConstraint drtblCDstblSongs requires the child key value(9) to
exis... more >>
Different between two ways to get WMI
Posted by yxq at 7/30/2005 12:00:00 AM
Hello,
I want to get some system info using WMI class, but there are two ways, i
want to know what different between them, thank you.
The first:
******************************************
Dim info As ManagementObject
Dim search As ManagementObjectSearcher
search = New Manage... more >>
Scrolbars in ListBox, ComboBox, ListView...
Posted by ALexey Zalivin at 7/29/2005 10:04:05 PM
Hi,
Anobody can help me to increase scrollbars in ListBox (wider for both
scrollbars). I try to design applications specialy for touchscreen, but
can't find any solutions in documentation.
Thank you,
Alexey.
... more >>
parent-child datagrids
Posted by astro at 7/29/2005 9:13:30 PM
Is there a way to setup master-detail between 2 distinct datagrids on same
form without writing code?
Is there a way to setup a child datagrid - binding it to a pk on the form so
when the binder position on the form changes the datagrid changes to reflect
new children?
I am looking for t... more >>
Can't Deserialize a Hashtable using a Memory Stream...
Posted by Zorpiedoman at 7/29/2005 7:57:01 PM
The following code explains my problem. It works fine if I use a file
stream, but not if I use a memory stream. What's the problem here? It must
be something simple I am missing...
Dim H As New Hashtable
H.Add(1, "First Item")
H.Add(2, "Second Item")
H.Ad... more >>
control-f6 shortcut acts like F6
Posted by Darin at 7/29/2005 7:28:57 PM
I have a Main Menu that has about 7 menu items on it. One is F6, one
Shift F6, and one Control F6. The F6 and shift F6 work fine, but when I
do a control F6, the F6 part of the program is run. BUT, when I use the
mouse, pull down the menu, and click on the option which has the control
F6 shortcu... more >>
Listbox first scroll
Posted by Chris at 7/29/2005 5:44:18 PM
Why does the listbox pause during the first time it has to scroll but
moves fluidly ever time after that?
Chris... more >>
add tracing/logging to log memory use?
Posted by hazz at 7/29/2005 4:25:47 PM
I would like to see where in my application memory is being allocated and
when.
I would like to add code to my Windows Service app so that it 'spits out'
total memory usage at that point as well as a time stamp. I want to add a
literal string to the message indicating exactly where I am at in... more >>
how to untoggle text wrap in code modules in IDE?
Posted by Rich at 7/29/2005 2:40:02 PM
I accidentally toggled some key combination in my code module which is
causing the code to text wrap. I meant to toggle ctrl-F. Is there a way to
untoggle the text wrapt (wrap text)?
Thanks,
Rich
... more >>
Fill Combo with Text and Value how?
Posted by Roger at 7/29/2005 2:28:50 PM
I want to fill a combo box with a Text value to show like name, but when it
is selected I want to get the say SS# or Emp #.
I will be filling this in manually how should I go about this.
I know
combo1.items.add(Item)
But what I don't get is how to assign both the text and value at the s... more >>
What is differ between Application.Run and .ShowDialog() ?
Posted by alex9128 at 7/29/2005 1:41:38 PM
Hi All,
I mean if you writing Sub Main in VB you can start you application either
way:
Dim mainfrm As Form1 = New Form1()
mainfrm.ShowDialog()
or just
Application.Run(New Form1())
What is advantage of each way? And how to count how many times user started
application and let do it ... more >>
DataGrid & InsertInto(?)
Posted by dbuchanan at 7/29/2005 12:39:29 PM
How do I address datagrid columns in the row currently being edited by
the user.
I want to have code assign values without requiring user input.
This can occur when the row first gets the focus.
Thank you.
... more >>
Binary Compatibility in .NET
Posted by DaveP at 7/29/2005 12:20:02 PM
In Visual Basic 6.0, there was a setting for DLL's that would prevent a
developer from breaking binary compatibility of a DLL by changing a function
name, parameters, etc. Warnings would appear at compile time.
Is there any such thing in .NET? I can't seem to find the same type of
setting... more >>
VB.Net 2005 Serial communications
Posted by Gary Frank at 7/29/2005 12:10:53 PM
I'd like to write a program in VB.Net that handles serial communications to
several devices. VB.Net 2003 does not have adequate built-in serial
communications. I heard that 2005 will have that. Has this serial
communications functionality been built into 2005 Beta yet? If so, is there
any re... more >>
Dynamically creating type of System.Int32, how??
Posted by Søren_M._Olesen at 7/29/2005 10:37:19 AM
Hi
How do I dynamically create a type of System.Int32 with the value 123?? =
I've tried the following:
Dim keyci As ConstructorInfo =3D =
Type.GetType("System.Int32").GetConstructor(New Type() =
{Type.GetType("System.Int32")})
Dim key As Object =3D keyci.Invoke(New Object() {"123"})
h... more >>
Decrypt file in VB6 encrypted within VB Dot NET
Posted by mark.brown NO[at]SPAM safefinancials.co.uk at 7/29/2005 10:30:43 AM
I have been given a data feed to decrypt on a daily basis.
All i have been given is the KEY (8 chars) and a Vector (IV) of 8
chars.
I am using the cryptAPI in VB6 but can see no reference to the IV.
If the IV is used by .NET to create a HASK key, then does anyone know
what algorithm MS us... more >>
|