all groups > vb.net > june 2004 > threads for friday june 11
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
Convert String to COlor
Posted by jcrouse at 6/11/2004 11:56:03 PM
I decided to start a new thread. I have output in xml file format. It looks
like this:
<P1JoyUp>
<Top>326</Top>
<Left>54</Left>
<Height>23</Height>
<Width>100</Width>
<Visible>True</Visible>
<ForeColor>Color [White]</ForeColor>
<BackColor>Color [Transparent]</B... more >>
How to create an object from a string name of class
Posted by Nguyen Xuan Hoang at 6/11/2004 11:47:44 PM
In VB6, There is CallByName function, in .NET there are =
Activator.CreateInstance but it requires a Type instead of a string name =
of type.
Function Activator.CreateInstance(Type) as Object
There is also CreateInstance(AssemblyName as string,ObjectTypeName as =
string) but it returns Obje... more >>
Submit form in ASP.net
Posted by Miguel Dias Moura at 6/11/2004 10:57:03 PM
Hello,
i have a form inserted in a multipage. This multipage has 6 panels.
When i finally submit the form a new record in the database is created but
the record is allways empty.
This is driving me crazy.
Please, if you can look to my file just send me an email to my email
address:
... more >>
Converting String to Color
Posted by jcrouse at 6/11/2004 8:56:01 PM
I decided to start a new thread. I have output in xml file format. It looks like this:
<P1JoyUp>
<Top>326</Top>
<Left>54</Left>
<Height>23</Height>
<Width>100</Width>
<Visible>True</Visible>
<ForeColor>Color [White]</ForeColor>
<BackColor>Color [Transparent]</Ba... more >>
GroupBox anchor
Posted by Marina Louki at 6/11/2004 8:48:36 PM
Hello!
I have a form with several groupboxes. I use the left-right-top-bottom =
anchor in all of them. My problem is that when I change the screen =
resolution the groupboxes overlap one another. It looks like the left =
groupbox doesnt know where the right one starts, so it covers it. Any =
... more >>
escape character in oledb sql command
Posted by Stijn Vanpoucke at 6/11/2004 5:39:58 PM
Hi,
I've made a program with an access database. In my sql insert command I need
to use escape characters to insert text strings but te problem is that I
want to use escape chars in my text strings themselves to.
strSQL = "INSERT INTO tblKlanten (Naam, Voornaam, Adres, Postnummer,
Telefoon, F... more >>
Functions
Posted by Microsoft at 6/11/2004 5:31:42 PM
I know how to call a finction and pass a parameter to it, but I don;t
understand how to take the resulting output of the function and use it from
the subroutine that called the function
Something like
I have a number
I send the number to a fumction that divides it by 2
I then can refer to ... more >>
VB.Net vs VB6 performance
Posted by David Schwartz at 6/11/2004 4:45:31 PM
For those of you who have used both VB6 and VB.Net, how would you say
performance compares (specifically for Windows Forms apps)? I have found
that forms display much more slowly in VB.Net. I'm wondering has anyone had
a problem with this, where users and/or managers complain about the slower
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
very slow when updating dataset using AcceptChanges
Posted by jaYPee at 6/11/2004 3:57:23 PM
does anyone experienced slowness when updating a dataset using
AcceptChanges?
when calling this code it takes many seconds to update the database
SqlDataAdapter1.Update(DsStudentCourse1)
DsStudentCourse1.AcceptChanges()
i'm also wondering because w/ out AcceptChanges the data is still sav... more >>
VB automaticallying casting?
Posted by Microsoft at 6/11/2004 3:51:22 PM
I get a casting error when I try to do this.. I would like the variable to
stay a string
Dim userinfo As String = "5.0.2456.4343"
Dim buserinfo As String
buserinfo = userinfo.Substring(userinfo - 8)
... more >>
Inconsistent file version format
Posted by Microsoft at 6/11/2004 3:43:57 PM
I need to extract the file version from a file. I'll paste the code below.
The problem is that VB returns a value that looks liks this "5.00.2195.6824"
and windows returns a value that looks like this "5.0.2195.6824".. It stops
the comparisons that I do in the script since its always not a match.... more >>
centereing image in MDIClient region
Posted by Brian Henry at 6/11/2004 3:43:10 PM
I can get an image into the MDI client region with the following code but it
tiles, how can i make it center only? thanks
Dim c As Control
For Each c In Me.Controls
If c.GetType.Name = "MdiClient" Then
Dim b As Drawing.Bitmap
b = New
Drawing.Bitmap(GetType(frmMainWindow).Assembly.GetManifes... more >>
Rich text in a label
Posted by VJ at 6/11/2004 3:37:51 PM
Is there a way to paint,.. assign.. or any way to put Rich Text in a label.
VJ
... more >>
Filtering items for a list box
Posted by John Wildes at 6/11/2004 2:31:12 PM
Hello
I have a small program that I've created to generate accounting
statements out of our policy managment system.
The first part of the process is selecting the customer to create the
statement for. In this process the application queries the database,
returns a dataset of just custo... more >>
Can I use VB to tell which program is causing the MODEM to dial
Posted by Just Me at 6/11/2004 1:54:52 PM
Sometimes I hear the MODEM dialing and I don't know why.
Is there some way I can use VB to tell which program is causing it?
I'm on a LAN so it may be a remote program.
Thanks
... more >>
Search command in vb.net
Posted by Yemi Alade via .NET 247 at 6/11/2004 1:42:50 PM
(Type your message here)
How do you write the code in vb.net to perform a search in a database?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSearch.Click
End Sub
End Class
--------------------------------
From: Yemi Alade
-----------... more >>
Using Multiline on a text box
Posted by Brian L at 6/11/2004 12:43:22 PM
How do I fill a text box with multiply lines of text from
code?... more >>
How to find a record in a dataset?
Posted by Rom at 6/11/2004 12:13:01 PM
Hi,
How can I find a record in a dataset. I have 1 textbox name txtfind.
my sql statement should be like this.."select * from employees where emp_id= txtfind.text" then if found it should bind the fields to the corresponding textboxes on the form.... more >>
Remove Handler.. & Add Handler...
Posted by VJ at 6/11/2004 12:07:24 PM
Here is snippet of my problem
IF Condition1 then
RemoveHandler lblCntrl.Click, AddressOf lbl_ShowItem
AddHandler lblCntrl.Click, AddressOf lbl_ShowMaker2
elseif Condition2 then
AddHandler lblCntrl.Click, AddressOf lbl_ShowItem
RemoveHandler lbl... more >>
Percent TypeConverter
Posted by ljlevend at 6/11/2004 11:52:01 AM
Is there a TypeConverter that converts Doubles to percent values in a PropertyGrid? The Windows.Forms.Form.Opacity property seems to use the TypeConverter that I want.
Thank you,
Lance... more >>
Microsoft Script Control
Posted by ..::M:O:R:B:I:L:L:O::.. at 6/11/2004 11:43:13 AM
hi to all ...
i need to execute a string script in my vb.net project, Is there a way to do
it ?
the Ms Script Control is a com abject.. is there one for dot net?
thanks
Reguards
--
...::M:O:R:B:I:L:L:O::..
... more >>
Set Form Location Causes Resize
Posted by Cablewizard at 6/11/2004 11:26:01 AM
Ok, I have kind of a weird issue I haven't seen before.
I am attempting to set the location of a new form to pop up in the same location as another.
I have code similar to the following:
Dim nextForm as New frmWizard2
nextForm.Location = lastFormLocation '<- Problem line
nextForm.ShowDia... more >>
Achieveing single NT user id access to dll in GAC
Posted by Sivan Babu at 6/11/2004 11:15:01 AM
Can i achieve this feature in VB.NET? I login into my machine using NT user id mydomain\sbabu and pwd babu to run a dll installed in the GAC. But internally when the dll is connecting to the database with a connection string, the user name mydomain\admin and pwd admin1 should be used to access the... more >>
(re)Adding the Crystal Report 'Line Control' to the Toolbox
Posted by Troy at 6/11/2004 10:47:01 AM
ok, I fat-fingered the Line control in the Crystal Reports tab of the toolbox and now its gone. I can still insert lines with a right-click, but where is the Line control?
I found the LineObjectInstance in the object browser, inside .Shared...ViewerObjectModel but can't find any control in the c... more >>
Purging the event queue?
Posted by Tyson Ackland at 6/11/2004 10:04:01 AM
Is it possible, while dealing with an event, to ignore/delete any other
event that might come along while I'm busy? My scenario is a mouse click on
a picturebox control. I perform an action on the control in response to the
click but I find that if the user clicks madly away, all preceeding cli... more >>
System.ArithmeticException in VStudio 2003
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 6/11/2004 9:42:47 AM
Hi,
I'm using Windows XP SP1 with Visual Studio 2003. I add a
blank form to a project, then I add a default control of
any type (label, button, etc) to that form. When I build
and run the project, it gets
a 'System.ArithmeticException' error at the point where
it's adding the control to... more >>
Format date
Posted by simon at 6/11/2004 9:34:18 AM
I have date="11.6.2004"(today) and I would like to format it as: 20040611
How can I do that?
Thank you,
Simon
... more >>
How to Forbid user to add new rows in datagrid?
Posted by Lars Netzel at 6/11/2004 9:30:31 AM
I have a grid that I want users to be able to chaneg values in in all cells
but NOT to add or delete Rows.
is this possible?
Best Regards
/Lars Netzel
... more >>
OpenFile and SaveFileDialog
Posted by Joachim at 6/11/2004 9:14:01 AM
There are 3 ComboBox's in the Dialogs : Look in (Directory path), File Name and File Type.
Can set these ComboBox's enabled ? So the user can not change them.
Thanks,
Joachim
... more >>
test please delete it
Posted by test at 6/11/2004 8:55:40 AM
test please delete it... more >>
telling if compiled in debug
Posted by Brian Henry at 6/11/2004 8:27:19 AM
In C++ you can tell if a program iscompiled as debug or release with special
tags... if the compiler is compileing in release mode it will include the
code in the release tag only and in debug mode the debug code only... so you
can have something like this
void main(void)
{
#RELEASE
... more >>
MSCOMM Troubles
Posted by pete_watts NO[at]SPAM hotmail.com at 6/11/2004 8:02:59 AM
Hello,
Have just started using VB.Net and have been trying to work on some
updates to a very old piece of code. Currently we send messages via
the serial port in the following formate
i176.8005 <CR>
i176.800555.44 <CR>
o176.8005.222 <CR>
The <CR> showing the end of a message arriving on... more >>
Databinding problem
Posted by Eric Fleet at 6/11/2004 7:39:01 AM
I have several controls that I want to bind to properties in a class. The code I use to bind is:
txtAddressLine1.DataBindings.Add(New Binding("text", ebtrPlanDetails, "CompanyAddress1"))
Whenever I change the text of the textbox, and try to navigate to another control on the form, it doesn't w... more >>
Read from Excel
Posted by Tommy Malone at 6/11/2004 7:21:49 AM
Would someone mind please posting sample code for reading data from a column
in Excel? And/or providing any recommended reading on the subject?
Thanks!
... more >>
checkbox greyed out in datagrid....
Posted by magnus NO[at]SPAM rad-o-resultat-dot-se.no-spam.invalid at 6/11/2004 7:21:40 AM
Hi
I have created a windows form that hold a datagrid, that datagrid gets
it values from a stored procedure. My problem is that I have added a
checkbox to the datagrid and applied some style to the datagrid. But
the checkbox is always greyed out. Why is that, and what am I doing
wrong?
H... more >>
Database access in Standard Edition
Posted by Stephen Bowyer at 6/11/2004 7:21:05 AM
I'm not clear if the Standard edition can do this. I want to build a front
end for an Access 2000 database.
Also does SE have Crystal reports or something similar?
Thanks
Steve.
... more >>
reading a file's details
Posted by bbdobuddy at 6/11/2004 6:01:01 AM
I am reading .wma's off of a file and I was wondering how I can figure out what the genre of the .wma file is so I can put it in the right desired folder?... more >>
WallPaper
Posted by y1799 NO[at]SPAM yahoo.com at 6/11/2004 6:00:02 AM
Hi ,
I would like to get access to the Desktop object of run procedure
Refresh (of course if such exists:) ) - at least I can do it my PC
when I click right mouse's botton on the Desktop.
The problem is : the Wallpaper file changes by program from time to
time, but not refreshed. I am going... more >>
Calling procedure
Posted by Joachim at 6/11/2004 5:50:01 AM
I know that I can call a procedure of Form1 from Form2 ?
But I don't know how, because I am a beginner.
Can anybody tell me please ?
Thanks in advance.
... more >>
pb: event word addin button.click "File" Menu
Posted by maitrepoy at 6/11/2004 3:22:01 AM
hello
I have to create a small addin which works on Powerpoint, Word, Outlook, and Excel on Office 2000, XP, and 2003.
This addin consists in adding 2 new Buttons in the "File" Menu of office. This is properly done, but the events which should be triggered with the button.click method are not ... more >>
Dynamic creation of object during runtime
Posted by murali pannala via .NET 247 at 6/11/2004 2:30:02 AM
(Type your message here)
--------------------------------
From: murali pannala
i would want to create an object dynamically. i.e i hold my class name in a variable only.and by passing this variable can i create the object of the type (value which the variable holds)
eg :
dim str as st... more >>
Removing Event Handlers Question - Rephrased
Posted by Charles Law at 6/11/2004 1:01:00 AM
I think I asked the wrong question last time, so I am starting a separate
post to distinguish them.
Take five classes: ClassA and ClassW...Z
ClassA raises five events: Event1...5
ClassW...Z handle some combination of these events. For example
ClassW handles Event1, 2 and 5
Clas... more >>
|