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 > september 2004 > threads for tuesday september 28

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

datatable unique rows
Posted by chris at 9/28/2004 11:04:34 PM
Hello Group, I have a datatable with duplicate values in a column and I need to get distinct rows ordered by <col name>. How do I go abt it without hitting the db? Thanks for ur help, Chris. ...more >>

How to get a PropertyGrid's cell value
Posted by Dean Slindee at 9/28/2004 10:58:01 PM
Using a propertyGrid to allow input of parameter values. I need to get both each property name and property value for each property name/value pair show in the property grid. I can get the property name thus, but how do I get the associated value string? Dim pdc As PropertyDescriptorCollection...more >>

run another project in same solution
Posted by Tee at 9/28/2004 10:55:40 PM
Hi Does anyone know how to run another project that inside the same solution ? The project that going to be run is a windows application project. If I don't want to run the EXE, do I have any way to do it by code ? Thanks, Tee ...more >>

Connect to remote Database from desktop
Posted by Mamatha at 9/28/2004 10:41:52 PM
Hi I developed one website in ASP and i am developing desktop application in VB.Both MS-Access databases(website and desktop) are maintained on the website,then how can i connect to the remote Access database from my VB(desktop) application.Is it possible with the Access database or is ...more >>

Debugger exception fallback
Posted by Nak at 9/28/2004 9:38:05 PM
Hi there, I'm just curious as to something. I have just added an exception handler at the entry point to my application, within the IDE any unhandled exceptions fallback to this and enable me to disable a dialog of my liking. Now if I run the application outside of the IDE I recieve th...more >>

transaction support
Posted by Craig Buchanan at 9/28/2004 9:26:15 PM
i'd like to pull messages from a POP3 server and store them in a database. What mechanisms are there to treat this process like a transaction? thanks, craig ...more >>

Multi Form in VB.net
Posted by Cathy at 9/28/2004 9:19:59 PM
Hi, I want to show the LoginFrm Form when user click the Login Button, I'm using below code, when the LoginFrm appear, it is Blank! I can't see the button, label, Text Box in LoginForm. May I know why? Isn't my code wrong? Please advise. Private Sub btnStart_Click(ByVal sender As Syst...more >>

a question about client~
Posted by Simon.C at 9/28/2004 9:19:58 PM
here are my question: when I debug a program in client computer,the client computer always have such information:can't find dll of mscoree.dll..,but I debug it in localhost well.and I select the "release"not the "debug",then how can I solute this question?thank you for your kind. ...more >>



IIS & .Net
Posted by Jul at 9/28/2004 9:02:36 PM
Hi, I installed .Net before I setup IIS. Does it mean that I can not develop Web apps and I have to reinstall .Net again? Thanks ...more >>

