all groups > vb.net > october 2005 > threads for saturday october 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
vs2005 beta2 'Code Analysis' returns warnings on generated code
Posted by dbuchanan at 10/22/2005 8:43:46 PM
I built a simple Data Access Layer with the Visual Studio 2005 DataSet
Designer using the wizard. All who I have talked to who use it,
articles I haver read by those who use it speak very highly about the
quality of code that vs2005 creates.
before adding any code of my own I ran "Code Analysi... more >>
How to list users and groups in domain using .NET?
Posted by Mat at 10/22/2005 8:06:16 PM
How to list users and groups in domain using .NET? i want to show it in
combo box..
Thank you
... more >>
can't down cast to base class
Posted by Lore Leunoeg at 10/22/2005 7:51:03 PM
Hello
I derived a class MyControl from the Control class.
Public Class MyControl
Inherits Control
Sub New()
MyBase.New()
End Sub
End Class
Now I want to do a down cast to the base class an I get an error.
Dim x As MyControl = New TextBox //wrong
Why can't... more >>
Create an About window
Posted by GrandpaB at 10/22/2005 7:43:01 PM
I have been searching for two days to learn how to create an About window
that contains information like the program name and version number. As I
remember this was simple in VB6 and is probably also easy in .NET, but
searching on About is fruitless. Can someone give clueless a tip, please.
... more >>
Replacement for MSChart
Posted by Al at 10/22/2005 7:03:12 PM
Hi,
Am just starting to develop an app that be using a graphic report.
I can see how to use MSChart, but that I gather is considered arcane.
Is there a suggested substitute control to replace MSChart?
Thanks,
Al
... more >>
Serializing classes generated by XSD.exe
Posted by farseer at 10/22/2005 6:49:29 PM
Hi,
First, sorry for this long post, but i'd like to explain my problem in
detail...
i have generated some classes from my schema. Classes are generated
for the root (overall document), complexTypes with complexContents
(this is how my types in the xsd are defined), and elements defined as
co... more >>
mouseposition.x or mouseposition.y not really the position
Posted by iwdu15 at 10/22/2005 6:13:02 PM
hi, im trying to egt a picturebox to follow the mousecursor around in a
certain area, but the picturebox isnt where the mouse is...how can i get the
picturebox to be where the mouse cursor is? thanks
--
-iwdu15... more >>
function to match parenthesis '(' and ')'
Posted by Steve Kirsch at 10/22/2005 3:54:00 PM
I need a simple function that can match the number of beginning and ending
parenthesis in an expression. Here's a sample expression:
( ( "john" ) and ( "jane" ) and ( "joe" ) )
Does .NET have something built-in that can accomplish this, or do I have to
write my own parser? I don't want to re... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Show value of string only to sign
Posted by Mrozu at 10/22/2005 3:32:05 PM
Hi
I need function which can show me value of string only TO seted sign.
For example i have string
x="Hello, people"
and i need function which show me string to ",", in this situation
Hello, other example
x="1111 | 22222"
show me only to "|", 1111
Is it possible??
thx
... more >>
Searching in DataGrid
Posted by Mrozu at 10/22/2005 2:51:46 PM
Hi
I have datagrid, with 2 columns Id and Name. I want, then i insert to
datagrid, to column name "d", datagrid move to record where value of
name is "d_____" , when i insert to name "da", move to record where
name value is "da____" etc. Is it possible?? In many programs i can see
it, but i c... more >>
Stripping Characters-Need Help!
Posted by sivaraman55 NO[at]SPAM gmail.com at 10/22/2005 2:40:07 PM
Hi
I have a string that looks like this
C:\A123\DSDWE\dkdkddkdk-123.txt
I want dkdkddkdk and 123 as two different variable values.
How do I best achieve this using VB.NET? I have split this initially
and looped
over.
But I need a best way to do this. Please help.
Thank you
Sco... more >>
Strange KeyDown problem
Posted by ucasesoftware at 10/22/2005 12:20:03 PM
I have a 2 tabpage :
tapPage 1 :
one combobox with a keydown event :
Private Sub cbClients_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles cbClients.KeyDown
If e.KeyValue = System.Windows.Forms.Keys.Return Then
messagebox("Hello")
end if
end sub
i... more >>
splitting a double
Posted by steve at 10/22/2005 11:26:04 AM
hello prof.
What is the best way to split a double so that I can count the value before
the comma and after the comma?
example
123,1234
intbefore = total(before) '123
intafter = total(after) '1234... more >>
Insert into child table fails
Posted by PAUL at 10/22/2005 10:12:36 AM
Hello,
I have 2 access tables (parent and child) related this way:
Parent Child
ID--------->ParentID
I add a new record into the parent table in my code and then add a new
record intop the child table using the parent id as the value for the
ParentID field.
However afte... more >>
VB.NET Screensaver Compression
Posted by (webmaster NO[at]SPAM visionforceweb.com) at 10/22/2005 8:57:36 AM
How do I compress my .x and .png files into my DirectX screensaver? (Remember, a screensaver is only an EXE with a different extension.)
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, sea... more >>
How to write to file " "
Posted by Mrozu at 10/22/2005 6:36:18 AM
Hi
When I try write to file(with StreamWriter) some string, i have some
problem. I can't write text with "". For example i want to wrote
"Hello" . When i make
Dim sw As New System.IO.StreamWriter("C:\text.txt")
sw.write("Hello")
..
..
..
..
In my file is Hello, instead of "Hello". ... more >>
Maximize a Form Size
Posted by Wayne Wengert at 10/22/2005 5:47:50 AM
I want to maximize a form's size when it is loaded. I have been googling and
experimenting with what I found but I cannont seem to find the right syntax.
I have been trying something like the following in the form load event but,
as I said, I can't get the syntax right?
System.Windows.Forms... more >>
HOW CAN I OBTAIN THE PRINTABLE DIMENSIONS OF THE CURRENT PAPER SIZE
Posted by **Developer** at 10/22/2005 5:17:55 AM
THIS IS WHAT I DO:
Dim lG As Graphics = pD.PrinterSettings.CreateMeasurementGraphics()
Dim lHdc As IntPtr = lG.GetHdc()
leftOffsetP = GetDeviceCaps(lHdc, PHYSICALOFFSETX)
topOffsetP = GetDeviceCaps(lHdc, PHYSICALOFFSETY)
printableWidthP = GetDeviceCaps(lHdc, HORZRES) 'Width in pixels,... more >>
Control Mouse Cursor
Posted by Wayne Wengert at 10/22/2005 5:05:33 AM
In VB.NET is there a way to set the mouse cursor to the Wait cursor that
will stay in effect across several forms? For example, I want to set the
cursor to the WaitCursor in formA just before it calls formB and FormB may,
in turn, call another form. I want the WaitCursor until control is retur... more >>
Validating Register Key without installing .Net Pre requisities
Posted by Solution Seeker at 10/22/2005 4:56:03 AM
Hi,
We have an application which is in almost completed stage. We are going
to provide a key for activating the software which is also to be bundled.
We are planned to write the validation in the VB.Net code itself but a
separate simple application. We will install the .Net Pre-req... more >>
Accessing Clients Outlook Express Address Book
Posted by Rohan at 10/22/2005 4:00:02 AM
Hi There,
I want o access address book of OUTLOOK EXPRESS on Web Clients PC so that he
can select addresses from his address book & copy them to our database.
Does Outlook Express support an object model? if yes where do I get help on
it.
If No ? How do I achieve this task?
pls help
... more >>
Convertion of pixels to millimeters
Posted by Ricardo Furtado at 10/22/2005 2:36:02 AM
I'm programming in visual basic .net and i need to determine the size, in
millimeters, of some lines on a picturebox (determined by points). i've been
searching in google but i found nothing except that vb .Net measures things
in pixels (rather than twips, like VB6), and that pixels are very d... more >>
Replacing String Using Regular Expression
Posted by lucky at 10/22/2005 12:12:44 AM
hi,
i got file which contains "----------------" in a line. the line only
contains this data as a saperation. using regular expression i want to
i detify the line contains that data and replace with spaces.
if anyone has any idea,solution or link plz do share with me.
thans in advt.
Luck... more >>
[Winforms] FolderBrowseDialog
Posted by Peter Lykkegaard at 10/22/2005 12:00:00 AM
Hi All
I am looking for a FolderBrowseDialog where I can set a "currentfolder"
eg if currentfolder is c:\program files\myapp\data\ etc
Not just the common standard folder like "my computer", "desktop", "my
documents" etc
Any ideas?
I can do my own from scratch though :/
- Peter
... more >>
How to write a config file to connect database ?
Posted by Agnes at 10/22/2005 12:00:00 AM
In my application, there is an hard code string ,to connect the database.
Can I use config file instead of it ?? Please Help & Thx.
Public Shared CONNECTION_STR_ACCOUNT As String = "workstation
id=AGNES;packet size=4096;user id=sa;data source='hlssql';persist security
info=True;initial
c... more >>
|