all groups > vb.net > april 2005 > threads for thursday april 7
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
sending bytes
Posted by notregister at 4/7/2005 11:43:02 PM
Hi,
i have an array of data, all in bytes. How can i send it to an device which
i have its IP address and Port?? How can i make sure the bytes are send in
sequence, as in byte(0) will send out, then byte(1) will
follow...subsequently...all bytels are send??... more >>
Why aren't changes on form?
Posted by Brett at 4/7/2005 11:28:04 PM
I have a button on a form. I've changed its text to "Exitl". However, when
I run the app, the button text is "Exit". How could that happen? It's the
only form in this app.
I also have the timer on this form set for 2 second intervals. However, the
timer constantly fires. I use to have... more >>
Any similar comment line like ' TODO :
Posted by Prabhudhas Peter at 4/7/2005 11:27:02 PM
Any similar kind of comment line which displayed in task panal like ' TODO :
If we add a comment line as " ' TODO : " . it displays in the Task panal...
Like that, what are all the other comment lines available in VB.Net or where
can I get the list of that...
Thanks in advance...
--
Pe... more >>
Get and Set screen resolution
Posted by Bill Nguyen at 4/7/2005 10:30:55 PM
My VB.Net app requires a minimum monitor resolution of 1024 x 768.
How to get user's screen resolution and set it to the minimum at runtime?
Thanks
Bill
... more >>
How to name a thread?
Posted by Brett at 4/7/2005 10:16:58 PM
In form_load(), I do this
Thread.CurrentThread.Name = "MainThread"
However, in the debugger thread window, I see:
<No Name> appname.Classname.Form1_load Normal 0
Why does it still have <No Name>? Which name is that?
Thanks,
Brett
... more >>
open binary file and search hex string
Posted by Nikos at 4/7/2005 8:41:25 PM
Hi... I would like to search for a hex string (for example: "E903") inside a
binary file...
Although I open the file correctly, how do I search hex values?
Thanks in advance!
Nikos
... more >>
Newbie Question - Please HELP!
Posted by mikew at 4/7/2005 8:02:59 PM
The following code isn't working and I don't understand the error. Would
someone please shed some light on what I'm doing wrong. Thanks.
The error I recieve is:
An unhandled exception of type 'System.NullReferenceException'
occurred....additional information: Object reference not set to ... more >>
Adding Resources at runtime
Posted by Frank Ashley at 4/7/2005 6:45:51 PM
I have found plenty of documentation on how to add resources at design time
and write them out at runtime but is it possible to add resources to an
assembly at runtime.
Thanks
Frank
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problems with the excel find function in vb.net
Posted by pp at 4/7/2005 6:31:32 PM
I have copied this code from Excel VBA, to use in a VB.net application:
Dim r as Excel.Range
r=Cells.Find(What:="02/01/2001 22:00:00", After:=ActiveCell,
LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows,
SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False)
But in VB... more >>
making a datagrid column not scrollable
Posted by Gaurav Goyal via .NET 247 at 4/7/2005 6:29:57 PM
hi,i want to have a fixed column in the datagrid so that it does not move on scrolling. can any one please help me on this. many many thx in advance
--------------------------------
From: Gaurav Goyal
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>... more >>
How to remove if blank in Detail in Crystal Report
Posted by Ray at 4/7/2005 6:02:16 PM
Dear all,
I would like to ask if the crystal Report can remove if blank in Detail
just like Report in Foxpro?
Thanks a lot,
Ray
... more >>
Outlook ContactItem.Display and .NET
Posted by Michael Tissington at 4/7/2005 5:50:51 PM
I have a VB 6 OCX
In .NET I create the object and then pass an EntryID for a CONTACT Item.
Then inside the OCX object I do the following code snip
Set Namespace = Outlook.GetNamespace("MAPI")
Namespace.Logon , , , False
StoreEntryID = Namespace.Folders.Item(OutlookRoot).StoreID
Set Outlook... more >>
Reading color from a text file FromArgb
Posted by Sam at 4/7/2005 5:21:13 PM
Hi All
I'm having problem (which seems to be simple) to convert my color settings
using FromArgb method. The colors are saved to a text file as string, using
ToArgb.ToString method. For example one of my colors has a value of
14822282. This value will then be read when a user opens his input f... more >>
MS Works spreadsheet import into vb.net
Posted by chris huff via .NET 247 at 4/7/2005 4:16:09 PM
I have a primary user who does NOT have ms Excel=2E He runs MS=
Works and uses the spreadsheet program within it=2E
My vb=2Enet application is focused around a price sheet that the=
user updates via their spreadsheet program and then uploads via=
the software, into the DB table=2E
I can... more >>
How to Move Mouse to Control with Focus
Posted by Michael D Murphy at 4/7/2005 4:14:26 PM
Hi,
I have win app in which I need to move the mouse to the textbox field that
has the focus and then hide the mouse pointer.
Any tips on how to do these two things would be appreciated.
Thanks,
Michael Murphy
... more >>
WEB pages - source code
Posted by Peter at 4/7/2005 4:07:52 PM
Hi.
Know anybody some good webpages where can I find some goog Source codes.
I know www.planet-source-code.com
www.windowsforms.com and www.codeproject.com.
Some another?
Thanks.
... more >>
dataset inheritance
Posted by pmcguire at 4/7/2005 2:43:03 PM
I have designed a user control (UserControl0) from which several other user
controls (ChildUserControl(n)) inherit. Each ChildUserControl(n) has its own
strongly typed dataset. I would like to include several (overridable)
methods in UserControl(0) that act on the datasets (nothing exotic, o... more >>
Moving a windows form from a windows app to a class library.
Posted by UJ at 4/7/2005 2:33:30 PM
I have a class that makes reference to a windows form. I am trying to make
that class a class library and when I include the window file, it says that
system.windows.form.form is not defined.
How can I make a library the includes a window?
TIA.
Jeffrey.
... more >>
Writing TIF to database
Posted by Bruce D at 4/7/2005 2:24:04 PM
I have two methods to write to the database. The first one saves the file
to disk the re-reads it and then inserts it. This way works...at least I'm
able to read the image when I retrieve it.
The second way (the way I want to do it) does not work...it saves it...but I
can't read the image when... more >>
UserControl DataBinding
Posted by Nathan Carroll at 4/7/2005 1:39:44 PM
I have a user control that functions like a combo box. The problem I have
with it is when I go to getChanges from the datatable it always reports rows
as being changed. I bind to this SelectedValue by
me.DataBindings.Add(New Binding("SelectedValue", dataset,
"tablename.fieldname")) . What i... more >>
Object reference not set to an instance of an object.
Posted by Hennie at 4/7/2005 1:39:20 PM
I Get the following error all of a sudden:
I do not know what is wrong or where to start looking.
I added the Debug="true" directive at the top of the page, but it does not
help at all.
What can the problem be?
This is the complet error message:
Server Error in '/MailListManager' Applicati... more >>
How to access aspx page thru the menu control only?
Posted by ValK at 4/7/2005 1:19:02 PM
Hello,
I'm using a skmMenu control on my asp.net pages. When user login to the
application, I display menu items based on user security roles. So regular
user will not see 'Admin' menu items, but if you know url for admin page then
user can access easily. How can I make all users navigate onl... more >>
XMLReader and VB.Net
Posted by Michael at 4/7/2005 11:55:01 AM
Hi All,
I need a few suggestions. I have the following XML segment:
<LookUp>
<ControlType>CheckBoxGroup</ControlType>
<DBField>LastMedDate</DBField>
<ControlName>cmbGoal1</ControlName>
<Values VALUE="0" BookMark="Goal1Progress"/>
<Values VALUE="1" BookMark="Goal1NoProgress"/>
<Values V... more >>
Howto: use mutliple languages C++ in VB.net
Posted by SimonSX at 4/7/2005 11:54:34 AM
I need to program some of a VB .net application in C++.
How do I incorparate it into VB
... more >>
i can't get number...
Posted by Supra at 4/7/2005 11:46:39 AM
i can't get number to displaying in row..i got junk character ....
Dim sdBrush3 As SolidBrush = New SolidBrush(Color.Black)
Dim myFont3 As Font = New Font(familyName:="Verdana",
emSize:=30, style:=FontStyle.Bold, unit:=GraphicsUnit.Pixel)
For i = 1 To 10
For j =... more >>
How to use Regex to Parse this String
Posted by Michael D Murphy at 4/7/2005 11:39:43 AM
Hi,
I would like to know how to use Regular Expressions to iteratively return
and print the items between the colons in the following string to say the
console..
Any help would be appreciated.
strInputString = "2:Blue:Green:1,2"
Regards,
Michael Murphy
... more >>
Reading Output from Shell Command
Posted by Kevin Mansel via .NET 247 at 4/7/2005 11:36:34 AM
Ok, basically this is my problem=2E I'm building a console app to=
call a dos program=2E So i'm using the Shell command to call the=
program, now depending on what happens, I want to read the=
output that this program returns=2E I'm just missing the steps=
here=2E I know that I can set th... more >>
Dataview Find method, case insensitive?
Posted by Tim Frawley at 4/7/2005 11:30:54 AM
I am using the Find method on a dataview. What I have found is that
the method appears to be case insensitive. I have tested this and it
appears to be true.
Is there a way to specify case sensitivity for this method?
... more >>
translation from c#
Posted by ME at 4/7/2005 11:24:27 AM
Hello,
I need some help translating this code to vb.net
..........
private dotnetWinpCap.ReceivePacket rcvPack=null;
..........
if (rcvPack==null)
{
rcvPack=new dotnetWinpCap.ReceivePacket(this.ReceivePacket);
wpcap.OnReceivePacket+=rcvPack;
}
Thanks for the help.
... more >>
How to convert hex to string?
Posted by Mika M at 4/7/2005 10:56:47 AM
Hi!
I've made little code to convert string into hex string...
Public ReadOnly Property ToHexString(ByVal text As String) As String
Get
Dim arrBytes As Integer() = CharsToBytes(text)
Dim sb As StringBuilder = New StringBuilder
For i As Integer = 0 To arrBytes.Length - 1... more >>
Type comparisons
Posted by Michael Rich at 4/7/2005 10:53:46 AM
I am parsing controls in vb.net and I need to detect if a control is of a
particular type - as follows:
if control.gettype = system.web.ui.htmlconrols.htmlform then
' do something here
end if
I have used TypeOf, Is, and all kinds of other things I could think of, but
the compiler keeps... more >>
Update for VS .NET 2003?
Posted by Atley at 4/7/2005 10:48:36 AM
I only have:
Microsoft Excel 5.0 Object Library (VB.net)
and
Microsoft Excel 11.0 Object Library (Office 2003)
avaliable to me... is there a service pack or an update that would give me
the 8.0 OL? that would be ideal.
I have Visual Studio .net 2003 Enterprise Arch.
Thanks for the fee... more >>
ASP.net speech
Posted by pmclinn at 4/7/2005 10:36:25 AM
I remember using a text to speech plugin in vb6. Would it be possible
to imbed this com into an asp page. The page will be on a company
intranet. I'm looking to pass the plugin dynamic text and read back a
sysnopsis of the page based on the variable provided at page load time.
Any thoughts?
... more >>
Compiler errors due to temp file inconsistencies ??
Posted by Samuel R. Neff at 4/7/2005 10:09:39 AM
Within the past few weeks we've been getting a lot of compiler errors
in two classes when no errors actually exist. The error always
reports as
Name '_stepResizeRelocator' is not declared.
Where _stepResizeRelocator is an instance (class level) variable.
There is no compiler error on the... more >>
imagelist and treeview
Posted by Sam at 4/7/2005 9:38:53 AM
Hi,
I guess I didn't understand properly how ImageIndex works for treeview
Hereis my code:
For iCntr As Integer = 0 To rNodeList.Count - 1
If Not (rNodeListNew.Contains(rNodeList.Item(iCntr))) Then
tvRelations.Nodes(iCntr).ImageIndex = 0
End If
Next
I've got an image... more >>
newbie question regarding repeater control
Posted by Bruce Dumes at 4/7/2005 9:30:45 AM
Hello -
I've got a project where I need to create a table like:
| text1 | text 2 | dropdownlist | text input box |
The dropdownlist will be populated differently, or could be, for each row.
Is the repeater control the right one to use for this? If so, how do
you use a dropdownl... more >>
How to get assembly file info?
Posted by Brett at 4/7/2005 9:16:40 AM
Using Reflector,
URL:http://www.aisto.com/roeder/dotnet/Download.aspx?File=Reflector.zip, I
see in System.Reflection there is a class called AssemblyTitleAttribute. It
has a read only property named Title. I do the following to get my
application name.
Private Sub Form1_Load(ByVal sende... more >>
Help with some code?
Posted by Tmuld at 4/7/2005 8:49:31 AM
Hello,
I have designed a simple web page that takes input from a user(from a
textbox), then searches for that input in a database, when the Search
button is clicked. Assuming the connection is good - help with the
error, please?
Sqlconnection1 was dragged and dropped on the the design wind... more >>
for loop ending condition
Posted by Ben R. at 4/7/2005 8:47:04 AM
In an article I was reading
(http://www.ftponline.com/vsm/2005_06/magazine/columns/desktopdeveloper/),
I read the following:
"The ending condition of a VB.NET for loop is evaluated only once, while the
C# for loop ending condition is evaluated on every iteration."
Is this accurate? I do... more >>
Optimization
Posted by SirPyros at 4/7/2005 8:15:57 AM
I'm building a shopping cart solution. In terms of scalability and
perfomance for the server, which is better, only storing a small
variable in session state to denote a cart and load information from
the database and calculate values for the cart every time they need to
be shown, or save item i... more >>
DataReader in Excel (Better Post than the last)
Posted by brix_zx2 at 4/7/2005 7:41:02 AM
I have an Excel Spreadsheet I want to import the records (5 fields) into an
access 2000 DB. Went on the net looking and found stuff for SQL (which I
don't know a thing about) and now I'm confused. (Using VB.NET 2k3) Any help
would be appreciated.
Here is the code I have.... It doesn't work ... more >>
Remove items from listbox
Posted by Bill Nguyen at 4/7/2005 7:18:37 AM
I use the following example (from another post) and it seemed to work fine.
However, when I add the syntax to remove the selected item from the
senderbox, I got error.
senderBox.Items.RemoveAt(senderbox.selectedIndex)
I was told that I need to copy selecteditems to an array and run the For
... more >>
Date validation / verification
Posted by DSuss at 4/7/2005 6:47:03 AM
I am trying to create an input box in vb.net that will verify if an
expiration date on a credit card is valid or not. Can anyone help me convert
a string of MM/YY to a month and year format and verify against NOW( )? Or
does anyone have another suggestion how to accomplish this?
Thanks,... more >>
Prevent User Entering New Values in ComboBox
Posted by Wayne Wengert at 4/7/2005 6:36:14 AM
I want to prevent the user from keying in a new value as a combo box value.
I want the user restricted to choosing selections from the "Collection" I've
established. I can't find the property to accomplish this?
Wayne
... more >>
expand a node of a treeview programmatically
Posted by Sam at 4/7/2005 6:31:36 AM
Hi,
I'd like to select a node in my code and expand that node.
How can I do the selection ? How can I expand it once I've selected the
node ?
Thx
... more >>
Help Please
Posted by Tuan at 4/7/2005 6:29:43 AM
Hello all,
I am a new to VB. I already write the small program but it only work when I
log in as administrator if I log in as user the program will not load. I
see some program when I install it asks " Any One who uses this computer or
for myself only." I would appreciate so much if any of... more >>
Is synclock needed in DLL?
Posted by Brett at 4/7/2005 6:28:45 AM
Say I have a DLL with a method that does a file write. I call this DLL from
an application and pass the file path and name to the FileWrite() method
inside the DLL. The application is multi threaded so that two or more
threads may be trying to write to the file at once. If one thread is
w... more >>
cast sortedlist value as hashtable
Posted by fizzy at 4/7/2005 5:36:59 AM
i have a sortedlist.
its values are hashtables.
i need to access one of these hashtables:
using option strict without a cast, i got a late binding error :
mysortedlist("key")
when i try to cast it:
directcast(mysortedlist("key"), "hashtable") or
ctype(mysortedlist("key"),"hashtable"... more >>
Carriage return in label
Posted by Nathan at 4/7/2005 5:35:26 AM
Is there a way to put a carriage return between tex in a label? Neither
ControlChars.CR and vbCR seem to work.
Thanks,
Nathan
... more >>
getting row index of dataset
Posted by Sam at 4/7/2005 4:08:10 AM
Hi,
Here is my code :
For Each row As DataRow In ds.Tables(0).Rows
next
How can I get the index of the row being processed ?
Thx
... more >>
vb.net crosshair cursor...
Posted by prashjoshi NO[at]SPAM gmail.com at 4/7/2005 3:13:02 AM
hi,
i have the following code for drawing a crosshair cursor & it works:
'Custom cursor
'Declare bitmap
Dim bm As New Bitmap(64, 64)
'Declare graphics
Dim g As Graphics = Graphics.FromImage(bm)
'Clear the graphics
g.Clear(Color.Tran... more >>
2 easy questions
Posted by patang at 4/7/2005 12:57:05 AM
Question 1
I have two forms, let say Form1 and Form2. There is datetimepicker control
on Form2. In the Load Event of Form2 I have set the default value of
datetimepicker control to NOW. So as expected when I open the form the
default value is set to today's date. Now I sometimes also call Fo... more >>
conversion issue
Posted by LS at 4/7/2005 12:00:00 AM
I use winpcap in dotnet to capture packets from the wire.
I have them in a byte() array. (variable rawbytes())
How do I convert them to a readable string?
I have for example following values
0,208,65,11,96,147,0,6,91,184, ...
I tried
For i = 0 To Packethdr.Caplength - 1
ch = Syste... more >>
Invalid Property Value Error
Posted by Alex at 4/7/2005 12:00:00 AM
Hi, what's happened to my project: each time I try to change any property of
a control, I get an error message: "Invalid property value" and in details:
"Object reference not set to an instance of an object. "
Could it happened after I'd moved the project to a different location?
Please, help.... more >>
|