.ini File
I have about 10 values that I would like to store, that can be read by my program when it starts. I am using an .ini file to do this. Everything I read says .ini files or a thing of the past and should not be used. There supposedly are better ways to accomplish this task. Could someone point me to a better wa... 26 Jul 2005 07:08
Printer
Hi all! I have a printer attached to my PC, and I share it to my LAN. The problem is how can I know which computer print the document, and how many pages they printed by using VB .Net! Thanks! ... 25 Jul 2005 05:26
Function Declaration
How do you define whether the return value of a function is ByRef or ByVal? I have a utility class that cleans imported records by doing *really heavy* string manipulation in lots of different methods, and it operates on DataTables in excess of 100,000 rows of anywhere between 4 and 30 columns. I'd like to ge... 24 Jun 2005 19:04
Connection string for Piped Delimiter CSV
hi, I need to connect a csv file as data source. the connection string currently using is cnxStr = "Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=" + CSVFolder + ";Extended Properties=""Text;HDR=No;FMT=Delimited;IMEX=1\""" it's working, however it's only able to read a row as one column. I have multi... 24 Jun 2005 08:13
How can I print and printpreview a datagrid?
I'm trying to print directly from a datagrid and I'm running into some problems. Heres a snipit of code I'm using for printing: '******************************************************************** Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles btnPrint.Click ... 16 Jun 2005 09:23
App.config
Ok, I'm totally confused... I want to store my db connect strings in the app.config file. So I added an app.config file and renamed it to MyApp.exe.config Everything I've read says that it has to be located in the same dir as the exe so I put it in the /bin directory. Now I run the app (in debug mode from the I... 15 Jun 2005 16:04
Declaring structure arrays
Is there a way of declaring an array of a structure where the structure has a constructor? So if I had a structure say Friend MyStructure prop1 as integer prop2 as string sub New (p1 as integer, p2 as string) me.prop1=p1 me.prop2=p2 End Sub End Structure ' If I was declaring a single variable I co... 15 Jun 2005 06:22
Convert Images using IO.MemoryStream
I am trying to convert a bitmap to a JPEG MemoryStream and return a Byte array containing the resulting JPEG Image as follows: Public Function BmpToJPEG(ByVal BitMapIn As Bitmap, ByVal Quality As Long) As Byte() 'find the encoder with the image/jpeg mime-type dim codecs as ImageCodecInfo = Ima... 13 Jun 2005 21:06
Space function
In Vb 6 exist the SPACE function How to replace this function in vb dot net? ... 14 Jun 2005 03:52
Change the address bar of ineternet explorer
Hi EveryBody: How can I use win32 api to change the address bar of internet explorer; for example if i want to change the address bar from http://www.msn.cm/ to http://www.yahoo.com/, how can I do that, is there any function like sendmessage can handle this ? any help will be appreciated regard's Husam... 17 Mar 2005 12:18