Setting Properties with System.Reflection
Posted by Lucas Tam at 9/28/2004 8:58:48 PM
Hi all, I need to set a property on a subclass such as: Report.ExportOptions.ExportFormatType = ExportFormatType.Excel AND Report.ExportOptions.FormatOptions = excelFormatOpts How would I go about doing this? Do I use the Invoke Member Method? Thanks. -- Lucas Tam (REMOVEn...more >>

How to open a new form?
Posted by Nexus at 9/28/2004 8:07:03 PM
I have created a form and a pop-up dialog box. When the user selects a particular ID from the combo box and then click on the Edit button, I want the form to appear showing the details of the selected record. How do I do so? What are the methods that I can use? ...more >>

Form goes blank
Posted by JohnGates at 9/28/2004 7:49:02 PM
In VB.net, I have win form programs that do database update operations that take several minutes or longer. Several actions such as switching windows or clicking a control during these operations leave me with a blank form (all white space inside the form borders) or with a frozen form that wi...more >>

How to add a new record into the table?
Posted by Neuxs at 9/28/2004 7:40:39 PM
I want to add a new record (i.e. new vendor) into the table. I have tried using the Insert Command but it doesn't insert the record into the SQL table. Or is there any other ways to add a new record? Below are the codes that I have typed in. --- Codes --- cmdInsert.CommandText = "Inser...more >>

FTP - can't upload a file using the MS Example
Posted by Jen at 9/28/2004 7:39:09 PM
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't get it to upload a file to the FTP server. I just get a "Cannot connect to remote server" error aft...more >>

Dynamic Font change for buttons
Posted by Jim at 9/28/2004 7:34:17 PM
Working with VB.net under VS.Net 2003. Have a simple form with a Button1. I want to change the font on the button when the button is clicked. Is there a way to Dynamically change the Font for Button1 from regular to bold, change the size etc. This line of code: Button1.Font.Bold =...more >>

DataGrid Width
Posted by Debbie Carter at 9/28/2004 7:05:46 PM
Is there a way to set the width size of a column in a DataGrid without using the DataGridTableStyle? All I want to do is make the first column invisible by setting the width to zero. ...more >>

experts-exchange.com
Posted by jcnews at 9/28/2004 6:28:18 PM
I keep coming across this site on the internet. Is it any good? Is it worth paying $10/month for? Seems expensive. I would like to hear what people think about it. Thanks, ...more >>

DataGrid Row Selection Highlight?
Posted by B-Dog at 9/28/2004 5:20:22 PM
Is there a way to stop the datagrid from highlighting the column when you click into it. I want my whole row to be one color when you click on it. My datagrid is read-only. I've tried setting the column.selectedtext = "" but I can't find any way to trick it, it highlights the contents when you ...more >>

Problem with chipcards and Vb.net
Posted by Björn Isemann at 9/28/2004 5:03:27 PM
Hi there, i got a problem, shouldnt be too hard for some hardcore developers but well, its too hard for me. i've got a pc/sc cardreader and a simple memory I2C card, no smartcard, no processor card. i need a simple solution or a link or some good tips how to write and read that card, only s...more >>

How to download Visual Studio 2005 Beta 1 Refresh? What about MSDN subscription?
Posted by DraguVaso at 9/28/2004 4:39:15 PM
Hi, I want to download Visual Studio 2005 Beta 1 Refresh, but on the site of Microsoft they say it is only for MSDN subscribers? what is a MSDN subscriber and how do I get it? When I try to "Add Passport" on there site, they ask me my "Subscription or Membership ID'... how do I get these? I...more >>

Making a Windows Service with VB.NET 2005 (Express)
Posted by DraguVaso at 9/28/2004 4:35:15 PM
Hi, Can you make a Windows Service with Visual Basic .NET 2005 Express? Because it doesn't seem to be in the possibility's when you want to create a new project? Can i do it in the Visual Studio 2005 Beta 1 Refresh? Thanks, Pieter ...more >>

Can an SMTP e-mail account be polled?
Posted by WaveyD at 9/28/2004 4:16:49 PM
Hi Can somebody please please please help me I need to be able to poll the contents of an SMTP e-mail account The idea being, process an e-mail automatically and do something any attached files I have dicovered how to send an e-mail using System.Web.Mail, but can see away to received/p...more >>

Word from VB.Net
Posted by Anne Richmond at 9/28/2004 3:17:06 PM
The following code creates a word document. How do I add a footer to each page containing the date and page number? Dim wrdApp As Word.Application Dim wrdDoc As Word.Document Dim wrdSelection As Word.Selection Dim mText As String Dim mSub As Integer wrdApp = CreateObject("Word.A...more >>

How to crash the IDE/Compiler in 5 lines of code (BUG)
Posted by Rarlfth Nadar at 9/28/2004 3:11:04 PM
Create a new solution, add a class... Public Class Class1 Public Sub New() .New() '<----- This line will blow up the IDE End Sub End Class Depending on whether you have hotfixes installed, you'll get a compiler crash (requiring you to save, ex...more >>

meanings of ".Net"
Posted by zafar haider at 9/28/2004 2:55:22 PM
hi what is the particular meaning of word ".Net". why the word ".Net". why not something else this was asked in my interview ...more >>

Tooltip in Datagrid cell?
Posted by Lars Netzel at 9/28/2004 2:28:28 PM
I need to have a Tooltip on each Cell in a datagrid, I don't know how to do this. I'm using Styles to the datagrid (Which I asume most people do since you never need to show all the fields from the source). The Cell I want a tooltip on is styled with a textboxcolumn and the TextBox Object in t...more >>

Classes, collections and data
Posted by Paul at 9/28/2004 2:13:46 PM
Hello, I'm upgrading a small single user app to VB.NET and have a few questions about loading classes & collections classes with the data from a one to many dataset structure. I'm serializing the data to disk as a dataset and was wondering if it was an accepted practice to load/add/edit/de...more >>

Serailizing Static Variables Problems
Posted by JackRazz at 9/28/2004 1:53:06 PM
I'm trying to serialize a class using the binary formatter without serializing the 'static pastFirstCall as Boolean' variable. Normally private (module-scope) variables are serialized unless the <NonSerialized> attribute is used. Public Function NextMessageNo() As Integer <NonSeri...more >>

Concise loading of data into a hashtable ?
Posted by mark4asp at 9/28/2004 1:47:17 PM
Hello, I am converting an app from JavaScript to ASP.NET I have the following JavaScript 'associative array'. Is there a concise way to create an analogous structure in .NET Framework using c# or VB.NET? I don't want to use JScript. consFin = {2:'m',4:'n',6:'ng',8:'r',10:'l',12:'kh',14:'...more >>

vb.NET Front-End/Windows Service Communication...
Posted by Brian Patrick at 9/28/2004 1:33:17 PM
I have an application model which will consist of a front-end configuration application, which needs to control the state of a back-end vb.net windows service (which is the component that does all the work). Think of this in the same manner as say microsoft management console and the w3svc (ine...more >>

CreateObject("Excel.Application",MyServer)
Posted by KC at 9/28/2004 1:24:56 PM
Hi, I have code similar to this.. Dim xlApp As Object xlApp = CreateObject("Excel.Application", "\\MyServer") The call is from a asp.net (Intranet) application. \\Myserver is a network computer in the same domain as web server. The only way I can get this call worked is when I add the us...more >>

Store SQL query results with SQLDataAdapter? with SQLDataReader? w
Posted by Simon1234 at 9/28/2004 1:19:02 PM
Below you will see my code to read data from a database and store it into a dataset. The first, commented code uses an SQLDataReader and the second, uncommented code uses the Fill method of the SqlDataAdapter. They both work perfectly, as long as I use a query that returns a small amount of...more >>

ASP.NET Web App
Posted by johnlam at 9/28/2004 12:27:13 PM
I am using VB.Net. When I want to open a ASP.NET Web application, an error message 'Your web server is not running ASP.NET 1.1. You cannot run ASP.NET Web application or service'. How to install ASP.NET 1.1. I am using XP Prof with SP1. John Lam ...more >>

XslTransform with an XSL which includes another XSL
Posted by qluo at 9/28/2004 12:11:14 PM
I am trying to transform an XML to a HTML, with one XSL (test.xsl), which includes another XSL(include.xsl). In the xml, there is a stylesheet: <?xml-stylesheet href="test.xsl" type="text/xsl"?>. The "test.xsl has" an include: <xsl:include href="include.xsl"/> All the files are under th...more >>

Postback & Xml Control ViewState
Posted by BluDog at 9/28/2004 11:42:46 AM
Hi I have an Xml control that reflects a tree structure from a serialized object that is generated in the Page_Load event: If Not IsPostBack Then Dim ms As New IO.MemoryStream Dim ser As New System.Xml.Serialization.XmlSerializer(Content.Site.GetType) ser.Seriali...more >>

Highlight a column in a datagrid
Posted by sholder NO[at]SPAM ensafe.com at 9/28/2004 11:35:41 AM
I have a datagrid with a column that I want to change the background color so it stands out. Basically there is VB a procedure that imports a text file directly into the datagrid. The last column in the datagrid, results, I want highlighted and I just can't figure it out.... Here is the code I h...more >>

datatable.compute with datagrid [question]
Posted by Agnes at 9/28/2004 11:34:49 AM
From the help menu, I know that I can use myTable.compute the get the sum amount. Now myDatagrid 's datamember is myTable, I put the following code in my datagrid.currentcellchanged. and I found a little problem , As the user input the total in the 1st row, and press 'tab' to another column . ...more >>

Small Application Structure Help
Posted by codemonk at 9/28/2004 11:34:29 AM
After reading Extreme Programming adventures I am starting to think more about the design of my applications. I was wondering how I would structure a new, small VB or C#.NET Windows application. Instead of calling a startup form I was thinking of calling a class named after the application wit...more >>

Datagrid, Anchor and Form Load
Posted by scorpion53061 at 9/28/2004 10:54:26 AM
I have a datagrid that I create dynamically in code and want it to appear when a link label is clicked. The form loads in maximized view. When the datagrid appears though I have anchored it to right, left, top and bottom the grid appears sized as if it were still at normal view. If I siz...more >>

Datagrid DefaultValue
Posted by Jeff Haumesser at 9/28/2004 10:53:18 AM
Hi everybody: I have a Datagrid bound to a stongly typed Collection. This datagrid has two columns and contains 5 rows; one for each object in my collection. Column two has a handler for the KeyPress event that ensures that the user enters only numeric values. The problem I have is that...more >>

IIS not working with asp.net
Posted by Sam at 9/28/2004 10:42:21 AM
I had installed IIS 6 and ASP 3.0 is working fine. But when I use ASP.Net, IIS 6 seem not working and wonder what's wrong. Internet browser error message is "THE PAGE CANNOT DISPLAYED, HTTP500 - Internal server error" Please help. ...more >>

need some XML help
Posted by Mike at 9/28/2004 10:37:07 AM
I have an xml file such as <cars> <make selected=true>BMW</make> <model>325 Ci</model> </cars> I can I read and get <make selected=true> ? I want to show it on the screen only if selected = true. I can get all of them, but I can't check for the selected value ...more >>

Hide Columns in Datagrid
Posted by J at 9/28/2004 10:28:51 AM
Ok, they have changed a lot of stuff in VB.net. How in the world do you = hide a column on the Datagrid? --=20 Jason...more >>

registration of .net dll during setup
Posted by steve at 9/28/2004 10:10:13 AM
i have a class library in one project representing an object model. i have a second windows application project that references the object model project. i finally have a setup application that includes all three. the setup build creates the om dll and the windows app exe and redistributes the...more >>

FASTEST way to try all strings (a until ZZZZZZZZZZZZZZZZZZZZZZZZ)
Posted by DraguVaso at 9/28/2004 10:04:34 AM
Hi, I need to find the FASTEST way to get a string in a Loop, that goes from "a" to "ZZZZZZZZZZZZZZZZZ". So it has to go like this: a b .... z A .... Z aa ab .... az aA .... ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ So it has to try every combination with all the 26 letters, making...more >>

What Workgroup
Posted by Tim Marsden at 9/28/2004 10:00:20 AM
Hi How do I tell if the computer my app is running on is part of a workgroup and find its name. Thanks Tim ...more >>

RichTextBox...
Posted by VJ at 9/28/2004 9:55:59 AM
How can you automatically increase size of (Height and Width) of a TextBox when the user types in the box (as in powerpoint for example). . VJ ...more >>

Error: "WARNING: Language ID '0' not supported"
Posted by Steven at 9/28/2004 9:53:33 AM
Hi all, I have a solution with a VB.net project, and a installer-project. When I build the solution, I get the following message; WARNING: Language ID '0' not supported. To the installer project, I added the option to check for the ..net framework. If not present, it will install dotnetfx.e...more >>

class working as array
Posted by peter NO[at]SPAM mclinn.com at 9/28/2004 9:52:15 AM
I want to create a multidemensional arraylist. Seeing as they don't exist I was wondering if there is a way to create a class that works like one. I basically want to use it like this Dim MyArray as classNewArray MyArray.add("Data1", "Data2") or the looping claus.... It set it to gro...more >>

Stable Thread Timing?
Posted by gregory_may at 9/28/2004 9:32:35 AM
I have an application where I am using a System Thread to capture the screen & Broadcast it to clients. Its "working", but the timing on the background thread gets wildly erratic at times. Some times, its right away, some times after 10 seconds. I have included the setup of the process and ...more >>

Error using object type array.
Posted by William Apple at 9/28/2004 9:14:33 AM
Despite the fact this deals with webservices I believe it is a VB question. I am working on a test application that passes data to a webservice. The webservices takes a variable type that is defined below: Public Class Variable Inherits MarshalByRefObject '<remarks/> Public s...more >>

Floating Controls?
Posted by M>ike at 9/28/2004 9:12:42 AM
Hello, I'm looking to produce a front end portal type thing for our companies intranet in a similar sryle to the likes of Yahoo. I'm aiming to have a number of controls to display different content groups (tasks, announcements, contacts, etc.) but different users will have different permissio...more >>

Crystal Reports ? Set Order By At runtime
Posted by BrianDH at 9/28/2004 9:05:05 AM
I am looking for a way to set the Sort Order by at runtime Sort the output of field "totalfees" to (descending) or (ascending) at runtime. Thanks BrianDH...more >>

Formatting an HTML table using VB.Net
Posted by Coleen at 9/28/2004 9:05:02 AM
Hi all :-) I have a weird formatting problem with an HTML table that I am = populating using VB.Net and HTML. Here is the snippet of code for the cell I'm trying to format: Dim ld_tot_pet_clean_fee_calc As Double ld_tot_pet_clean_fee_calc =3D li_net_total_calc * 0.0075 ld_tot_pet_clean_fee...more >>

Whidbey: Add New data source does not work.
Posted by rogsonl at 9/28/2004 8:31:05 AM
My computer was moved last week, and the company changed the network groups we work on. As a result, one of the main benefits from Whidbey (database connectivity) no longer works. Situation: 1. I open a new project based on a windows form 2. I click on "data" and then "Add New Data Source" t...more >>

Best way for Saving User Preferences?
Posted by Tom at 9/28/2004 8:14:47 AM
I am planning on adding a Preferences form to my application and using the Property Grid to display the preferences to the user. What do you think would be the best way to save these preferences out to an XML file? Use the CAB (Configuration Application Block)? Save the preferences in a class ob...more >>

read XML nodes
Posted by Mike at 9/28/2004 7:55:07 AM
I have a XML file and i need to get the data of particular nodes ex: <myXML> <car1 save=true>bmw</car1> <car2 save=false>chevy</car2> </myXML> I need to read the node/attributes and if car1 save=true then display the data for that. I can create the XML on the fly with my tag names ...more >>

nonsecure items and my style sheet
Posted by rodchar at 9/28/2004 7:49:14 AM
Hey all, I have a blank form with a stylesheet on it. When I goto that form I'm getting the message there are nonsecure items would you like to continue? I've specified <LINK href="https://mysite/cola-2.css" type="text/css" rel="stylesheet"> I think I'm hitting a moving target. First,...more >>

How to determine the version of .net framework that the assembly is executing
Posted by tamarana NO[at]SPAM yahoo.com at 9/28/2004 6:42:42 AM
Once I redirect an assembly to run on a different framework than that it was complied on, how do I get the version of the framework that the assembly is executing on. System.Environment.Version gives the version of the framework that the assembly was built on....more >>

Oh, I disrupted your littel community. <sob, sob>
Posted by DANIEL HENEGHAN at 9/28/2004 2:37:28 AM
Hey, this is a matter of life for the American worker. I don't give a damn if you are discomfited by my opinion. I am not trying to persuade YOU, I only seek to inform the VAST majority of American workers who are not aware of the reason for why they are finding it exceedintly difficult to find a...more >>

Grayscale ColorMatrix Difference
Posted by henrycortezwu NO[at]SPAM hotmail.com at 9/28/2004 2:20:18 AM
Hi I was at the search for making e.Graphics.DrawImage turn any image to Grayscale, and I found two similar solutions but different ColorMatrix values, what is the difference between the two? Is there an industry standard for the GrayScale ColorMatrix values? Thanks, Henry Solution #1, Jac...more >>

How to display items as two columns in a Listbox
Posted by Mamatha at 9/28/2004 12:10:54 AM
Hi I have some items in a listbox,in VB.NET application and i want to displayed it to be in two columns,how can i display is it possible with the listbox or any other alternative option,please let me know. Mamatha ...more >>


DevelopmentNow Blog