Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
all groups > vb.net > november 2004

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

data row
Posted by Maarten at 11/30/2004 11:24:37 PM
first thanks to al for the reply's of the save to text file question it works fine here is a fresh question about datagrids is there a way to add a row with a caption for example the property list of the components in vb.net, there are the diferent properties seperatet with a row that can...more >>


dll problem: vb6 and vb.net writing smart tags
Posted by C Williams at 11/30/2004 11:12:35 PM
Hi, In a nutshell, my question is: how do i make a dll that I compile from vb.net code register and work like one compiled as an ActiveX dll in VB6? The IDE of my copy of visual basic.net does not provide me with the option to build a class library (dll)--instead I can use the command li...more >>

single application instance
Posted by Maileen at 11/30/2004 10:25:01 PM
Hi, I've read several threads about 1 single instance of application and I tried them but without sucess. Does anyone have a good example for making the main Form as single instance application ? thanks a lot, PM...more >>

without .NET technology
Posted by Maileen at 11/30/2004 10:15:09 PM
Hi, I would like to know if exist a way how to use .NET environment to create a normal VB application.I mean by normal, a VB application which doesn(t use ..NET technology (like VB6 for example) thanks a lot PM...more >>

Radio Button Collections Help!
Posted by Patrick at 11/30/2004 10:03:53 PM
Hello - I'm working on a VB program that uses two radio button collections - one of State, the other of Capitols. If the state is selected in collection1, then the appropriate capitol is selected in collection2, and vice versa. I thought this would be easy, but it's turning into a pain - al...more >>

Threading
Posted by Charles A. Lackman at 11/30/2004 9:49:00 PM
Hello, I am making a app that creates a thread to show a clipboard. If the clipboard is double clicked, another window is displayed, the event is handled inside the main app. What I would like to do is have the clipboard use the main thread of the application that called it to handle the ...more >>

Timer + High CPU Usage
Posted by LBT at 11/30/2004 8:55:03 PM
I have a window service written using VB.NET. This window service will scan folders for file and grab the file content to be inserted to SQL Server on file detection. There are altogether 18 folders to be watched. Each folder is assigned with a timer for watching purpose. Hence there will be 1...more >>

Object Transfer Over Network ( Socket )
Posted by rawCoder at 11/30/2004 8:16:01 PM
Hi All, I need some advanced samples or references for passing custom objects over the network using sockets. Without using Remoting what are other options in .NET Framework for this binary serialization. Thank You rawCoder ...more >>



Animated Graphics
Posted by David Angelovich at 11/30/2004 8:15:06 PM
Hi What's the best way to do animated graphics in VB.NET? I need to make a white square bounce around the screen... I was thinking of drawing the square then using a timer to redraw 30 times per second, then moving the square on each redraw... Is there a better way though...? I'm looking...more >>

VB.net and excel spreadsheet
Posted by john andrew at 11/30/2004 7:55:03 PM
-- hello In VB.net can I import an excel spreadsheet into a formand display it. Also edit/save cells also on the form. I want to use code in VB.net form that also effect the spreadsheet. Can I do this or something like this in VB.net...more >>

Application.EnableVisualStyles() And Image on the button
Posted by Sylvain Barde at 11/30/2004 7:36:50 PM
When I use Application.EnableVisualStyles() Public Sub New() MyBase.New() Application.EnableVisualStyles() Application.DoEvents() InitializeComponent() End Sub And I set the Flatstyle property of a button to System, and I set the Image property of the button, I can't see the im...more >>

Problem deleting Last Row in ListView
Posted by A_PK at 11/30/2004 6:35:34 PM
I am writing mobile application using Vb.net when i click the last row of list view, and try to delete it.... will promtpy the following message "Additional information: ArgumentOutOfRangeException" what does that mean ? I can delete any row without problem but except last row only.... ...more >>

How to? take code from a form and make it into a standalone app that can be scheduled
Posted by Carol Chisholm at 11/30/2004 4:33:21 PM
I've made a nice little form in VB.Net with a button that starts code that reorganizes lots of files with fso type objects. Now that it works I'd like to schedule it to run regularly each night in the middle of the night. What is the best way to go about this? ...more >>

crystal reports question
Posted by Brad at 11/30/2004 4:22:58 PM
I know this is the VB group, but maybe somebody knows the answer to this. On a Crystal Report that I am using as a form, it pulls in various dated information. In the fields where there are dates I have boxes drawn. What I need is if there is a date in the field, I want this box to be blacke...more >>

Unable to Start Debugging
Posted by Michael Turner at 11/30/2004 4:00:06 PM
Hi Guys I need help, someone in my office has decided to upgrade to FrameWork 1.1 on our webserver now when ever we try and run a web application from within ..net we get the following error, however the sites still work fine does anyone have any ideas. "error while trying to run proje...more >>

create bitmap with tranparent region
Posted by Willie jan at 11/30/2004 3:55:32 PM
Hi, i try to create a bitmap with transparent regions, but it does not work. the transparent region turns out to be black. anybody some ideas?? Dim bmap As Bitmap(100,100,Imaging.PixelFormat.Format32bppPArgb) Dim g As Graphics = Graphics.FromImage(bmap) g.Clear(Color.Transparent) g.Draw...more >>

Highlight Icon
Posted by Vinay Kodam at 11/30/2004 2:59:49 PM
Hi all, I want to implement the Highlight Icon and Font color functionality of the MS-WORD in my application. I have set the STYLE property of my toolbarbutton to DROPDOWNBUTTON, due to which I get the down arrow next to the toolbarbutton. But i don't know how to get the COLOR PALETTE, wh...more >>

How to redirect page in windows application?
Posted by jenniferhu46 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 11/30/2004 2:56:17 PM
Hi all, I have to ask a stupid question: In asp.net, I use Response.Redirect ("Main.aspx") to redirect pages, but what is the syntax of redirect forms in vb.net windows application? I have a login page, after clicked "login", it will direct the page to main.vb, but error says "respon...more >>

Keypress in a textbox.
Posted by Todd Sparks at 11/30/2004 2:28:04 PM
I am using Visual Studio 2003 to develop a windows application in which I allow the users to just press Enter, while the focus is on a textbox, in order to perform a search. My problem is that sometimes Keypress event stops being raised. I have found that I can reproduce this behavior by p...more >>

save to textfile
Posted by Maarten at 11/30/2004 2:18:35 PM
hi all when i do this: Private Sub MenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem3.Click For inti = 1 To 16 Call SaveTextToFile("Channel" & " " & inti & " = " & dchanPos(inti), "C:\Documents and Settings\Maarten\My Documents\PLC.uni", "Error...more >>

Datagrid vs. datatable rows
Posted by Jon at 11/30/2004 1:49:10 PM
Question: does datagrid1.isSelected(i) point to the same row as datatable.row(i).delete after datagrid sorted?? I am using datagrid1.isSelected(i) to identify datatable rows that have been selected by the user Then I use datatable.rows(i).delete to delete those rows. It works fine if I ...more >>

Post to web page (quickie)
Posted by Chris, Master of All Things Insignificant at 11/30/2004 1:37:47 PM
I have a web page that just returns an XML stream back. I don't have any control over that site so a web service is not possible. What classes will I use to do the post and get the response back? I just need a push in the right direction. If I must use HTTPWebRequest, do I need to do it as...more >>

Create box-like Caret for textbox
Posted by Dayne at 11/30/2004 1:25:22 PM
I would like to create a box-like caret for a textbox(vb.net) . Any idea. Sample code would be nice. DT ...more >>

ListView (captured the scroll but lost everything else) Need other events.
Posted by tim NO[at]SPAM sstechs.com at 11/30/2004 1:02:03 PM
I have successfully captured the scroll event of the listview control by creating a class that inherits the list view control then overriding the wndproc procedure. I have two questions though. First I lose all other events for the listview control obviously because I overwrote the wndproc...more >>

VB Types in VB.Net
Posted by robert NO[at]SPAM 18greystones.co.uk at 11/30/2004 12:35:06 PM
Hi, Can anyone let me know the best way to mimic the behaviour of VB Types in VB.Net. I want to define a structure and then load / save data into it from a binary file using FOPEN / FREAD etc... so I need to be able to specify the size of the fields (mostly text). From what I can see of the...more >>

Find vs FindRow help
Posted by Brad at 11/30/2004 12:25:36 PM
I have a quandry which hopefully is easy for most. I have a table that represents about 5,000 genetic dog records. This data is being extracted from an AS400 database. Each dog's record includes the Sire and the Dam number which is also contained somewhere within the main table. What I...more >>

fax
Posted by Rob T at 11/30/2004 12:24:51 PM
Hi, I'm looking for a couple of quick example of how faxing is done (prefer VB) Thanks. ...more >>

Single or Double?
Posted by John Dann at 11/30/2004 12:20:53 PM
I'm retrieving some columns from a database with numeric values that fall comfortably within the range of the Single type and I'm tempted to use Single for the relevant column type in the retrieved dataset. (Actually the values are held as integers in the database for compact storage but are sca...more >>

Q: controls in a panel
Posted by Geoff Jones at 11/30/2004 12:03:22 PM
Hi I have added a panel to a form and in this panel have added some controls e.g. Button1 The only way I can see to access this button is as follows: Dim index As Integer = Me.Panel1.Controls.IndexOf(Button1) CType(Me.Panel1.Controls.Item(index), System.Windows.Forms.Button).Enabled = Tr...more >>

How to view a pdf file using vb.net
Posted by moi_bobbo NO[at]SPAM yahoo.com at 11/30/2004 11:59:26 AM
Hi, I have a problem, i want to view a pdf file without using an api or activex. So i tried to open it with Internet Explorer. It's work, but i don't want the user to save it or modify it. Can i control this? Or if there is an other possibility to view a pdf file in my vb.net project in read...more >>

datagrid event
Posted by rodchar at 11/30/2004 11:25:03 AM
hey all, i have a win form that has a datagrid on it and i was wondering if i can use a double-click event to pull up the next form to show details? thanks, rodchar...more >>

How to use OpenFileDialog control to select directory path.
Posted by Sakharam Phapale at 11/30/2004 11:25:00 AM
Hi All, I want to give option to user for selecting directory, just like for selecting file using OpenFileDialog control. How to make it possible? I tried it using "VisualBasic.Compatibility.VB6.DirListBox" control, but it does not work properly. It has following two properties...more >>

destroy instances...
Posted by anthony at 11/30/2004 11:18:04 AM
Hi, there is sth i am not sure, i looked at the help in vb.net for creating timer on the fly (see below). Since the event would happen 10sec later, I cannot destroy the timer right away (or can I? or will VB.net destroy automatically?), I can do it after the event is fired, but the timer is no...more >>

collectionbase.item
Posted by Tim Murphy at 11/30/2004 11:17:50 AM
When creating a collection class that inherits CollectionBase what advantage is there for the Item property returning CType(List.Item(index), <objecttype> ) over List.Item(index). Looking at the help file I guess speed and that's a good thing but what is the point when if you use "for each ......more >>

How to select a listbox item on right mouse click?
Posted by k2k2e6 NO[at]SPAM yahoo.com at 11/30/2004 11:03:54 AM
Hi, Is it possible to select a list box item when someone right clicks on it? I can find the snippets of code for VB6 but that code will not work in VB.Net. Thanks Pawan...more >>

using writexml in vb .net and numeric columns in excel
Posted by Bernie Yaeger at 11/30/2004 11:01:01 AM
I use the following writexml method to convert a dataset/datatable to .xml: ds.WriteXml(mstrpath, XmlWriteMode.WriteSchema) ds.WriteXmlSchema(mstrpathxsd) The path strings are simple full paths: eg, f:\emapps\xmlfiles\filename.xml (or .xsd as appropriate). I get an xml file, but there ar...more >>

Password Reset for Workstation Login
Posted by Ian at 11/30/2004 10:55:10 AM
Hi I know there are products out there that can do this like http://www.psynch.com/technology/ska.html What is the code that is used to Reset a Users password so the next time they logon to the domain they are promoted for a new password? I know the code will have to run under the Admin. ...more >>

newbie question - date datatype in access / dataset URGENT
Posted by Karl White at 11/30/2004 10:41:11 AM
Hi, I have code that extracts a dataset from a table in Access. The table has a column called "orderDate". Its datatype is set to Date/Time and short Date format (i.e DD/MM/YYYY). When I extract my dataset I then bind each column to a label on a form. For the date column the value that ...more >>

DLL for use in Office applications
Posted by Morten Snedker at 11/30/2004 10:40:56 AM
If made myself a DLL-file containing classes I wish to use in Office applications (Access/Excel). How should I register the DLL to make it work with these applications? I've tried using RegAsm.exe, but maybe I've been using wrong parameters. I also tried to from the Office-app to point dir...more >>

MultiThreading?
Posted by Fredrik Melin at 11/30/2004 10:26:31 AM
Hi, How can I make a sub to be executed only one at the time in a multithreaded environment? Eg, I have "server" thread,s that does printing, problem is when several server threads running at the same time, the Crystal Reports Com Object crashes, Guess its not thread safe.. How can I ...more >>

Direct trace info to textbox
Posted by Kejpa at 11/30/2004 9:45:52 AM
Hi, I want my trace information i a textbox in my application, is there a simple way of doing this? TIA /Kejpa ...more >>

Set Crystal Report Namespace
Posted by Mythran at 11/30/2004 9:36:35 AM
In .Net, how can I go about and set a Crystal Reports namespace? Right now they use the Root Namespace (VB) from the project. How can I extend the namespace for a single report (which will be set on all reports)? Thanks for any and all help, in advance :) Mythran ...more >>

SIP server
Posted by Bob at 11/30/2004 8:48:59 AM
Hi there, I would like to develop a VOIP SIP server - something that allows VOIP soft or hard phones to register themselves and then provide redirection services to anyone calling the registered phones. I don't propose to write all this myself... instead I was hoping someone could point me ...more >>

A "basic" question - I think!
Posted by Keith Rebello at 11/30/2004 8:32:22 AM
I have an object called ColumnSection which represents a reinforced concrete column. This object contains an arraylist called Diagrams which contains Graph2D objects which are essentially X-Y plots. The Graph2D object has 2 public methods - Draw, which draws the plot on a bitmap in memory and ...more >>

How to handle events, triggered by contorls in owned form, in owner
Posted by enginejerry NO[at]SPAM yahoo.com.tw at 11/30/2004 6:56:41 AM
Dear all: I have a problem about how to handle the events. For example, there are two forms, Form1 and Form2. Form2 is owned by Form1 and there is a button,Button1, in Form2. It is no problem for Form2 to handle the event "Button1.Click" . My problem is how to handle the Button1.click event ...more >>

Remote FileSystemWatcher as service
Posted by Cfleischer at 11/30/2004 6:37:06 AM
I have created a service that uses a fileSystemWatcher to monitor the creation of files on an ftp server. The service will run on our database server and monitor a remote directory. It worked from a windows appliaction but will not work from the service. When I start the service I log the ...more >>

Delete an LDAP Attribute
Posted by Phil Kelly at 11/30/2004 5:59:02 AM
Hi! I am trying to delete an LDAP attribute using VB.NET (2003) but cannot find any syntax that supports this operation. I need to remove (say) the 'company' attribute (not one of the mandatory ones) Has anyone got any ideas? Thanks Phil -- Phil Kelly Infant Technology Ltd Direc...more >>

Calling a form
Posted by BobAchgill at 11/30/2004 5:55:20 AM
I have a MainForm and would like to call up a DownLoad form to let the user execute code associated with that form to download some files from the host. How do I call the Download form from the Mainform? I tried several things I saw in the Help and but did not hit on the right thing. ...more >>

Is .NET framework installed with COM wrappers
Posted by Niklas at 11/30/2004 5:51:01 AM
Hi In the framework directory I found a lot of tlb files. Does that mean that the framework can be used by COM by default? I want to do the following from COM/vba with .NET wrappers. Is that possible?: Public Shared Function Load(ByVal FilePath As String, ByVal MyType As String, ByVal MyM...more >>

Duplicating Objects
Posted by EdB at 11/30/2004 4:13:03 AM
I'm still having trouble grasping what's going on here and how to resolve it. In VB6 I have a form that has several combo boxes with lots of items in each; it takes a long time to load the form because of having to load each combobox. As I think about converting this to .Net, I believe I s...more >>


DevelopmentNow Blog