Home All Groups Group Topic Archive Search About

Visual Basic .NET

microsoft.public.dotnet.languages.vb
Score Send keystroke to a datagridview control
Bernardo Salazar newb - 28 Apr 2007 5:20 PM - 4 messages
Hi everybody... i need help with this issue: i have a textbox control with the focus. at side, i have a datagridview control populated with some data. i need to control behavior of dgv control from textbox. when i press pagedown/pageup ...
Score a vb calculator, but with a twist.??
Ron - 28 Apr 2007 4:00 PM - 4 messages
Hello, I made a vb calculator just a simple one using code like this. ansmult = txtinput.text * txtinput.text ansplus = txtinput.text + txtinput.text but my calculator works like this.  I enter in a number say 20 when I ...
Score Persistent settings
John - 28 Apr 2007 1:13 PM - 3 messages
Hi I need to store the path to db in my app. I have used app setting for this. Unfortunately various clients have different db paths and I have set them up once on each client location. The problem is that when I send them updates ...
Score Persistent settings
John - 28 Apr 2007 1:12 PM - 5 messages
Hi I need to store the path to db in my app. I have used app setting for this. Unfortunately various clients have different db paths and I have set them up once on each client location. The problem is that when I send them updates ...
Score vb.net c# mix
John - 28 Apr 2007 10:25 AM - 5 messages
Hi Can I add classes written in c# to my vb.net project? If so how can I call c# classes? Same as in vb.net? Thanks Regards ...
Score How does WebRequest work?
Tosco - 28 Apr 2007 4:42 AM - 2 messages
I'm trying to use for the first time WebRequest, but all the simplest examples that I find in the documentation or Internet don't work. For example this:     Public Shared Sub Main()       Dim request As WebRequest = WebRequest.Create("http:// ...
Score Can someone tell me where to post a code question for the following
jbonifacejr - 28 Apr 2007 3:52 AM - 3 messages
Sorry if this angers anyone. I'm posting here and to the .NET group. I am unable to get a return value from a stored procedure in .NET using the following Sproc and .NET code Here is the code in my stored proc. ...
Score vb equivalent
John - 27 Apr 2007 11:20 PM - 4 messages
Hi What is the vb.net equivalent of vb set x = nothing? Thanks Regards ...
Score Zipping files
John - 27 Apr 2007 11:15 PM - 5 messages
Hi Is there a way in vb.net to zip files? Thanks Regards ...
Score Date/time calculations
John - 27 Apr 2007 7:44 PM - 4 messages
Hi How can I check if the value stored in a datetime variable is over an hour earlier than current date time? Thanks Regards ...
Score Get file's associated application / app icon
LoanWolf - 27 Apr 2007 7:38 PM - 6 messages
I'm working on a Windows Explorer-like application. What is the best way to find out what application is set to open a particular type of file?  Is there a function to do this?  Do I have to go ...
Score how to correctly dispose/close a form?
Rich - 27 Apr 2007 6:52 PM - 4 messages
Public Class MainForm    Dim frm As DetailFrm  '--frm is a Form Level variable Private Sub MainForm_Load(...)    frm = Nothing .... End Sub Private Sub btnOpenDetail_Click(...)Handles btn.Click   If frm Is Nothing Then           frm = New frmDetailData ...
Score possible to use Bang ! notation in place of "Not" keyword?
Rich - 27 Apr 2007 4:22 PM - 7 messages
If Not st1.Equals("something") then   Do Something Else End If if str1 != "something" Then ... I realize that != is C# stuff and/or can be also be used in Tsql, but is there any implementation of bang ! in VB.Net?  Just checking.  Any samples ...
Score string extraction
Etayki - 27 Apr 2007 3:39 PM - 9 messages
Hi! I am having this problem. I have two strings: george.b***@krypton.co.au liana.sa***@lertin.gov.uk I want a general expression that will extract the following from the two strings above: co.au gov.uk Does anyone know of how to do this in a few lines of code using ...
Score Multiple Source Files and Delegate/AddressOf
eBob.com - 27 Apr 2007 2:59 PM - 4 messages
(Not that size matters, but ...) I have a program which is getting too big. So I'd like to split it into several source files.  I know that I can create a ModuleX.vb source file which looks like this ... ...
Score Finding a share's directory spec
NetworkElf - 27 Apr 2007 2:39 PM - 16 messages
Hi all, I'm writing a service that needs to discover the full directory path for a given locally based share at startup. IOW, I need to have the service running on someserver to take  \\someserver\someshare and give me ...
Score Where does the config file go?
Jerry Spence1 - 27 Apr 2007 2:37 PM - 3 messages
I am getting a protocol violation error from an IP product and after some searching I found the following fix: <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings>   <!--   User application and configured property settings go here.--> ...
Score Querying a CSV File
ge0193387 - 27 Apr 2007 2:19 PM - 3 messages
I have a csv file here that is output from another program.  Once this csv has been completed the information needs to be extracted in multiple formats into a formatted excel spreadsheet (sheet a is ordered a certain way with specific information and summary rows, ...) ...
Score Sending email from within app
John - 27 Apr 2007 2:15 PM - 15 messages
Hi How does one send email from within a vb.net app? Thanks Regards ...
Score How to capture Item's event through an object of its collection in a external class?
planet.creativa - 27 Apr 2007 1:53 PM - 3 messages
There are two classes 1) Key - contains some public variables, one method "Reset" and one event "valuesReset" which is raised by Reset method. 2) Keys - this class is collection of objects of class 'Key' and it is inherited with ReadOnlyCollection(Of key). ...
Score About Hashtable
Rajeev - 27 Apr 2007 12:36 PM - 2 messages
Hi, I am using a eventgenerator class that accepts HashTanle as one of its parameter. I have to pass NULL for that value in my vb.net code. I tried DBNull but it is not working. Could anyone help me with this ? ...
Score How to pass args for events
spaulsamin - 27 Apr 2007 11:40 AM - 2 messages
Hi     Please let me know how to do the following here, i have property and event in a class, now i want to fire the event from the property when i get value, how to pass args for the ...
Score Copying/Cloning a control
Jon Ellis - 27 Apr 2007 7:44 AM - 5 messages
Hi All, I want to implement an 'generic' undo by placing a copy of a control in a stack using System.Collections.Generic.Stack. Basically this way I don't need to know if a user has edited text in  tree, added or deleted a node etc, ...
Score Insert to access database via vb.net 2003
Mike.Kanet - 27 Apr 2007 4:41 AM - 4 messages
I have been trying for the last couple of weeks to insert a new record to a database. I have been able to update the existing records but when I try to insert it does nothing, not even give me an error code. ...
Score extra row being added to table
Alex - 27 Apr 2007 4:15 AM - 3 messages
Whenever I run this code, I get an extra row added to my table with a primary field text of "System.Object".  This code is intended to simply add a single row to a single table based on the value in the ...
Score Possible to call methods 2 levels up the inheritence tree possible(not just 'MyBase.X()')
Jack - 27 Apr 2007 2:59 AM - 3 messages
Hello, I have a 3-level class hirarchy: 1=Grandparent 2=Parent 3=Child The Grandparent has a method called OnPaint which I want to override from the Child class. I can do this, but how can I call the ...
Score Why doesn't the compiler use ToString for implicit conversions?
Mike S - 27 Apr 2007 2:28 AM - 4 messages
Maybe I'm missing some fundamental unwritten law of OOP, but I was wondering why the VB.NET compiler doesn't take advantage of the fact that all .NET objects, being derived from the Object base class, have a ToString method defined on them, when a reference type is used in an ...
Score Big Trouble in updating any application
Vinay Patel - 27 Apr 2007 2:23 AM - 2 messages
Hi frnds Here i stuck with big .. problem i have developed one billing system software now the problem is when ever i modify something in software , to install the new setup i has to uninstall previous s/w so is there ...
Score Regular Expression: Match with... tolerance
teo - 27 Apr 2007 1:30 AM - 2 messages
Hallo, I'd like to match a given string, let's say  fghilm in a bigger string, let's say abcdefghilmnopq but I'd like to have also a toleranche, let's say about 1 chars so if we have if in the bigger string ...
Score Coding complex interface among several people
Peter - 27 Apr 2007 1:22 AM - 5 messages
Hi, I have a project which has a very complex main interface,whose controls will be located in more than 10 layers of containers. How should we do to make every one do their work side by side? Is it a proper way to create MDI form? ...
Score Forms not responding
kahsiang.wong - 27 Apr 2007 12:34 AM - 5 messages
Hi there, When there is a new entry in the event log I will create a new instance of a form which shows the information in the event log. However, once the new form is created, my application becomes unresponsive. ...
Score Get IDispatch from DLL?
eselk - 26 Apr 2007 10:53 PM - 5 messages
I've got an out-of-process COM server (EXE) that I want to be able to control from Visual Basic.  I can already control it from a C/C++ app without any issues.  Under VBA in MS Access 2000, which I think is ...
Score Have I Found a Bug in VB.NET?
PB99 - 26 Apr 2007 9:24 PM - 3 messages
The following code example show some perculiar behavior. I have a Form with a listbox with "ContextMenu1" assigned to it. When I click in the Listbox, the ContextMenu is displayed. After I make a menuItem selection in the ContextMenu the event handing routine assigns the selected MenuItems ...
Score Accessing the output from Console.Writeline
Randy - 26 Apr 2007 9:04 PM - 5 messages
What does Console.Writeline do?  I'm going through some exercises in a book and it uses this command frequently to show the results of code execution.  On my system, nothing happens, however.  How do I access ...
Score Running a windows form project from commandline
RSH - 26 Apr 2007 8:13 PM - 2 messages
Hi, I have a silly question... I have a Windows Form project (VB.Net) that was created in Visual Studio 2003.  The project runs great. Now I have to add the ability to run the same application from a ...
Score try catch question
dawn13 - 26 Apr 2007 7:07 PM - 13 messages
I know this will sound like a really stupid question, but here goes. I am in the middle of debugging someone else's code and am getting more confused by the second.  Does the try catch require an "end ...
Score Not wanting to reinvent the UI wheel
Ronald S. Cook - 26 Apr 2007 7:03 PM - 5 messages
We're looking to not reinvent the wheel in designing the UI for our enterprise Windows app. It's a pretty common scenarion... user clicks to view a list of customers. User clicks on a customer and sees details of that customer which include a ...
Score Create a connection object (sql/oledb/odbc) based on connection method/string.
Hetal - 26 Apr 2007 5:58 PM - 3 messages
Hi... I am a newbie VB.NET developer and i am looking at working with ADO.NET rather than ADO. In one of our native VB application with ADO, we used to create 1 connection object and that would help us to ...
Score how to invoke a button Click Event programmatically?
Rich - 26 Apr 2007 4:34 PM - 9 messages
My from contains a "Move Next" button.  When the user clicks on the "Move Next" button - several procedures get invoked and eventually, the dataset underlying the form will display main data from the next record and will display detail data in a datagridview also on the form which is related to ...
Score unique id
cj - 26 Apr 2007 3:45 PM - 8 messages
I need to choose a 20 char unique id for transactions handled by my multithreaded program.  I can't decide if to use          Dim uid As String = Guid.NewGuid.ToString          uid = uid.Replace("-", "") ...
Score Users in a domain
Vayse - 26 Apr 2007 2:59 PM - 3 messages
1) How do I get a list of all users in a domain? I've searched the web, but any sample I've found seems to use VB 2003 or earlier. Is there any samples that user 2005, and make full use of the My ...
Score Which database?
Phil - 26 Apr 2007 2:44 PM - 19 messages
I'm looking for some advice on choosing a suitable database for a new application. It's going to be written in VB. I have a lot of experience with VB6, but I now have a copy of VB2005 Express, and intend to use this for the ...
Score can I connect two computers using sockets
ngr - 26 Apr 2007 2:16 PM - 6 messages
I am wanting to develop an application whereas two computers chat back and forth. The scenario is that I have a process running on both computers, which pass information to each other as they go about processing their jobs - I am aware that one computer has to act as server, and the other as client. ...
Score 2005 vs. 2003
cj - 26 Apr 2007 2:13 PM - 6 messages
In 2003 I had Public Class Form1      Inherits System.Windows.Forms.Form In 2005 I've seen it with and without the Inherits System.Windows.Forms.Form.  Is it supposed to be there?  I'm wondering ...
Score VB2005 Warnings - Help
JerryWEC - 26 Apr 2007 2:03 PM - 3 messages
I'm getting the following warnings related to UnmanagedRegistration.cache and ResolveAssemblyReference.cache and files being used by other process.  I just can't find out why I'm getting these messages.  Any help is greatly appreciated!!! Warning 1 Could not delete state file ...
Score Calling a class method 2 levels up in the hierarchy possible?
Jack - 26 Apr 2007 1:52 PM - 4 messages
Hello, I have a 3-level class hirarchy: 1=Grandparent 2=Parent 3=Child The Grandparent has a method called OnPaint which I want to override from the Child class. I can do this, but how can I call the ...
Score Combobox .change event stops work after a while??
Karsten_Markmann - 26 Apr 2007 1:48 PM - 4 messages
Hi I am building a large application where we use the combobox feature a lot. Its an office addin for office XP. I am using Visual studio 2003 VB. In outlook and excel it works perfect all the time, but in Word it ...
Score webbrowser send text to control
David A. Beck - 26 Apr 2007 1:47 PM - 5 messages
I need to enter data on a web page. I have been able to navigate using the VB.NET WebBrowser control and see the contents of each page. What I need to do now is to fill in the controls on the page with text and send an <enter> ...
Score Multithreaded and SQL connections
cj - 26 Apr 2007 1:32 PM - 5 messages
I have a multithreaded transaction processing app that now needs to write to a sql db.  I assume I will have to make the connection in the main program and then each thread/transaction would create it's own ...
Score Application Startup event / Splash+Login Screens
Richard Bysouth - 26 Apr 2007 4:24 AM - 6 messages
Hi In my app I have a SplashScreen, a login form and a main form. On launching the app, I'd like to show the SplashScreen while reading config files and attempting a database connection. I show progress of these tasks on a label ...
Score Newbie Question
igendreau - 26 Apr 2007 12:59 AM - 4 messages
Sorry to bug anyone with this, but I am a newb. Here's the deal: I am very experienced with VBA, do a ton of programming in Access.  I also have a lot of basic experience with ASP. Fire up Dreamweaver, ...
Score Classes and Namespaces
tshad - 26 Apr 2007 12:36 AM - 3 messages
I have a .dll that has MyFunctions as a Namespace and Class of FWData. If I have my using statement as: using MyFunctions.FWData Why do I have to set a new variable as: Dim fw = New MyFunctions.FWData(10) ...
Score Export DataGridView to Excel
Mike Wilson - 25 Apr 2007 11:23 PM - 6 messages
Hello all, I'd like to export a DataGridView to Excel. I am using .NET 2.0 and VB.NET. But I don't know if the user has Excel on their machines, so can't use COM Excel object. ...
Score ListView height that is required to display all the items
active - 25 Apr 2007 10:42 PM - 2 messages
I need to know the ListView height that is required to display all the items in the ListView. I've reviewed the properties but do not find anything I can use. Is there a way to do this? Thanks ...
Score How to secure pdf file exported from Crystal Report.
Simon Says - 25 Apr 2007 10:07 PM - 4 messages
Hi all, I've a vb application that uses the crystal report to display some reports. User have the option to export the report to pdf format. My question is that the report that the users export out, I do not want to them to be able to do ...
Score select *...where x in (" & obj & ")" -- what collection obj can I
Rich - 25 Apr 2007 9:38 PM - 4 messages
I need to build a sql string that looks like this: strSql = "Select * from tbl1 Where x In (123,456,789)" or strSql = "Select * from tbl1 Where x In (123,456,789,527,914)" The numbers represent RecordID's from rows I will select from a ...
Score Lost "Configuration Manager" option in .net 2005
Brad Pears - 25 Apr 2007 8:01 PM - 2 messages
I am working on a vb .net 2005 project. Recently I wanted to changed the location of my builds from debug to release. I clicked on the 'Build option and for some unknown reason, the "configuration manager" item is now ...
Score Regex'ing code functions - multiline?
Masa Ito - 25 Apr 2007 7:42 PM - 4 messages
I am trying to capture the contents of a function with Regex.  I am using Expresso to test (nice - thanks for the great tool UltraPico!).  I can handle my own with single line regex's (I think)..  I want to have a ...
Score Lost configuration manager in vb.net 2005
Brad Pears - 25 Apr 2007 7:29 PM - 2 messages
For some strange reason, the 'Configuration Manager' menu item that used to be on the 'Build' menu at the very bottom has gone missing in action... How can I get it back???? Help! Thanks,  Brad ...
Score Default References
Rex the Strange - 25 Apr 2007 7:27 PM - 2 messages
Is there a way to set up my environment so that I have a default reference to one of my modules (instead of having to select "Add Reference" for every new project I start)? And, ideally, it would be nice for these to be included as default ...
Score How to format a date to look like 2006-04-16T19:45:42Z
pamela fluente - 25 Apr 2007 5:10 PM - 4 messages
Hi, I wish to create a string from the current date now() so that it looks like the format used by Excel, for instance: 2006-04-16T19:45:42Z How would I achieve that? Thank you, -Pam PS Btw does that format has a name? ...
Score Thread issue
fniles - 25 Apr 2007 4:22 PM - 5 messages
I create a thread where I pass thru a message. When I click very fast many times (like 50 times) to create 50 threads, the message did not get pass thru ProcessMessage. For example: strBuffer = "#TRADE, D1410-123456, BUY, 1, ESM7, DAY, LIMIT, ...
Score Binary append
Freddy Coal - 25 Apr 2007 4:06 PM - 4 messages
Hi, I would like append strings to a binary file, but I don´t understand how make that. I try with: FileOpen(1, Folder_Trabajo & "\Toma_Trazas.FC", OpenMode.Append, OpenAccess.Write, OpenShare.Default) FilePut(1, "My string")   '<****** ERROR IN THIS LINE ****** ...
Score changes to a project
Tim Zych - 25 Apr 2007 3:59 PM - 4 messages
We have a .net solution that we make frequent changes to. Must we physically uninstall/reinstall the solution (really just the dll) every time, or can we create some project structure that enables us to move the dll to a public ...
Score reading data from dataset bound to a combo box.
Hetal - 25 Apr 2007 3:56 PM - 6 messages
Hi there.. I am a VB6 developer so kinda trying to figure how to work with VB.NET. I have a scenario where i have a DataSet bound to a combo box, and i would like to read a row from the DataSet based on the item ...
Score Datagrid sort problems - please help...
almurph@altavista.com - 25 Apr 2007 3:02 PM - 2 messages
Hi everybody,    I have a Web Application datagrid and its displaying columns of data. One of the columns has numbers in it. When I click on its title (to sort the data) - it does so up to a point. All numbers above 10 ...
Score Deleting a row from a dataset using DeleteCommand
DanG - 25 Apr 2007 2:19 PM - 4 messages
I do not want to delete the row from the database when the user clicks "delete" on the datagrid.  I want to mark the dataset record as deleted, and let the DataAdapter call the delete sproc when the "save" ...
Score How do I remove lines of data above a keyword and below a keyword in a text file
Quentin - 25 Apr 2007 12:54 PM - 2 messages
First off, I would like to thank those who have given me help so far! I would like to remove all the lines of data above the word Recipe in a text file and all the lines below the words "End of Recipe" in this ...
Score problem with type casting
Rajeev - 25 Apr 2007 12:21 PM - 3 messages
Hi, I am using a typed dataset ABC that contains a table Employee that conatins a column EmployeeId and EmployeeName. I want to select a row from Employee table from dataset ABC for which the EmployeeName is "John" what i am doing is : ...
Score SQL Server Logon
tc - 25 Apr 2007 10:55 AM - 4 messages
Does anyone have an example of how to connect to an SQL server and create a new database, then add a user and assign permissions?  One problem is that users may be user authenticated, not Windows authenticated. Thanks. ...
Score VB2005 question - numeric only textbox input
viv - 25 Apr 2007 10:11 AM - 5 messages
how do you trap keyboard codes for text box in VB2005 ? I'm looking for a code snippet to only allow numeric input in a text box (same as  Key event in VB6, then use Keyascii to decide action) ...
Score How to set focus on each tabpage in vb.net 2003
Localbar - 25 Apr 2007 7:15 AM - 2 messages
Hi all,     For example I have a Tabcontrol and 5 tabpage. I would like to set focus to tabpage 3 after some validation in form.     I try to do it..but cann't. Any idea hwo to do it. ...
Score Display of spaces in listbox items
Jeff - 25 Apr 2007 4:39 AM - 3 messages
Could someone tell me if it is possible to for a listbox displayed on an ..aspx web page to display more than a single space between words. all of the various test code below simply results in the display of a single ...
Score GetSchema to retrieve column properties
Ken - 25 Apr 2007 2:09 AM - 4 messages
I'm trying to run a loop to capture column property information from a table in my datasource.  Can anybody see where this is going wrong?         Dim tbl As New DataTable         Dim col As DataColumn ...
Score whats new in .NET 2.0?
Smokey Grindel - 25 Apr 2007 1:13 AM - 3 messages
Is there a site or article anywhere that lists whats new or changed in Web services in .NET 2.0 from 1.1? thanks! ...
Score Deployment Architecture/Attach SQL MDF
Richard Bysouth - 25 Apr 2007 12:18 AM - 4 messages
Hi I have 2 installers for my VB.NET app, one for the client app (exe, dlls, config etc.), one for server components (shared data files, sql express db). I have a few questions relating to the architecture of the deployment: ...
Score Import column from excel XP
Problematic coder - 24 Apr 2007 9:36 PM - 3 messages
Hi, I have just been asked to create an app that will import a specific column from an excel spreadsheet, something like sheet1 columnD or a column with the first row with a value of 'ID' whichever would be easier. The rest of what I need to do once I have the data I am ok ...
Score SQLConnection.connectiontimeout
cj - 24 Apr 2007 7:01 PM - 3 messages
MySQLConnection.connectiontimeout() returns 15.  I want to drop that to 3, but it is read only.  I see you can include the timeout "Connection Timeout=30" as part of the connection string but I don't necessarily want it at 3 during the connection--just for queries.  Is there a way to ...
Score Speed connecting to SQL using 2.0 framework
Darin - 24 Apr 2007 3:40 PM - 6 messages
This is going to be pretty vague. Our software was using the 1.1 version of the .NET framework and things were fine. In March we upgraded to using the 2.0 framework, and the visual studio 2005. Now, on the same hardware and program, everything is ...
Score Windows Dialog does not handle keydown event Enter or Return
kgerritsen - 24 Apr 2007 2:17 PM - 2 messages
I am building an application that will receive input from a barcode scanner.  The barcode scanner is configured to append to the front value a single character and hyphen that identify the barcode standard, then the value in the barcode, terminated by a return.  The ...
Score How to place content i variables from a website
Christopher Brandsdal - 24 Apr 2007 2:02 PM - 2 messages
Hi! I want to parse the content from a webpage [link] into my own website on another domain on another server. I want to put them into variables, so I can design the content myself. How do I do that? ...
Score Problem with Text file filtering
Quentin - 24 Apr 2007 1:57 PM - 3 messages
I am currently working with a text file and cannot seem to get it to filter right.  I am trying to delete every line above a keyword "Recipe" and every line below a keyword.  Or just move every line ...
Score WM5 problem
Tym - 24 Apr 2007 10:22 AM - 10 messages
Hi guys and gals! Been trying to program following Maarten Struys' demos on the SMS intereception and I'm having severe problems. First of all, I'm a VBer not VC, though for this I have tried to work my way ...
Score binary file transfer
Murtaza - 24 Apr 2007 7:10 AM - 2 messages
need help for binary file transfer over tcp socket . cant generate the correct file . but file size if ok. thanks. ...
Score parameterized query from code
Ken - 24 Apr 2007 4:01 AM - 12 messages
Can anybody see where this is failing? Private Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click         da.SelectCommand.Parameters.Add("@CustomerID", SqlDbType.VarChar, 40)         Dim ds As New DataSet ...
Score short circuit a recursive function
Rick - 23 Apr 2007 10:25 PM - 9 messages
I have the recursive function below which I use to find a datagridview with a certain bindingsource. When the grid is parented by a control with only one child (the dgv) the function works ok, but when there are multiple controls the function calls ...
Score FormClosing and FormClosed ?
Pascal - 23 Apr 2007 7:55 PM - 2 messages
bonjour does somebody explains to me the difference beetween frm_roman_FormClosing and frm_roman_FormClosed ? Where do i have to call the sub fermer() to be sure nothing remains in memory? When i quit this form with the red cross on the form and reopen it after, ...
Score Throwing ArgumentExceptions in Property Setters
Mike Hofer - 23 Apr 2007 6:38 PM - 4 messages
Quick question. When you guys throw an ArgumentException (or one of its deriviatives) from a property setter, what do you use as the argument to the exception's constructor? For instance: Throw New ArgumentOutOfRangeException("value") Passing "value" seems less helpful than it should be; you have to ...
Score microsoft.visualbasic namespace obsolete?
cj - 23 Apr 2007 6:14 PM - 17 messages
I am under the impression they are obsolete methods included for backward compatibility.  For instance is using filedatetime("c:\myfile.txt") still the accepted way of getting the date c:\myfile.txt was last modified?  I see filedatetime is in the ...
Score strings and input files
Marco Trapanese - 23 Apr 2007 6:00 PM - 3 messages
Hello, I have to define a structure for a plain-text input file. It should have some general text fields and a long table of values. These values are grouped by rows and can be integers, floats, strings. Here an example: ...
Score problem with postback
Harry - 23 Apr 2007 5:04 PM - 5 messages
Hi, This aspx page (let's call it thispage.aspx) fetches data from a sqldatasource, then performs several things (in code-behind) and, to simplify, passes data from code-behind via a hiddenfield to a javascript in the aspx file. This javascript performs things and finally send data via a ...
Score How do I trigger the writeline method to write to a text file by keyword and end another key word
Quentin - 23 Apr 2007 12:51 PM - 3 messages
Any code on how to start write to a new file would be appreciated. In the example below:  How would I start the write to a file on the word "Recipe" and then write every line beneath it until "End of Recipe" ...
Score How to sort a XML file??
richardkreidl@northwesternmutual.com - 23 Apr 2007 11:32 AM - 2 messages
I heard of importing your xml doc into a dataset, then sort the dataset and re-populate your xml, but I'm not sure how to code this or is there another way of sorting a XML file? I not familiar with ...
Score DOS/UNIX/MAC files
CoRrRan - 23 Apr 2007 10:30 AM - 5 messages
I would like to know how I can check, prior to opening a textfile, for DOS/UNIX/MAC formatting of the file. Is there a way to do this, or is it impossible? Thx, CoRrRan ...
Score POS Printer in .NET
Toni - 23 Apr 2007 9:17 AM - 9 messages
How to use POS Printer in .NET. I am searching by google but every code doesn't wok. I need some code (VB or C#) for printing on POS printer (printer for bills, bus, train or boat tickets snd similar)? ...
Score Problems with SQL server
Toni - 23 Apr 2007 7:07 AM - 13 messages
I have some program in VB6 (I can make new in .NET if it is necessary). This program is working with SQL Server 2000 database from long distance (computers are in agencies and is connected to DSL and VPN connection). ...
Score character encoding
LiMBi - 23 Apr 2007 3:02 AM - 5 messages
Hi, Is there a way to encode "??????????? ??????????" to "¶ÒÁ¹Ô´¹Ö§¤Ð µÃ§·Õèà»ç¹" and vice versa. Thanks ...
Score singleton
Nick C - 22 Apr 2007 9:57 PM - 6 messages
Hi I would like to implement a singleton in vb.net. The application only can be run by one user at the time. Does anyone have any articles/samples that can help me with this problem? thanks N ...
Score vb.net 2005 listview button
marfi95 - 22 Apr 2007 7:59 PM - 2 messages
Is there an easy way to put a button in a subitem column of a listview ? I know you used to have to float it over the column and such, but I want a button (basically an array of them, 1 per detail row) on each ...
Score Call Shell and Working directory
Lobb[cz] - 22 Apr 2007 6:14 PM - 3 messages
Hi. I have a problem with running application from windows form application (VB.NET). I'm using Call Shell(path, AppWinStyle.NormalFocus, False) but I need to define working directory 2 (in WinXP shortcuts it's "Start in:" textbox). Any idea how to do that? ...
Next » 2 3 4 5 6 7 8 9 10