all groups > vb.net > october 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 31
How to suppress just-in-time debugging?
Posted by John at 10/31/2004 11:10:20 PM
Hi
I have a win app running under windows scheduler. Sometimes the just-in-time
debugger comes up requiring the user to select a debugger. Is it possible to
suppress this as it becomes inconvenient for the user?
Thanks
Regards
... more >>
Suppressing just-in-time debugging
Posted by John at 10/31/2004 11:05:46 PM
Hi
I have a win app running under windows scheduler. Sometimes the just-in-time
debugger comes up requiring the user to select a debugger. Is it possible to
suppress this as it becomes inconvenient for the user?
Thanks
Regards
... more >>
Newbie: application icon
Posted by steve at 10/31/2004 10:56:09 PM
Hi,
just like the subject says:
How do you set the icon that is associated with a VB project executable ?
I googled and also went to Project Properties with not much success.
TIA
-steve
... more >>
HOWTO? Complete Web application as a dll
Posted by Matthew Speed at 10/31/2004 10:02:51 PM
I have a VB.Net web application that in the website directory consists
of but a single .aspx file with its matching .aspx.vb file and a dll.
The idea of having a single web page with all content stored in a dll
is appealing to me but I can't seem to find a reference on how to do
this. Can anyon... more >>
Sending events to main app from a class
Posted by Terry Olsen at 10/31/2004 7:21:32 PM
I'm writing a class module (to be compiled to .dll). I have a couple of
questions...
1. Is there a way, inside the class, to repeatedly check a value (timer is
not available here), and
2. trigger an event that the main app would catch when the value is true?
... more >>
Class return Nothing
Posted by Bernard Bourée at 10/31/2004 7:14:47 PM
I have the following code:
Dim mVar As New Variable()
mVar.NomVal = "Test" ==> this line return a NomVal ="Test"
mVar.oVal = 10D ====> but this one return a oVal= NOTHING !!!!
What is wrong ?
Bernard
----------------------------------
Public Class Variable
Private mNom... more >>
Using TypeOf?
Posted by Leon at 10/31/2004 6:10:19 PM
I have a program that fill 6 textbox on button click, but when using TypeOf
my program is trying to also fill label controls which throws my array out
of range. how can use TypeOf to only read textbox Control?
Piece of Code:
Dim I As Integer
For I = 0 To Me.Controls.Count - 1
If (Typ... more >>
a cast beginner question
Posted by Maileen at 10/31/2004 5:37:42 PM
Hi,
I have a TabControl with 2 TabPages (TabPage1 and TabPage2).
I have a TreeView control with 2 nodes (Page1 and Page2).
When i click on Page1 node, I want to display the TabPage1...the same
thing for Page2 node (TabPage2).
This is easy to do using selectedIndex = ...
But i would li... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Class for sockets?
Posted by Terry Olsen at 10/31/2004 5:27:34 PM
I'm wondering if a winsock class has been written that functions similar to
the winsock.ocx from VB6.
... more >>
Add SQL statements in VB .NET
Posted by CharlieChau at 10/31/2004 3:07:57 PM
Hi,
I have just learned from the link
http://support.microsoft.com/kb/821765/EN-US/ to use the
database with VB .NET
From the example of the above link, if I want to use the
table Student as reference table, I need to verify if the
SNo existing in the database, then the SName is matc... more >>
Primary key and version control question.
Posted by Agnes at 10/31/2004 2:56:59 PM
I got some table design problem and hope someone can give me advice.
I got an InvoiceTable with the primary key Invno, InvoiceChgtable will keep
the charges , noofunit, unitpirce.. etc, its primary key is using 'smallint'
with increment YES
Now, I need to keep each version of the invoice data in... more >>
Installer and versioning
Posted by Matthew at 10/31/2004 2:09:26 PM
I found a piece of code that I can use to control the version of my
software:
<Assembly: Reflection.AssemblyVersion("1.0")>
I put this at the top of my Form1.vb file.
The question is, this version number does not replicate to my Setup Project
version.
Can this be done?
Matthew
... more >>
Copyright character
Posted by Maileen at 10/31/2004 1:53:46 PM
Hi,
I would like to know how can i do if i want to display the copyright
character (the C into a circle) into my About window ?
thanks a lot,
Maileen... more >>
everything is ambiguous!... total badness! help!
Posted by Bob at 10/31/2004 1:41:43 PM
My controls assembly was behaving perfectly well (no compile errors in the
Task List) until I added a new user control. Then suddenly I got 105 compile
errors headed up by numerous errors asserting that '(control name)' is
ambiguous in the namespace '(control namespace)'. Absolutely nothing I've
... more >>
Treeview and preselected node
Posted by Maileen at 10/31/2004 12:57:02 PM
Hi,
I have on my form a treeview control with several nodes.
when my form is loaded, I would like to preselected the 1st node of my
treeview and to see it selected (highlighten node text)
how can i do this please ?
thanks,
Maileen... more >>
Collection & IndexOf
Posted by Bernard Bourée at 10/31/2004 12:17:50 PM
I have a class named "Variable" with 2 properties "Name" and "Value" and
the following class to handle a collection of Variable:
Public Class ColVariables
Inherits CollectionBase
Default Public Property Item(ByVal index As Integer) As Variable
Get
Return CType(List(index), Variab... more >>
rotate control
Posted by Chris at 10/31/2004 11:12:54 AM
Hi,
Is it possible to rotate a control on a form ? (e.g. Button, customcontrol)
thnx
Christian
... more >>
MS Forms 2.0 Multipage and VB.NET
Posted by Maileen at 10/31/2004 10:52:56 AM
Hi,
I want to use the control MS Forms 2.0 Multipage because it allows to
display several pages without displaying the Tab on the top (even if in
design mode).
However, when i place a simple label on this multipage, the text label
appears on all Pages...
like if text label was tied to for... more >>
Determing a quarter in a financial year
Posted by RD at 10/31/2004 10:39:10 AM
Say Company's financial year starts October First and say we are now March
17th. How do you determine which quarter of the Financial year - not the
actual year - March 17th is in.
Thanks for any help,
Bob
... more >>
Hashtable
Posted by Bernard Bourée at 10/31/2004 10:26:11 AM
I have a Class named Variable with 2 properties "Name" and "Value"
I have grouped them in a Hashtable collection
Dim ColVar as Hashtable
when I try to go through the collection with
Dim var as Variable
For Each var in ColVar
Next
I receive an error of CAST !
What is wrong ?
Than... more >>
how to draw arrows in Visual Basic .NET
Posted by Stephen at 10/31/2004 9:14:02 AM
hi, i would like to draw static arrows in the window form. Seems from the
posts that there isnt any drawing toolbox.
Is there a way of doing it?
Pls go step by step, this is the first time i am programming.
Wish it was as easy as in Microsoft Word where u can just drag an arrow....
Thanks... more >>
Math Game - Help
Posted by freddy at 10/31/2004 7:44:01 AM
I am using function like so:
Public Class Calculation
'add function
Public Function add(ByVal num1, ByVal num2)
Return (num1 + num2)
End Function
'subtract function
Public Function subtract(ByVal num1, ByVal num2)
Return (nu... more >>
Writing a .DLL file
Posted by JeremyF at 10/31/2004 7:22:01 AM
Writing a DLL file as a addin to SolidWorks software I have used regsvr32 to
register my DLL but it doesn’t seem to put the correct keys in the register.
This is my first attempt so any help with be appreciated. ... more >>
Return Disk Number (i.e. "Disk 0" for C Drive)??
Posted by mikeybe1 NO[at]SPAM hotmail.com at 10/31/2004 5:35:57 AM
Anyone know how to return the disk number (i.e. the number you see
when you launch windows disk manager and see your drives numbered disk
0, disk 1, etc.)? I'm not talking about the volume serial number or
drive serial number. For example, I want to programatically determine
what disk number th... more >>
Write error: #ERROR 448#
Posted by sm at 10/31/2004 4:03:01 AM
Hi All,
When I write to a file using the Write method, #ERROR 448# is written to the
file instead of the string being sent!
Has anybody come across this problem?
Thanks in advance.... more >>
Crystal Reports Auto-Size
Posted by Da Tom via .NET 247 at 10/31/2004 3:55:31 AM
Hi,
i?m creating some Crystal Reports an i have a small problem:
I have a mainreport rptMain. In this i include some subreports urptAbc etc.
The subreports have different sizes and the height can vary so the first subreport overwrites the others and so on.
Is it possible to do a function l... more >>
printing a single line at a time to a dot matrix printer
Posted by John Olszewski via .NET 247 at 10/31/2004 3:54:17 AM
Hi,
I'm working in vb=2ENET and I need to be able to print single lines=
to a dot matrix computer=2E Each time a record is entered into my=
app, the printer needs to print out the record and wait for the=
next one (all on same page)=2E Everything I've found on print=
output so far has b... more >>
DataTable slow ?
Posted by Raffaele Papa via .NET 247 at 10/31/2004 3:52:53 AM
Hi all
I'm in trouble for a time consuming loop , I'm not experienced in VB net but
if someone can suggest me some improvements on the code I use he's welcome
I'm using a DataTable Object to access data in a cycle ,
I've put the connection OleDbConnection in the external part of the cycle... more >>
facing same problem
Posted by ujjwal jain via .NET 247 at 10/31/2004 3:51:57 AM
(Type your message here)
--------------------------------
From: ujjwal
no matter what index i chose lisbox.selectedindex retrurn 0
please help.
thnaks in advance
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>wLKh0QOF2k2sco5kRHvEZg==</Id>... more >>
How to open a form from module?
Posted by John via .NET 247 at 10/31/2004 3:51:55 AM
Hi,
I am new to vb.net and i have got a function in module which needs to open another form inside the parent form, but i could not do that because it said "Reference to non-shared member requires an object reference". What should I do?
In my function in the module, i have:
Dim myForm As Ne... more >>
How do I calculate the number of weekdays between 2 dates :?
Posted by Chris Hill via .NET 247 at 10/31/2004 3:48:32 AM
Hi
I'm a jnr developer in need of desparate help. Can anyone point me in the right direction for this problem:
I calculate the number of days between 2 user defined dates like this:
Dim DaysInRange As Long
DaysInRange = DateDiff("d", Me.dtp_firstdate.Text, Me.dtp_lastdate.Text) + ... more >>
ListView Items coloring
Posted by Paja via .NET 247 at 10/31/2004 3:46:57 AM
Hi all, I've got problem with ListView in VB=2ENET=2E I want to color=
lines (odd and even with different colors - gray and white)=2E I'm=
using item=2Ebackcolor property which works fine, but=2E=2E=2E If I=
click on the listview outside the items when current line is=
gray, it will unselect... more >>
VB -> If label.text=multiple #'s..then
Posted by Hareth at 10/31/2004 12:43:28 AM
I Tried:
If label1.Text < 80 Then
lblOutput.Text = "Word I wanna say"
It didnt work...
Do I have to import something? declare something? missing something?
It didnt generate any errors, just doesnt do anything.
label1.text always is a number.....
VS2003 VB.net
... more >>
About crystal reports
Posted by yoshitha at 10/31/2004 12:02:52 AM
Hi,
I want to display the data into crystal reports and the data is not coming
from the database the data is from the controls which i've placed on the
form. and also when i click save button then the data in the crystal reports
will be saved in a file .
In my form there are textboxes and co... more >>
How to copy selected listview items using clip board in VB.NET
Posted by Mamatha at 10/30/2004 11:34:30 PM
Hi
I have some items in listview.
I want to copy the selected items from listview using the
clip board mechanism in VB.NET.
I used this code but it was not copied.
For Each lsvrow As ListViewItem In ListView1.SelectedItems
Clipboard.SetDataObject(lsvrow)
Next
What ... more >>
Wrapping a WinForm in a class
Posted by Wayne at 10/30/2004 10:04:43 PM
I have a winform that runs on its own, is it possible to wrap a stand-alone
winform in a class?
More accurately, is it possible to use a class to call an already
established winform?
... more >>
ListIndex.
Posted by Jonesgj at 10/30/2004 8:40:23 PM
Hi,
I have loaded a listbox with items from a database. I now want to allow the
user to re-order the list box manually using up down buttons, before
submitting his changes to back to the database.
I did this sometime ago in classic vb, and I think I used the Listindex
property to check ... ... more >>
sample PING source code?
Posted by Leythos at 10/30/2004 8:35:47 PM
I have a VB6 program that lets me configure an INI file with IP
addresses to ping, another INI file which lets me setup and email
contact and SMTP server, and will count ping failures and email me when
a certain fault count is reached in succession.
I need to convert the app to VB.Net and w... more >>
using WebRequest with cookie
Posted by Ya Ya at 10/30/2004 7:11:51 PM
I am trying to download a web page using WebRequest.
The problem is that this page uses cookies. In IE, I can view this page
correctly (since I have the cookie) but when downloading using WebRequest I
don't get the page I want.
How can I add cookie information to my WebRequest ?
How do I know... more >>
tabcontrol and TabPage
Posted by Maileen at 10/30/2004 6:35:37 PM
Hi,
I have a Tabcontrol on my form which display 2 pages (so tabpage1 and 2).
I would like to not see these "tabs" (where is written TabPage1 and
2)... for switching from 1 page to the other i use some treelist control.
So, how can i hide these tab on the top of my TabControl (but they must... more >>
XPath Query (Multiple Parameters)
Posted by Ash at 10/30/2004 6:28:07 PM
Hi,
Using this sample XML ......
<Data>
<House>
<Location> London </Location>
<Type> Detached </Type>
<Value> 200,000 </Value>
</House>
<House>
<Location> London </Location>
<Type> Flat </Type>
<Value> 100,00... more >>
icon and tab of my custom control
Posted by Maileen at 10/30/2004 5:22:53 PM
Hi,
I've created a custom control and it is display on MyControl tab in Toolbox.
but i would like to know how :
1. can i set a particular icon to my customer control to see it
displayed in Toolbox.
2. How to create a .dll of exe of my customr control only ?
thx,
Maileen... more >>
Derived Control Default Design Properties
Posted by Dennis at 10/30/2004 4:14:02 PM
I am trying to set the default design proerties in a control I have derived
from the Panel Class. I thought I'd found how to do it from the MSDN but the
following line doesn't work:
Inherits System.Windows.Forms.Design.ControlDesigner
I get an error saying that the Type is not defined. ... more >>
OT - Good Ideas ?
Posted by One Handed Man \( OHM - Terry Burns \) at 10/30/2004 3:52:29 PM
Im looking for inspiration !
I want to put a snippit of code at the top of my company letterhead, any
ideas would be greatfully received ( provided they are constructive ), like
'MyCompany Name
Public Class CompaniesShortName
Private Enum CompanyDirection
Upwards
... more >>
little app to set app focus in explorer
Posted by TM at 10/30/2004 3:25:11 PM
For some reason I have a problem with the application focus deal in windows
explorer getting reset.
I used TweakUI to set the "Prevent applications from stealing focus" to on
so that it flashes the icon in the taskbar.
But this somehow gets reset everytime I reboot.
Is there a little vb... more >>
.NET newbie : control for VB.NET and VC.NET
Posted by Maileen at 10/30/2004 2:57:37 PM
Hi,
When i work with C++ builder i've created my own control (component
visual or not visual).
I would like to do the same under MS VB.NET but i've never done it.
Here are the thing that i would like to do :
1. control has to work under VB.NET and VC.NET. Which technology should
be use... more >>
Calling a method in different aspx.vb code page
Posted by johnf401 at 10/30/2004 2:24:03 PM
I've got a VB .NET Web application that has several frames (for discussion
sake, let's call them Form1.aspx and Form2.aspx). I want to be able to call
a code module in Form2.aspx.vb from code module in Form1.aspx.vb. How do I
format this statement?
I'm not interested in calling client-side ... more >>
Flat button
Posted by Maileen at 10/30/2004 12:15:23 PM
Hi,
I asked few days ago about a flat button control under VB.NET but answer
didn't satisfy me.
I know that a such button existed under VB6 so it should exist under
VB.NET also.
Where can i find this Flat button control ? COM, ActiveX ?
thanks a lot,
Maileen... more >>
Enumerations And Random Numbers
Posted by One Handed Man \( OHM - Terry Burns \) at 10/30/2004 10:05:00 AM
I have a basic question thats been niggling me, but I never found time to
look at it before.
If I have an enumeration such as this
Fiend Enum TravelDirection
North
South
East
West
End Enum
and
Direction = TravelDirection
Now I want to set the... more >>
Plz Tell me
Posted by yoshitha at 10/30/2004 8:02:16 AM
Is it possible to place command buttons in datagrid control in vb.net . If
datagrid contains 10 rows then for each row it must have a command button .
Is there any third party control?
Plz tell me
... more >>
|