all groups > vb.net > march 2005 > threads for wednesday march 30
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
Inherit or usercontrol
Posted by google NO[at]SPAM easycolorthemes.com at 3/30/2005 11:24:08 PM
Hi everybody,
I need to create a custom button for all our internal applications, and i
would like to know what is the best for this type of control(button), is it
to inherit standard button or create a full new one with usercontrol (using
GDI+) ?
Which one will be the fatest or is it the ... more >>
Line Numbers in RichTextBox..
Posted by Adam Eavy via DotNetMonster.com at 3/30/2005 10:56:19 PM
Hi, could any1 kindly tell me how to implement line numbers with a rich
text box (im making my own scripting language and really need line numbers!)
Ive looked all over the net for over 4 days now and just cant find
anything. Ive found C# versions but these are no good, because Im only
famili... more >>
filesystemwatcher changed vb.net
Posted by marfi95 NO[at]SPAM yahoo.com at 3/30/2005 10:19:26 PM
Hi all,
I have implemented a filesystemwatcher to notify my app when a specific
file has changed. I have a notifyfilter of LastWrite or Size.
However, just opening the file is triggering this. Is there a way
around this since I only want to know when changes have been made ?
Mark
... more >>
How to count total number of rows in the datagrid.
Posted by patang at 3/30/2005 10:19:02 PM
I found the following to count the total number of VISIBLE rows of datagrid
datagrid.visiblerowcount
How do we count the total number of ACTUAL (not just visible) rows of
datagrid?
Thanks in advance.... more >>
Creating array on the fly as a parameter to a subroutine?
Posted by Rob Nicholson at 3/30/2005 10:17:24 PM
Consider the following example class:
Public Class ExampleClass
ReadOnly Property HelloWorld() As String
Get
Return "Hello, World"
End Get
End Property
End Class
And a subroutine:
Sub DoSomething(ec as ExampleClass)
End Sub
You can invoke this u... more >>
How to debug this?
Posted by Brett at 3/30/2005 9:24:36 PM
For some reason when I step into the code below, it jumps out on the second
iteration at the line I have marked below. Nothing else happens - no
errors.
Dim tcpClient As New System.Net.Sockets.TcpClient
tcpClient.Connect("127.0.0.1", 9005)
While True
... more >>
Mixing VB variables with standard text to output text file
Posted by Scott at 3/30/2005 7:49:52 PM
I wish to create a text document (to the users desktop on any machine) =
which outputs to a standard text file with information obtained from =
there use of my program... Some of the text will be fixed and some will =
be variables generated in VB.net. For example...
You have chosen a SINGLE T... more >>
vb.net ado Paradox and SQL Server... How can I run query...
Posted by Roger at 3/30/2005 7:43:22 PM
I want to run a query in my vb.net application that will join a table in
Paradox and a SQL Server table?
How do I do this?
Thanks,
Rog
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Refresh DataSet - please Help Me :-(
Posted by chreo at 3/30/2005 7:34:21 PM
I GIVE UP...I can't refresh datagrid (dataset)
I have datagrid =3D dgrPaczki
Datasource of that datagrid =3D DataSetPaczki1.PACZKI_PAKOWALNIA =
(forgive me Polish words)
Dataadapter which fills my DataSetPaczki1 =3D adaPaczki
Dataadapter selects rows returned by user defined function =3D =
P... more >>
Word control substitute
Posted by Dean Slindee at 3/30/2005 7:00:10 PM
Is there a control that can be placed on a form to display a *.doc file and
preserve the text and images intact?
Read only would be OK, no updating of the document needed.
Thanks,
Dean Slindee
... more >>
Using an event defined in an interface
Posted by sundog2000 at 3/30/2005 6:41:23 PM
I am writing my first VB.net program and I am struggling to figure out
how to attach an event to a method, when the event is part of an
interface that the class implements.
I have declared a delegate function, a public event, and the class
object (g_pFeedManager) is first dim'ed as an interfac... more >>
How to Public Sub controlling forms?
Posted by Marcos Beccar Varela at 3/30/2005 6:37:56 PM
Hello to all.
I need to control some objects from a module like the old VB 6 style.
Can anyone help on how to do this?
For example, I need that when BUTTON1 es pressed in FORM1.. with a TEXTBOX
this calls a PUBLIC SUB in a module (or substitute) and and this shows
creates a new instance o... more >>
Storing multiple text files inone file.
Posted by Chris Murphy via DotNetMonster.com at 3/30/2005 6:17:49 PM
Hey all, just wondering if anyone can point me in the right direction. I'm
developing a solution that allows a user to store multiple text-based
content (like code snippets, notes, documents etc.) in one master document.
I'm not exactly sure which is the most efficient method of going about
this... more >>
Query timeout
Posted by David de Passos at 3/30/2005 5:04:00 PM
How Can Set a Query Timeout and Catch the error when the time elapsed.
--
Cumprimentos,
David de Passos
--------------------------------------------------------------
RCSOFT, Lda.
E-Mail: passos@rcsoft.pt
Móvel: +351 966931639
Telefone: +351 239708708
Fax: +351 239708701
Tel. Direct... more >>
DataGrid How to delete underlying database
Posted by Tom McL. at 3/30/2005 4:58:05 PM
I have a datagrid bound to a database and
I would like to be able to select a row
programmable and then delete it.
I have been trying to use the OleDbDataAdapter1.DeleteCommand
but I can't figure out the syntax.
DataGrid1.Select(DataGrid1.CurrentRowIndex)
OleDbDataAdapter1.DeleteCommand ??... more >>
add dsn programmatorically
Posted by steven at 3/30/2005 4:52:14 PM
Hello,
I've searched for a way to add a dsn with vb.net. Does anyone has some
example code?
Thanks,
Steven... more >>
Writing Plugins..
Posted by Vittorio Pavesi at 3/30/2005 4:12:56 PM
Hello,
I'm managing plugins in a .NET Application using Interface, I use the
following code to load plugins:
Dim pObhHandle As ObjectHandle = Activator.CreateInstanceFrom(pStrPath,
pStrType)
Dim pIpnPlugin As Check_Plugin = CType(pObhHandle.Unwrap, Check_Plugin)
I've a problem when 2 plu... more >>
Windowless application, pls help.
Posted by FelixLeung at 3/30/2005 2:12:56 PM
Dear all,
Anyone know how to create windowless application without 3rd party controls?
I want the application look like ICQ, MSN, etc. No window but custom min,
close button.
Thanks
Best Regards,
Felix
... more >>
how to convert...
Posted by Supra at 3/30/2005 1:53:09 PM
how to convert fromVC# to VB.net....
in vc# :
private delegate void NewFormDelegate(Form f);
public void NewMdiForm(Form f)
{
this.Invoke(new NewFormDelegate(NewForm),new
object[1]{f});
}
in vb.net :......
but i'm not sure if this is right way..... more >>
Debugging "form designer" code,
Posted by Robin Tucker at 3/30/2005 1:51:36 PM
Hi,
I have a problem with my code (somewhere in the InitialiseComponent)
preventing any of my controls being visible in form design mode, although
everything is ok at runtime. No errors are produced when I view the form in
the designer; it just presents me with a blank form. Some of the... more >>
New version of vs2005
Posted by ReidarT at 3/30/2005 1:37:41 PM
I ment the full version of VisualStudio2005.
reidarT
... more >>
Polymorphic XML Serialized Array
Posted by Todd at 3/30/2005 1:29:01 PM
Hello Folks
I am trying to create an xml file from a class containing a
polymorphic array. The example: AutoCompany contains an array of
Vehicles(base class) which can either be Cars or Trucks(derived classes).
Everything works accept the XMLSerialization. The error is v... more >>
Using SQL substring query in vb.net app
Posted by Michele Fondry via .NET 247 at 3/30/2005 1:22:29 PM
hello.
I have a webform form app in vb.Net that uses a SQL query. I am trying to use the substring function, but get the following error:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the erro... more >>
New version of Visual Studio
Posted by ReidarT at 3/30/2005 1:13:23 PM
I can see that the vs2005 version is on the bedding. Is it possible to get
it?
ReidarT
... more >>
3 levels Master - Detail relation in data table
Posted by Hon Yuen, Ng at 3/30/2005 1:04:51 PM
Hi All
I've 3 data tables with the following relation
table A - one to many - table B
table B - one to many - table C
I've 2 data grids (A and B).
Data Grid A will show tableA and tableB's data while tableC will show
data filtered based on tableB's selected item.
Currently this is done b... more >>
CSV-Datei einlesen
Posted by Matthias von Deetzen at 3/30/2005 12:24:00 PM
Hallo zusammen,
ich suche eine Möglichkeit eine CSV Datei in einem DataGrid anzuzeigen.
Mfg
Matthias
... more >>
String.Split versus Strings.Split
Posted by kurt sune at 3/30/2005 12:12:52 PM
The code:
Dim aLine As String = "cat" & vbNewLine & "dog" & vbNewLine & "fox" &
vbNewLine
Dim csvColumns1 As String() = aLine.Split(vbNewLine, vbCr, vbLf)
Dim csvColumns2 As String() = Microsoft.VisualBasic.Strings.Split(aLine,
vbNewLine, -1, CompareMethod.Binary)
returns in csvColum... more >>
ReInstantiate an Object?
Posted by Raterus at 3/30/2005 12:04:17 PM
Hi,
I don't even know if this can be done..
Lets say I have two objects,
---
Public Class Employee
End Class
Public Class Boss : Inherits Employee
End Class
--
At runtime, I have no control over when an "Employee" is instantiated, =
but I do have a reference to it. Is there ... more >>
IPC Examples in VB.net?
Posted by Viet at 3/30/2005 12:02:34 PM
Is there any Inter-process Communication examples out there in VB.NET?
Specifically, I have app1 that executes app2 as a process and I would like
to have app2 display messages in a status bar in app1. I understand that IPC
is an option to successfully execute this.
TIA!
Jonathan
... more >>
foxpro table hosed up when called 2nd time from VB.net
Posted by Amar at 3/30/2005 11:47:05 AM
I have a abc.PRG file in visual foxpro 8.0. I can run this file using visual
foxpro environment and it creates a table X.dbf in the same folder where
this program file is and populates some data in the table. I am now using
VB.NET to run this abc.PRG file through VB.net environment. (Equival... more >>
XML Schema
Posted by Nikolay Petrov at 3/30/2005 11:39:43 AM
How to apply a XML Schema contained in a DataSet to other DataSet?
Thanks
... more >>
TCPClient and TCPListener over the network
Posted by Dave Coate at 3/30/2005 11:32:30 AM
Hi,
I am working on a client-server app. I can get two applications to talk to
each other on the same machine using 127.0.0.1, but as soon as I try it
using a computer name or actual IP address I get a SocketException: "No
connection could be made because the target machine actively refused it... more >>
SaveFileDialog
Posted by John at 3/30/2005 11:15:07 AM
In my VB .Net WinForm app, SaveFileDialog gives me an error msg
"C:\MyFile.txt already exists. Do you want to replace it?"
What I need to do is to append something to an existing file, so I want to
avoid this warning msg. I included "SaveFileDialog.CheckFileExists = False"
in my code, but t... more >>
Using The NativeWindow Class To Draw A GDI Type Circle On Top Of A DataGrid Possibly In The Override OnPaint
Posted by Richard at 3/30/2005 10:34:03 AM
I have a requirement to put a GDI style circle or rectangle border around
the selected row of a datagrid/ It will overlap into the row above and below
the selected row. Doing this in a the OnPaint of a subclassed
DataGridTextBoxColum dos not seem like a practical way to do it.
I have subcl... more >>
Datagrid and arraylist
Posted by stojilcoviz at 3/30/2005 9:59:02 AM
I've a datagrid whose datasource is an arraylist object. The arraylist
holds many instances of a specific class.
I've two questions about this:
1 - Is there a way by which I can obtain a reference to the arraylist item
the current row points to?
2 - Is it possible to sort the grid?
... more >>
How to debug application?
Posted by Rv0 at 3/30/2005 9:52:57 AM
I have written a VB.Net (v69586...) application which is targetted for
Windows 2000 SP4 clients running dotNet framework V1.0.03705 and 1.1.
This application works fine on about 50% of the 100 clients and shows an
error dialog on the other machines. The shown error message is rather
cryptic t... more >>
checking a datarow
Posted by rodchar at 3/30/2005 9:51:02 AM
hey all,
i'm using the following expression to check a datarow.
if dr.IsDBNull(10) then
....
end if
is there a way to find out what field each integer represents for the
IsDBNull parameter? because i used trial and error?... more >>
Get Variable Out of Arraylist
Posted by blisspikle at 3/30/2005 9:11:22 AM
Hello guys, Can not seem to get this straight. I have two comments
where I have questions on the following code.
Public Shared AnalogSensors As New System.Collections.ArrayList()
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
... more >>
begining profiling
Posted by gabe at 3/30/2005 9:07:03 AM
i suspect that a project hat i'm working on has some problems (ok, several)
in that everytime i query a db my memory usage climbs. i've looked thru the
code but am having a tough time seeing a casue, is there a tool to track
objects to the point that it can show number of objects that were cr... more >>
a checkbox in a datagrid
Posted by Sam at 3/30/2005 8:35:26 AM
Hi,
I have a datagrid which the first two columns are set from a dataset
linked to a database. I would like to add manually a third column in
which there would be a checkbox (one per row). This checkbox doesn't
have to be linked to any dataset.
I've seen methods in faqs but I find them a bit of... more >>
Screen Mate Creation
Posted by David Pendrey at 3/30/2005 8:35:24 AM
I am trying to create a screen mate similar to the popular sheep program
which can run around the screen on top of other windows currently visible on
the screen This will require me to obtain an outline of the forms currently
being displayed on the screen so that my screen mate can run around ... more >>
using StringBuilder class for concatenation?
Posted by Ron at 3/30/2005 8:35:08 AM
Hello,
I have to concatenate some large strings which end up in a
text file. I am just checking if the StringBuilder class
can improve what I am currently doing - and how to
implement this. Here is what I am currently doing:
Do while...true
...
strData += str1 & ColDelimeter
... more >>
Advice needed
Posted by TS at 3/30/2005 8:07:03 AM
Hi all,
First of all, why I don't usually get a response for the questions I place
in this newsgroup? It's like as if it's not enough that vb.net is way
different than regular vb, but also developers who are trying their very best
to update their knowledge to vb.net don't get enough support. ... more >>
How can I determine WHICH exception I got in my CATCH?
Posted by l.woods at 3/30/2005 7:54:49 AM
I want to set up my CATCH for a specific exception, but I really don't know
which one of the multitude that it is. I am getting the exception now with
Catch ex as Exception
but I want to be more specific. I can't find any property of the exception
object that tells me WHICH one it is.
... more >>
Process.Start("WinWord.exe") problem
Posted by Dean Slindee at 3/30/2005 6:34:13 AM
The code below is being used to launch WinWord.exe from a VB.NET program.
Word launches, but displays this error message:
"Word has experienced an error trying to open the file. Try these
suggestions. 1) Check the file permissions for the document or drive. 2)
Make sure there is sufficient fr... more >>
tooltip on combobox selection
Posted by Sam at 3/30/2005 6:26:44 AM
Hi,
Does anyone know how I can display a tooltip when the mouse is over an
item of a combobox's list. That tooltip should show the actual text of
the item if this one doesn't fit the combobox's width. I can't figure
out how to determine if the mouse is over one of the items....
thx
... more >>
How do you put a hyperlinked text on a blank form
Posted by George Medlock at 3/30/2005 3:01:00 AM
How do you put a hyperlinked text on a blank form. Just a plain form
Thanks
... more >>
Upgrading .NET Framework 1.0 to .NET Framework 1.1
Posted by Robert S. Liles at 3/30/2005 12:38:37 AM
I have Visual Basic.NET 2002 with .NET Framework 1.0. I also have Visual
C++.NET 2003 with .NET Framework 1.1. Is there anyway to upgrade the .NET
Framework of the Visual Basic to the version 1.1 so I can have access to the
added tools in the later version in my Basic installation and not have ... more >>
SELECT Statement
Posted by patang at 3/30/2005 12:35:02 AM
I am displaying the records from a table in a grid. The simpel SELECT
statement works fine. However, I have to use this select statement
select right("00000" + Column1,2), column2, column3 FROM mytable
This does not work. I mean it is not showing the 0000's in the first column.
The above ... more >>
Keypress Event not Firing for enter key
Posted by JAG711 at 3/30/2005 12:31:03 AM
I have 2 mdi childforms which are database input forms. Each form has the
usual add/delete/edit/save buttons and a few textboxes. I capture the
keypress events on the textboxes to allow only numbers and I also capture the
Enter key to move focus to the next control. The forms work fine if ... more >>
Upgrading .NET Framework v1.0 to v1.1
Posted by Robert S. Liles at 3/30/2005 12:29:19 AM
I have Visual Basic.NET 2002 with .NET Framework 1.0. I also have Visual
C++.NET 2003 with .NET Framework 1.1. Is there anyway to upgrade the .NET
Framework of the Visual Basic to the version 1.1 so I can have access to the
added tools in the later version in my Basic installation and not ha... more >>
Using Word 2000 in an application
Posted by Helen Trim at 3/30/2005 12:17:24 AM
I have an application that allows users to edit documents
using Word 2000. Sometimes it opens Word but the toolbars
are missing. Users find this very frustrating. I can't
track it down as it is intermittent.
Has anyone else had this problem? Any ideas?
I create the class with:
P... more >>
|