all groups > vb.net > march 2004 > threads for monday march 8
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
Subclassed Listview : Disable spliter from column header
Posted by jax NO[at]SPAM xmsg.com at 3/8/2004 11:51:33 PM
Hi all,
I have subclassed a listview control in vb.net.
I have added sort by header click, disable double click resize and
disable column resize functionality using various windows messages and
API Calls. All which work fine.
How do I disable the cursor changing to a splitter when the us... more >>
how can i insert a data to dataset
Posted by bafidi at 3/8/2004 11:16:07 PM
i call gecicidoldur and i want to add StokIDile_MinnoDS records to MinnogeciciDS datase
but i cant
dim StokIDile_MinnoDS As New DataSe
Public Sub StokIDile_Minno(
StokIDile_MinnoDA.SelectCommand.Parameters.Item("@StokID").Value = m_stokI
StokIDile_MinnoDA.Fill(StokIDile... more >>
where i can use dataatapter dataset and where only command
Posted by bafidi at 3/8/2004 10:51:06 PM
hello i dont know where to use dataadapte
for where i use dataadapter and datset
and for where do i use only command
... more >>
### Useless people here ###
Posted by BuzzLight at 3/8/2004 10:47:06 PM
Right this is a rant, I have asked a question and nobody answered... well thats ok.. so i tried again, then somoen picked it up for having a bad header... so i changed the header.. now someone picks it up for a repeat... why dont u bastards stick ur comments up ur ass... If u can't answer it dont ma... more >>
Dock WIndows/Panel
Posted by my_melody83 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/8/2004 10:40:40 PM
Hi..
i am building an window base application using vb.net... i would like
to implement dock panel.. which is like the properties window in
vb.Net.... how do i implement another window/panel do that it is
dockable, resizeable, movable and hideable????
thankz :lol:[/quote]
Posted Via Usen... more >>
Data Structure implement
Posted by dx at 3/8/2004 10:36:48 PM
Perhaps it is not the correct place to ask this question (if any, please
tell me where is the correct place to ask this question)
1 -- 2 , 4
2 -- 1 , 5
3 -- 4 , 5
4 -- 1 , 3
5 -- 2 , 3
The number 1 to 5 above represents five different nodes, the number besides
means the possible nex... more >>
how to update data from textboxes?
Posted by jaYPee at 3/8/2004 10:23:47 PM
i have created an sqldataadapter using a wizard and i can save it
using datagrid control but don't know how to save the data from
textbox. because i have a master detail form and the master form is
populated w/ textboxes while the detail form is populated w/ datagrid
control.
in my sqldataada... more >>
Possible to "click" a button by code ?
Posted by Tee at 3/8/2004 10:02:36 PM
Hi,
Is it possible to click a button by code ?
I want it to be as simple as it can, eg : button1.click() ... any idea ?
assuming I don't know which sub will be fired when the button is click.
or is there any way to check the handler that the button have so we direct
call it ?
Thanks,
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DataSet save in ASP.Net
Posted by Lisa at 3/8/2004 10:01:05 PM
I've inherited an ASP.Net application and I'm new to .Net. I have a page which has a dataset declared at the page level. The dataset is populated within the Page_Load if Not Postback. Do I need to save the data set to a session variable? I want to use the contents of the dataset in the click eve... more >>
### How do I lock a file? ###
Posted by BuzzLight at 3/8/2004 9:47:35 PM
Hello, I would like my program to somehow lock a file on the file system ... say c:\myfile.mdb... so when the program is running the file is un-moveable, but NOT un-editable, This is to prevent users from moving the file during program execution.. which would lead to alot of errors in the program if... more >>
how to do trunc() in rowfilter ?
Posted by anandsaha NO[at]SPAM rediffmail.com at 3/8/2004 9:20:21 PM
hi,
what keyword should, to be assigned to the 'dataview.rowfilter'
property, to replecate the keywords like 'trunc' and to_date' of
any sql query ? i have a datetime column and i need to take only the
date portion for comparing to a user entered date.
anand
--... more >>
FindControl only for ASP.NET ?
Posted by Tee at 3/8/2004 8:48:26 PM
Hi,
I have 3 Button, Button1, Button2, and Button3.
I have a variable i which will have the value of 1, 2, or 3.
then I need to code like this
(Button & i).visible = false
Anyone know how to do it ?
in ASP.NET, I can use findcontrol("button" & i).visible = false, but in
VB.NET, is... more >>
### I need a solution please... Thankyou ###
Posted by BuzzLight at 3/8/2004 8:38:33 PM
Hello, I would like my program to somehow lock a file on the file system ... say c:\myfile.mdb... so when the program is running the file is un-moveable, but NOT un-editable, This is to prevent users from moving the file during program execution.. which would lead to alot of errors in the program if... more >>
XML Dataset Schema and Required Fields
Posted by Matthew Hood at 3/8/2004 8:23:07 PM
I'm just starting to learn VB.NET (comming from VB6) and I'm having a little
difficulty with datasets.
I have created an XML Schema Dataset by dragging and dropping MS Access
tables onto the design view.
In Access, I designed the fields to have 1 primary Key field (GUID) and
several "Required... more >>
- RichTextBox- Selecting partial lines
Posted by annpluscal NO[at]SPAM aol.com at 3/8/2004 8:12:28 PM
Anyone know how to select an arbituary rectangular chunk of a RichTextBox.
I mean I don't want to sellect entire lines but rather be able to grab, for
example, one column of a table.
I wouldn't mind it it took a lot of coding. For exampe, copy the text into
another box and delete evertthing ... more >>
different colours in listbox
Posted by Snuyt at 3/8/2004 7:06:47 PM
Hallo,
How can I use different fontcolors in a listbox ?
e.g. listitem1 : red
listitem2 : green
listitem3 : blue
...
thanks,
Snuyt... more >>
GetObject ( file ), is it possible to "cast" a byte array to an object?
Posted by Robin Tucker at 3/8/2004 6:16:29 PM
This may sound daft, so please forgive me for asking, but is it possible
that given an array of bytes, which represents an object loaded from disk,
is it possible to cast the bytes to an interface? For example, at present,
I am extracting data blobs from my database and writing them to disk. Th... more >>
Datagrid binding question
Posted by gilmaevski NO[at]SPAM mail.ru at 3/8/2004 6:16:10 PM
Background:
I have three classes. The Person class, the Address class and the
People class. Person and Address classes are exactly what they sound
like. The People class is a class derived from CollectionBase and is a
collection of Person objects.
Finally, each Person object has an Address.... more >>
trapping enter key on Windows form (send keys option)
Posted by Sanjeev K B at 3/8/2004 5:51:04 PM
Hi,
I am working on a windows form which facilitates Data Entry operation. The
form contains a variety of controls including textboxes, comboboxes,
RichTextBoxes and Datagrid.
I am looking for a solution which would help the user in moving around the
form when he presses the enter button (tab... more >>
picture tiles
Posted by EMW at 3/8/2004 4:11:09 PM
Hi,
With WinXP it is possible to show tiles of pictures that are in a folder.
Is there a control for this or do I have to use picturecontrols and make one
for each picture during runtime?
rg,
Eric
... more >>
Data set question
Posted by EMW at 3/8/2004 4:08:16 PM
I have two datasets:
dataset1 is filled with the contents of the database, which is closed
afterwards, and then the dataset is changed.
dataset2 is filled with the contents of the database.
Now I want to update dataset2 with the changes in dataset1.
I've tried : dataset2 = dataset1.copy
... more >>
Determine if file is busy?
Posted by George Yefchak at 3/8/2004 4:01:01 PM
Hi,
What's the correct System.IO - or - whatever call to determine if an
existing file happens to be open for writing by another application?
Thanks,
--George
* George Yefchak
* Phone: 408-970-0419
* Cell: 408-981-5521
* E-mail: george@yefchak.com
* Web: www.yefchak.com
... more >>
String -> Guid
Posted by Mike Lambert at 3/8/2004 3:46:32 PM
How do you convert a string that holds a valid guid value to a variable of
guid type.
ex.
dim sTest as string
dim gTest as guid
sTest="4D36E96A-E325-11CE-BFC1-08002BE10318" 'valid guid
gTest=sTest 'Error on this line. What would be the proper function to
call..
Thanks Mike.
... more >>
Quick Textbox help
Posted by Bryan Dickerson at 3/8/2004 3:37:47 PM
I have been told several times that the way I handle entering text and then
the <Enter> key in my programs is the wrong way. The current way I do it is
inherited from ancient times, but it works. When the user enters the text
he wants and then presses <Enter>, I have a WithEvents object that ch... more >>
Backround color
Posted by Rado at 3/8/2004 2:31:48 PM
Hello.
I have one quastion.
In Picturebox I can select many colors for picture box backround, but I
would lite to know If I can make picturebox, which have backround with 2
colors: transition from one color to second color.
Thanks.
... more >>
static and shared
Posted by Dori at 3/8/2004 2:19:07 PM
Hey Guys,
Is there any difference between static decleration in csharp to vb.net
shared decleration ?
10x
Dori
... more >>
How do I refresh text on button on toolbar?
Posted by nsteele84 NO[at]SPAM hotmail.com at 3/8/2004 2:16:01 PM
HI
I need to change the text property of a button on a toolbar at
runtime. The text property is changing but it is not displaying the
new text on the button. I tried toolbar.refresh but this made no
difference. Is there a way to refresh a button so the new text will
show?
Thanks
Nick St... more >>
this time
Posted by Snuyt at 3/8/2004 2:10:21 PM
Hallo,
How can I make a datetime object that contains the current clocktime ?
Thanks
Snuyt... more >>
Merging Menus?
Posted by CJ Taylor at 3/8/2004 2:05:29 PM
Curious, how does a menu merge work?
docs say that the CLR takes care of it all, but I have a menu Item, that is
the same name and text as another one in a child form (Using MDI).
however, when I merge them, I get two separate menu item entries. I have
the MergeType = MergeItems set on the ... more >>
wierd texbox and tab control issue
Posted by thorung NO[at]SPAM mailcity.com at 3/8/2004 1:23:35 PM
The Situation:
I've got a form with two tab pages: tab1 and tab2.
tab1 has a button (btn1).
tab2 has a text box (txt1) which is bound to a dataset column.
Desired Behavior:
When the user clicks btn1, if txt1 contains a value, then I would like
to make a sub call. If the value is blan... more >>
storing a listview with subitems into string array??
Posted by Paul M at 3/8/2004 1:06:58 PM
hi,
i have a listview which displays items with 2 subItems each.
How can i store these 3 items from each row into a string array?
currently i am storing only the first item, as below:
Public strFields As String()
For Each lv As ListViewItem In Me.lstFields.CheckedItems
tmpValues &= ... more >>
X-Button
Posted by riVn NO[at]SPAM team-crude-dot-com.no-spam.invalid at 3/8/2004 12:41:50 PM
(I allready used the search function of the dotnetboard, haven't seen
any post about it)
So, my problem is this one:
I wana have a msgbox when I click the normal X-button on the
right-top-corner of a normal
win form.
The msgbox would be like "Do you realy want to quit the app?" ... with
... more >>
### Lock MS Access DB File so it cant be moved... Please help me!! ###
Posted by BuzzLight at 3/8/2004 12:34:04 PM
Hello all, I need to know how to lock a file on the filesystem during runtime so that no body can move a file (say c:\myfile.mdb) while the program is running. Only should be locked moving wise, I still want it to be editable while the program is running.
Please help me with this... I cant find a... more >>
Check Variable
Posted by Chris at 3/8/2004 12:11:10 PM
Hi
What is the best way to check if a 'String' variable is null or empty? I was usin
If strValue.Empty Then ..
But I am getting an error.... more >>
This WithEvents code is troublesome
Posted by SamSpade at 3/8/2004 11:52:54 AM
I have this class that seems to work OK. Note that I supply the actual PD in
the call.
Public Class ImagePrint
Private mPD As Drawing.Printing.PrintDocument
-snip
Public Sub PrintIt(ByVal PD As PrintDocument, ByVal PicImage As Image, ByVal
DocName As String, ByVal Fit As PrintFit, ByVa... more >>
Error in GetString behavior
Posted by Trapulo at 3/8/2004 11:17:23 AM
If I execute this code, with realString as array of zeros, execution goes
always in "then" code:
If Not System.Text.ASCIIEncoding.ASCII.GetString(realString).Length = 0 Then
out.Append(System.Text.ASCIIEncoding.ASCII.GetString(realString))
End If
If I debug I have:
? System.Text.AS... more >>
how many rows in Datareader
Posted by Daniel Sélen Secches at 3/8/2004 11:17:18 AM
how can I know how many rows i have in a Data reader?
is that possible?
because i wanna do a progress bar of the job because it could take a several
minutes
the way I thought is like that but is a slow way
dim i as integer = 0
while dr.read()
i += 1
end while
--
tks.
Daniel S... more >>
system.timers.timer problems
Posted by Brent Burkart at 3/8/2004 11:11:16 AM
I have a system.timers.timer that is not firing. Here is my code. Can
anyone see anything wrong?
Public Sub Main()
Dim aTimer As New System.Timers.Timer()
AddHandler aTimer.Elapsed, AddressOf OnTimedEvent
' Set the Interval to 5 seconds.
aTimer.Interval = 5000
... more >>
Prevent app from showing up in Task Manager (WinXP, VB .NET)
Posted by Stephen Corey at 3/8/2004 10:56:12 AM
I'm trying to detect when users run games (solitaire, freecell, etc..)on all
PCs on my network. Because of the Windows File Protection system won't let
me overwrite the game executables, it looks like I'm forced to write an app
that runs in the background and waits for sol.exe (for example) to sh... more >>
Retrieving User Name
Posted by Simon Jefferies at 3/8/2004 10:53:15 AM
Hello,
How do I get the user name (information) for the currently logged in user
using VB. NET?
TIA
Simon Jefferies
Tools Programmer
Headfirst Productions
... more >>
How can I programmatically install an .inf file ?
Posted by JH at 3/8/2004 10:44:40 AM
How can I programmatically install an .inf file in VB.NET?
Any help is greatly appreciated
Thanks
... more >>
Technicalities of ExecuteNonQuery
Posted by Ken at 3/8/2004 10:31:10 AM
I'm working on creating audit trail functionality for a table in SQL Server that gets its data from my VB.Net program. Everything worked fine while I just had the Insert and Delete triggers. However, upon adding the Update trigger, I noticed that the following code will do something that SQL consi... more >>
Unable to store empty/null date in SQL Sever 2000 date/time field via VB.Net Form
Posted by Henry at 3/8/2004 10:06:21 AM
I have built a vb.net form that contains a text box that is used to
store a date field that is input by the user. The form updates work fine
when the textbox is populated with a date. However, when the date field
is set to empty/nothing by the user (which is a valid condition), the
update fails ... more >>
Detecting Data grid changes
Posted by Jawahar Rajan at 3/8/2004 9:11:17 AM
How can I detect a change in a data grid using VB.net
I do not want to cycle through all the controls (text boxes ) in the grid unless change has been made
The Grid has a textbox control to display data. If there is no change then I do not want to update the grid or the database. If there is a c... more >>
Setting Button Image when FlatStyle is system...
Posted by G.Ashok at 3/8/2004 9:08:42 AM
Hi,
I use Win XP styles so I set the button FlatStyle to System; but this
doesn't show the Button Image. How can I set the image while applying the XP
styles?
Regards,
....Ashok
... more >>
Converting a User Defined Structure to Byte array
Posted by Sal at 3/8/2004 8:56:47 AM
Is there an easier way to convert a user defined structure
to an array of Bytes ? I am currently using the
System.Bitconverter class with the Copyto Method to
copy one field at a time. Thanks... more >>
SharePoint NameSpace
Posted by Joey at 3/8/2004 8:37:11 AM
Hey,
I'v looked in the MSDN and I saw that in order to develope SharePoint apps,
I need to use the Microsoft.SharePoint NameSpace.
Where this namespace is???
What do I need to install on my computer to have it?
Thanks ahead!
-- Joey
... more >>
Debugging problem - watches dont work
Posted by owen at 3/8/2004 8:26:13 AM
I'm writing an ASP.NET application and all of a sudden my watches don't
work. The "+" sign appears next to them but you cannot drill into them.
(The "+" dissappears when you click it and the item does not expand).
Is it possible that a change to web.config would cause this? Or is this a
kno... more >>
db connection
Posted by meh at 3/8/2004 8:09:57 AM
I am wanting to give my users the same functionallity as the server explorer
connection utility. Does ne1 know where I might find some samples or
documentaion on putting together something like that....enumerate the SQL
servers and MSDE etc.
tia
meh
... more >>
String --> SHA1 hash (in hexadecimal)
Posted by almurph NO[at]SPAM altavista.com at 3/8/2004 7:57:27 AM
Folks,
I've written what I believe to be a conversion utility. It takes
the string from an input field and converts it into a SHA1 hash and
then outputs said hash (in hex) to the next tetxfield. The step taken
are as follows:
1. Capture string from input textfield
2. Convert string to... more >>
Longhorn Beta
Posted by Amit Chandel at 3/8/2004 5:49:47 AM
Is it possible to order betas of longhorn , yukon and all the other goodies
offered at PDC this year. I wasn't able to attend, and would like to get
my feet wet. Something like a 180 day trial / beta on DVD or CD ?
Thanks,
Amit Chandel... more >>
Diagnostics.Process.GetCurrentProcess hangs
Posted by M Ferdinande at 3/8/2004 5:06:07 AM
Has anyone encountered the following problem
I' trying to prevent my program starting up twice. In my PrevInstance function I call the function Diagnostics.Process.GetCurrentProcess to retreive the processname. This does not work. This function hangs on my pc. If I try the same code on another PC (... more >>
Reading realtime from ftp.exe process window
Posted by Benjamin Hall at 3/8/2004 4:38:08 AM
I want to launch a process ftp.exe and monitor it in realtime so I can read
and write to the console window based on the returned text. How do I do
this?
ie launch ftp.exe then process.standardinput.writeline("open ftp.domain.com
port") then read, then write, then read etc etc
The examples... more >>
Can you de-serialize an ADO.NET recordset ?
Posted by RobT at 3/8/2004 4:23:28 AM
Hi,
Please could someone tell me if it's possible to de-serialize and
ADO.NET recordset into an object and if so, how it's done?
I am able to de-serialize XML stored in a string value and then
serialize it back into XML but not to and from a recordset.
Any help would be appreciated.
Ro... more >>
Button Question. Can u help me?
Posted by Miguel Dias Moura at 3/8/2004 12:39:12 AM
Hello,
i have a form in an ASP.net / VB with 2 buttons:
<code>
<form action="" class="tableForm" runat="server">
<asp:Button ID="Ybt" runat="server" OnClick="Go" Text="Yes" />
<asp:Button ID="Nbt" runat="server" OnClick="Go" Text="No" />
</form>
</code>
and then i have this V... more >>
|