all groups > vb.net > january 2004 > threads for monday january 5
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
Dynamically changing .vb and .aspx pages...
Posted by tascienu NO[at]SPAM ecoaches.com at 1/5/2004 11:44:47 PM
I was able to build an asp page dynamically depending on the question
that the user answered through the online wizard...
I think i can dynamically also create '.vb' or '.aspx' dynamically
depending on the answers that users entered in the online wizard...
the only issue here, is that, once ... more >>
property: can it be an object?
Posted by tmaster at 1/5/2004 10:56:59 PM
Can I pass a listview to another form using a property definition like this?
Public Class frmToDoDetail
Inherits System.Windows.Forms.Form
Private m_lvwTD As ListView
Public Property lvwTD() As ListView
Get
lvwTD = m_lvwTD
End Get
Set(ByV... more >>
Which control is better a gridBrowser + Datagrid sort feature
Posted by Jean-Claude Bertrand at 1/5/2004 10:49:39 PM
Hi!
Windows of the application IO have to built (my first one in vb.Net) is made
from 2 part:
a) A grid wich will be used only to display the main information of the
current record (so the grid must select the entire row and not allow
editing). I have selected the datagrid so far and succe... more >>
Anti-Aliasing in Graphics.DrawImage()
Posted by chris NO[at]SPAM CosmicWolf.com at 1/5/2004 10:36:09 PM
Hi,
I'm trying to create a little program that loads a 1bpp bitmap
(black/white) and displays it in a PictureBox using the PictureBox's
Paint event. I have buttons for zooming in/out and I calculate the
source image origin rectangle and the destination rectangle.
Problem is that the imag... more >>
Header Item Rectangle
Posted by Simon Abolnar at 1/5/2004 8:58:25 PM
I am using VB.NET 2003
Framework 1.1
I can't get header item rectangle of ListView.
HeaderItemHandle = SendMessage (HWnd, HDM_GETITEMRECT, i,
headerItemRectangle)
Problem is in declaration of SendMessage API (lParam can't be of type RECT):
Private Declare Function SendMessage Lib "user... more >>
AX Web Control in MDI Child?
Posted by kris.rockwell NO[at]SPAM hybrid-learning.com at 1/5/2004 8:55:29 PM
Hello,
I am trying to load a MDI Child window with an ActiveX browser control
to achieve a "Start Page" similiar to the VS.NET IDE. The problem i am
having is that when i call the window as an MDI child the Browser
control won't render a page. If I make the window a "normal" window
the page l... more >>
Hefried's post on Rounded Corners
Posted by William Ryan at 1/5/2004 8:28:21 PM
Herfried:
A while back you posted a really cool way to round the corners of a form. I
thought I had it saved, but if you have it handy, would you kindly post it?
TIA,
Bill
--
Cordially,
W.G. Ryan
dotnetguru@comcast.nospam.net
www.devbuzz.com
www.knowdotnet.com
... more >>
Creating Web Controls in VB.Net
Posted by Robert at 1/5/2004 8:25:06 PM
Hello all,
All of our programs have been written as Active X
controls in VB 6 and are accessed through Internet
Explorer. This has made it easy for verion control. I
would like to now upgrade everything to .Net, but will
most likely rewrite most of the code. Could you provide
suggest... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
FileSystemWatcher
Posted by Robert Hahn at 1/5/2004 7:35:24 PM
Hi everybody,
I have one question about the System.IO.FileSystemWatcher Class.
My problem is, that for excample the Create event of this class give me the
FullPath of the crated Folder
but all in lower kapitals. So if someone create the Folder
C:\temp\MyTestFolder,
the Event notifies me a... more >>
Few Questions
Posted by Noor at 1/5/2004 7:32:46 PM
Hi everyone.
Im kinda newbie to .net programming and very confused after seeing too many
options for building database applicaton.
I have few question for you people and want answers to them.
1) is databinding in .net a best practice?
2) what are the best practices to develop a simple dat... more >>
Adding Files from Directory/SubDirectory to Listbox
Posted by Ivan Weiss at 1/5/2004 7:02:55 PM
Hey all, I want to add all of the file names from a directory and
subdirectory. I am unfamiliar with how to do this, does anyone know how
or have any starting points?
I am trying to create an mp3 playlist for my Media Player.
-Ivan
*** Sent via Developersdex http://www.developersdex.com ... more >>
ODBC
Posted by Yama at 1/5/2004 6:57:18 PM
Hi,
Does anyone know how I could write a program that'll upon click the
executable create an ODBC connection on host machines?
Yama
... more >>
ComboBox.SelectedIndex bug?
Posted by Strahimir Antoljak at 1/5/2004 5:51:52 PM
Has anyone experienced problems with
a combo box SelectIndex property?
Is there a limit to the number of Items
for a combo box?
Namely, when I set programmatically
ComboBox.SelectIndex property
with 2000 Items listed in the ComboBox,
SelectIndex property accepts assigned
value. However, ... more >>
websites for development
Posted by Richard de Beer at 1/5/2004 5:48:14 PM
Hi,
I'm a beginning VB.Net developer and I'm looking for good websites where I
can find examplecode, tutorials, librarys etc. I already got some sites, but
since you are experts, I was hoping that you could give me some good links.
I hope you can help me.
Many thanks!
Richard
... more >>
Embed Perl or execute perl script
Posted by Kai Thorsrud at 1/5/2004 5:18:02 PM
Hi
I'm currently into converting a perl linux app into a .Net windows service.
The application monitors our syslog log files to capture i.p adress changes
on some of our routers having dynamic i.p. In the syslog logfile i capture
the new IP adress of the router. I then need to telnet to that i... more >>
When to use Public,private , shared etc
Posted by Neil Steventon at 1/5/2004 5:09:49 PM
Hi,
I am new to VB.net , well the objects concept anyway and was wondering if
there were any good articles / turorials on when and why you would use
certain declarations such as
Private test as string
public test as string
Public Shared as string
Protected test as string
etc
Please ... more >>
How to stop RowChanging events from firing on fill
Posted by Denise at 1/5/2004 5:08:23 PM
I just realized the DataTable_RowChanging events were firing when I called
Fill method of the DataAdapter! It fires TWICE for each row loaded. I
thought these were only supposed to be called when data was actually being
edited.
I am using bound textbox controls on the form. Could that have ... more >>
RegularExpression Question
Posted by Fabio at 1/5/2004 5:07:41 PM
Hi all,
I have this simple string for example:
anything<font>catch this</font>
and I need a regularexpression to Catch "catch this"
so, I can use this pattern:
">[^<]+"
and the match returns ">catch this"
the question: HOW CAN I DO TO THE MATCH DO NOT RETURN THE STRING ">" ???
... more >>
Upgrading VB5 code
Posted by Ed Martin at 1/5/2004 5:01:22 PM
I have just upgraded to VB.net from VB5, is there an easy
way to upgrade the old projects. The built in upgrader
seems to only upgrade VB6... more >>
Loading data in tables - Again :-(
Posted by coleenholley at 1/5/2004 4:42:55 PM
EEEK! I have eight columns and 18 rows in a table. I need to populate the table and run calculations on four of the columns andfor totals in a footer. Here is some of the code I am using to populate my table
Dim ls_county, ls_gas, ls_gasohol, ls_tot_gal, ls_cty_rate, ls_st_rate As Strin
Dim ls_... more >>
replacing quotes within a string variable
Posted by TimothyBarbour at 1/5/2004 4:39:50 PM
I am a newbie to VB.NET (and VB in general).
I'd like to replace quote marks with the string.
For example, I have a string that is "3dmesh 45 45" including the quotes.
I'd like to remove the quotes and end up with the string equal to (literally) 3dmesh 45 45
I'm using LineofTe... more >>
passing value
Posted by Yama at 1/5/2004 4:36:50 PM
Hi,
Simple question:
Is there a way to a value from client-side to server-side upon a click?
function _getReport(ReportName) { alert(ReportName); }
<asp:datalist id="dlReports" runat="server">
<itemtemplate>
<img height="7" src="../ReportsImages/navlink.gif" wid... more >>
Different Beep sound
Posted by Denise at 1/5/2004 4:36:31 PM
Does anyone know how to play a sound that is different from the sound you
get by calling beep()?
When the user presses 'Save', I don't want to display a dialog box each time
saying that the save was successful, but I would like a simple audible
indication.
I'd like to use the same sound tha... more >>
accessing a control that's on another form using property
Posted by tmaster at 1/5/2004 4:22:40 PM
Within a class, can I create a property that is a listview? Here's what I
tried, but it doesn't seem to work:
'------------ create property to give the second form access to the first
form's listview:
Public Class frmToDoDetail ' (this is the second form)
Inherits System.Window... more >>
Problem with registering Vb Dll
Posted by Catherine Jones at 1/5/2004 4:15:58 PM
I need to register a Vb DLL under restricted acess privilages
please provide me a solution
Regards and thanks
... more >>
"Preload" Forms for speed?
Posted by Scott Johnson at 1/5/2004 3:41:08 PM
Hi!
Is there a way to "preload" a form using a thread or something else so that
my user doesn't have to wait 5 seconds (initializing time) between forms?
Some of these forms have tab strips with lots of controls and database
queries on them and I would like to try to have some(all) of the preloa... more >>
Load event firing twice for one form instance
Posted by cshaw NO[at]SPAM collegeboard.com at 1/5/2004 3:14:22 PM
I have a form which I want to show modally; it's a fairly old form
that's been ported up several versions of VB, and I'd like to keep its
rewriting to a minimum. Basically, it is used in this sequence:
1. The form is shown. The Form_Load event does some initialization.
2. Further parameters... more >>
VB.NET multiple buttons implementation?
Posted by Dan Dautrich at 1/5/2004 3:11:35 PM
I'm trying to create a custom user control using VB.NET 2002 and ran across
a stumbling block. I need an indefinite number of buttons to display across
the control, based on its size. I'm not sure how to do this because I
cannot make an array of buttons without losing Events ability and I've
f... more >>
KeyCode Security
Posted by tony NO[at]SPAM cybase.co-dot-uk.no-spam.invalid at 1/5/2004 2:24:19 PM
Hi All,
Wonder if anyone can help?
I am just about to finish an application in VB.net and I am lookig
into software that can limit the software for use for up to 30 days
or 30 times...then the user will have to purchase a key code off me
(I hope).
Can anyone reccomend any software for th... more >>
KeyCode Security
Posted by tony NO[at]SPAM cybase.co-dot-uk.no-spam.invalid at 1/5/2004 2:24:18 PM
Hi All,
Wonder if anyone can help?
I am just about to finish an application in VB.net and I am lookig
into software that can limit the software for use for up to 30 days
or 30 times...then the user will have to purchase a key code off me
(I hope).
Can anyone reccomend any software for th... more >>
ListBox horizontal scrool bar is not working
Posted by QT at 1/5/2004 1:58:23 PM
Dear Sirs,
I am using following codes for listbox; When Vertical scrool bar is working,
horizontal scroll bar is not working.
What should I do?
'ListBox1
'
Me.ListBox1.HorizontalScrollbar = True
Me.ListBox1.Location = New System.Drawing.Point(16, 24)
Me.ListBox1.Name = "ListBox... more >>
Left Nav Panel
Posted by Yama at 1/5/2004 1:49:49 PM
Good Afternoon to all,
What will be the best way to capture ServerClick from a a left menu
generated by a datalist?
Private Sub GetReports()
Try
Dim cmd As New SqlCommand
Dim conn As New
SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
cmd.C... more >>
Annoying
Posted by Sueffel at 1/5/2004 1:48:09 PM
I'm trying to find out simply how to call DllRegisterServer from VB.NET.
I've got all the VB6 crap, but, since hWnd is no longer a beast, I need to
find out what needs marshelled and such. Any ideas?
Sueffel
... more >>
Updating database via DataGrid
Posted by Didymus at 1/5/2004 1:44:03 PM
Hi everyone,
My program reads data from a DataBase, then populates some ComboBoxes with
data from each Table respectively, filtering the data in each ComboBox
according to the item selected in the preceding ComboBox.
(...Thanks guys for the guidance in that area...)
The resulting filtered t... more >>
New cool software
Posted by Filipe Freire at 1/5/2004 1:33:08 PM
Hi guys,
Check out this software I found on the net...
http://www.dualdot.net/default.asp?nav=imagebatch
It's called ImageBatch and has a batch mode for converting, naming and
resizing images...
It's very cool!
... more >>
Using API function in VB.NET
Posted by Parveen at 1/5/2004 1:31:20 PM
I'm trying to use the GetUserName API function in the advapi32.dll library.
I declare my function as follows
Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA"
(ByVal lpBuffer As String, ByVal nsize As Long) As Lon
But when I call the function like this
lngRetVal = GetUser... more >>
(Search Tool) Alright Already I Fixed It :)
Posted by scorpion53061 at 1/5/2004 1:23:16 PM
This morning I let the group know that I had finished an application that
categorizes posts in the vb.net and ado.net newsgroups and eliminates the
trash that we hate to wade through on sites like Google and such.
Well I would like to thank the multitude of you that have emailed me
informing m... more >>
Copy bits of Byte array to Int32
Posted by Lance at 1/5/2004 1:10:56 PM
I have an array of bytes that I need to convert into an
array of Integers. But, the number of bits per value in
the Byte array is not necessarily divisible by 8 (although
it will never exceed 32).
For example, lets say I have a an array of bytes
(byteValues) that represents a string of 7... more >>
ComboBox with 2 column
Posted by Tor Inge Rislaa at 1/5/2004 1:04:40 PM
I need to have 2 or more column visible in my ComboBox is there a way to do
that?
TIRislaa
... more >>
Hiding controlbox icon
Posted by Tim at 1/5/2004 1:01:29 PM
Hi,
I am trying to create a form with the following
attributes:
1. A sizable border
2. Min, Max, and Close buttons
3. No icon in the upper left hand corner
All of this can be accomplished using the Sizable
FormBorderStyle, but the icon remains. I read something
about needing to ... more >>
show selected text in a textbox
Posted by DraguVaso at 1/5/2004 12:07:24 PM
Hi,
I have a big multiline Textbox with scrollbars. I want to be able to look
for a substring in the textbox, and select it. So far no problem.
But: when the selected piece of text in the textbox isn't visible, I want it
to be visible! So I need to let the scrollbars scroll until the selecte... more >>
listview focus question
Posted by tmaster at 1/5/2004 11:55:41 AM
I have a form, frmMain, that contains a listview. When the user selects
item(s), I do the following:
Private Sub lvwToDo_ItemActivate(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles lvwToDo.SelectedIndexChanged
Dim litem As ListViewItem
Dim frmTemp As N... more >>
modems and ports
Posted by delimiter at 1/5/2004 11:32:39 AM
Okay, this problem is a problem that arose out
of .NET coding rather than a hardware problem.
I have a hard time trying to figure out how I
can determine the port the modem is connected
to, in Win 98 en ME using the registry
entries. This is n0t a problem with Win 2K and
XP. Neither with Win ... more >>
NetRemoteTOD sample in VB.NET
Posted by adiel_g NO[at]SPAM hotmail.com at 1/5/2004 11:12:49 AM
Hello I found the following example on another newsgroup:
>is there any sample for NetRemoteTOD API function in C#?
[DllImport("netapi32.dll", CharSet=CharSet.Unicode)]
static extern uint NetRemoteTOD(string UncServerName, out IntPtr
BufferPtr);
[DllImport("netapi32.dll")]
static extern ... more >>
delegate handling, or incorrect syntax... either way how can i do this?
Posted by Eric Newton at 1/5/2004 11:06:29 AM
Given the following code,
Public class ProgressFormManager
Public Sub BeginInvoke(ByVal method As [Delegate], ByVal args() As Object)
Dim asyncCallback As New System.Threading.WaitCallback(method)
System.Threading.ThreadPool.QueueUserWorkItem(asyncCallback, args)
End Sub
.... [other impl... more >>
Bound ComboBox to display blank first line
Posted by Jesse Villani at 1/5/2004 10:56:38 AM
Hi All,
Just wondering if anyone knows if it is possible to startup a windows form
with a comboBox that is bound to a dataset which starts off as having a
blank line. ie. the user has to choose an option before all the info
appears and not just goto the first record automatically.
I curren... more >>
VB.Net and Word
Posted by Ken at 1/5/2004 10:55:24 AM
I'm trying to extract data from a Word table. I can get
the documents to open in my prototype. I'm told that to
get to the information in the cell, I need the following:
activedocument.Tables(1).Cell(1,1).Range.Text
However, when I try to go beyond activedocument.Tables, I
get: Interfa... more >>
Tab Pages
Posted by VJ at 1/5/2004 10:42:36 AM
I have a Tab Control with 2 Pages, on windows form. I want to be able to
hide a tab page based on certain condition when the Form loads. I have tried
to set the Page.Visible to false, it does not work. I even tried
Page.Enabled property and set it to False..to see if the tab page is
disabled, it... more >>
how to update dataset w/ multiple table?
Posted by jaYPee at 1/5/2004 10:14:31 AM
I have search a lot of thread in google newsgroup and read a lot of
articles but still i don't know how to update the dataset that has 3
tables.
my 3 tables looks like the 3 tables from northwind database that has
an employees, orders, and order details.
the following are the 3 tables in my... more >>
Inserting HTML Tags into DHTML Edit Control????
Posted by Mike at 1/5/2004 9:57:07 AM
Hello,
I am developing a simple web editor to enable my users to update their =
websites and add simple formatting to the text.
The page content is recovered from a SQL Server database and displayed =
in the Microsoft DHTML Edit control ( I am working in Visual Studio 2003 =
- VB ). I have ... more >>
error BC30311: Value of type 'x' cannot be converted to 'x'
Posted by David at 1/5/2004 9:53:35 AM
I am getting the following error during run-time
compilation or a rebuild all of my application:
error BC30311: Value of type 'mynamespace.x' cannot be
converted to 'mynamespace.x'
This occurs in only one component/project that accesses
the 'x' object whereas several other components/pro... more >>
Pack and Deply. creates EXE and Installer??
Posted by grawsha2000 NO[at]SPAM yahoo.com at 1/5/2004 9:48:48 AM
Greetings,
I have just finished packaging and deploying winapp. Packing went
fine and so did the deplo. However, I have noticed that there are two
files, not one, that were created by VB.NET. One is application.exe
and the other one is installer that has all the dependencies. Any
idea wh... more >>
Nested Classes (Newbie) Question
Posted by Keith Rebello at 1/5/2004 9:14:32 AM
I am trying to implement a graph drawing class. I want to nest a curve
class inside it to draw multiple curves.
i.e.
Class Graph2D
'
Class CurveObj
'
End Class
'
End Class
The Graph2D class will have multiple CurveObj classes, each wit... more >>
Database Query
Posted by Newbie! at 1/5/2004 8:48:09 AM
Morning Group,
Can someone possible answer a simple question for me?
Should I use the Database Connection, DataAdapter, and Dataset Wizard or
should I right my own code and not bother?
Regards
Si
... more >>
Dim as New
Posted by Rob Richardson at 1/5/2004 8:26:48 AM
Greetings!
I am an experienced VB6 user just getting into the VB .Net world. In VB6,
many people frowned on the use of "Dim x As New MyObject" because it could
produce unexpected results, such as the following:
Dim X as New MyObject
Set X = Nothing
If X Is Nothing Then
MsgBox "X has ... more >>
install vb.net 2002 and 2003 on same machine?
Posted by Richard Keller at 1/5/2004 8:24:44 AM
Can you install VB.net 2002 and vb.net 2003 on the same
machine?
... more >>
NotifyIcon click event not firing....
Posted by Heather R at 1/5/2004 8:12:47 AM
I am writing a windows service that has a notifyicon component. The
component displays accordingly, but for some reason, I cannot get the
click or double click event to fire. It seems like none of the events
are firing for some reason. I have made sure the withevents is in the
declaration, b... more >>
Help with Converting C#.Net to VB.Net
Posted by Rob Panosh at 1/5/2004 7:42:07 AM
Could somebody please assist me in converting the following C#.Net code to
VB.Net code?
[DllImport("odbc32.dll")]
private static extern short SQLAllocHandle(short hType, IntPtr inputHandle,
out IntPtr outputHandle);
[DllImport("odbc32.dll")]
private static extern short SQLSetEnvAttr(IntPtr h... more >>
Datagrid select all and deselect
Posted by Dale at 1/5/2004 6:55:42 AM
Does anyone know how to select all of the items in a
datagrid and then how to deselect all items in a datagrid.
Thanks in advance!
Dale... more >>
Strange vb Like operator
Posted by Jan Sika at 1/5/2004 6:22:50 AM
Try this:
Console.WriteLine(("ab" Like "*a*b*").ToString)
Console.WriteLine(("aa" Like "*a*a*").ToString)
Result:
True
False
???????????
Jan... more >>
Datagrid Truncates Data?
Posted by Sean at 1/5/2004 5:59:46 AM
I am using a datagrid to display some data. I notice when
I click in a cell where the data is longer than the cell
width, it truncates the end of the data off.
For example:
The data is:
This is sample data
Column only has room for:
This is sample da
When I click in the cell, it cha... more >>
Drawing lines in Form
Posted by K.N.Ranjit at 1/5/2004 3:42:56 AM
Here's my coding again:
Private Sub Form1_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
cn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=D:\Documents and
Settings\rvish\Desktop\trverse.mdb;Persist Security
Info=False")
rs.Open(... more >>
PLZ Help me, Pointer Array in VB.NET
Posted by Min-su KIM at 1/5/2004 2:42:59 AM
HI~
I need to access the pointer array via DLL.
Original C code is
char * buf[64];
for (int i = 0; i < 63; i++) {
buf[i] = new char [64];
}
API_CALL(buf);
To access the API_CALL in VB.NET, I have to pass the
array (containing the pointer of buffer).
Can I... more >>
DataGrid cell changes
Posted by Suresh at 1/5/2004 2:34:04 AM
I am trying to display the totals from several columns
from the grid and update them as the user moves from cell
to cell. I have no problems going from cell to cell but
when the user changes a column and then clicks another
button on the form, I am unable the see the change in the
underlyi... more >>
activate command line and send arguments
Posted by Gabi at 1/5/2004 1:59:37 AM
Hi all,
is any one can tell me please
how can i activate a command line options from my
visual basic application like:
i:
cd
etc...
Thanks
... more >>
Command button in datagrid
Posted by Ahsan at 1/5/2004 1:31:36 AM
Hi there
I am using datagrid with SQl server
I wonder if its possible to create a command button on
each row of the grid.
Actually I want to open a new form on every button click
with differnt values.
Thanks in advance.
ason... more >>
Listview and Custom Class
Posted by D Miller at 1/5/2004 1:22:30 AM
Hello,
I want to use a class I have created, when I do I receive an error message
that says the class can not be converted to string and another message
saying that the class can not be converted to
windows.systems.forms.listviewitem.
I created a function called ToString in my class and th... more >>
System.Runtime.InteropServices.MarshalDirectiveException
Posted by Abc at 1/5/2004 12:02:54 AM
System.Runtime.InteropServices.MarshalDirectiveException
This is the exception which i am getting while running a
code .
Can any one help me out to resolve it?
Thanks.... more >>
|