thealca
Posts
-
Displaying Binary Image to PICTUREBOX -
Displaying Binary Image to PICTUREBOXHello, I used to display binary image in VB 6.0 using the following code:
dim byteImage() as byte ' assuming byteImage() has value display the image using PICTUREBOX object picturebox1.image.hpal = byteImage
This procedure seems to be not supported by VB.net, anybody has an know/idea on how will I do this in VB6.0? -
Crystal Reports Trusted ConnectionAnybody has idea how will i connect my crystal reports on a trusted connection. My code goes like this:
Dim CRReport As CRAXDDRT.Report Dim crDBTab As CRAXDDRT.DatabaseTable For Each crDBTab In CRReport.Database.Tables crDBTab.SetLogOnInfo sServerName, sDatabaseName, sUserID, sPassword Next 'For Each crDBTab In Report.Database.Tables
If I am to use a trusted connection sUserID and sPassword must not be supplied coz the Windows Auntheticity will be used, anybody has an idea on how it will be done? -
DATA LINK PROPERTY LAYER"modify the configuration file(s) of the app." I want this to be done in a GUI which is I thought It would be better if I can access the "Data Link Properties" GUI, from which I can select the Provider and the Data Source and save it to a file (might be .INI file or .XML file), so I don't have to edit the configuration file (app.config) file during deployment, which is also risky if you let somebody do the deployment because he might modify accidentally the other elements.
-
DATA LINK PROPERTY LAYERI want to access the "Data Link Property Layer" during runtime so that i could create a connection during deployment without editing the connection string value which is saved in a text file (which I usually do). Anybody has an idea on how will i access Data Link Property and display it during run time?
-
storing image to DatabaseHow do u store it programmatically, I am using VB 6.0 / .Net for example? :doh:
-
Image File Securitythanks i'll look into it
-
Text FormatIf .Text <> "##/##/####" Then Replace this with: if IsDate(.Text) then
-
How to call default text editorI don't get it, anyway, .Net has already included the RichTextBox component to its library, why don't use it. I don't like using external programs (as much as possible)especially if I can create my own. Anyway that me :)
-
Sending and catching strings from a DLLFor all I know the type of parameters three and four (string) should be LPSTR. void myfunction(long * param_one, long param_two,LPSTR * param_three,LPSTR * param_four) . . . we have same problem encountered when i create a dll in VC++, and it works when I used LPSTR, u can try this. I hope it helps
-
Image File SecurityAnybody has an idea on how I can secure the image the so that nobody can open, view and alter it even if it is transfered from one media to another.
-
Malfunctioning Autohide of Properties WindowI set all IDE windows to auto hide (Toolbar, Project Explorer, etc. including properties window) at first it seems Ok, the properties window when clicked it appears then when the focus is lost it hides. After about few minutes of working (properties window hidden) when I clicked on the properties tab, it does not display, I have to exit the IDE so that It works normally again. Anybody has experienced this? :doh:
-
C++ GUI BuilderHave u tried Visual C++?
-
add and remove rows in datagrid.DataGrid has to be bound to a DataSource before you can add and remove a row. Adding and removing of row has to be done in a recordset. Well I used VB6.0 and I used datagrid if I want to display the entire contents of a table. I the it does not require to be linked to a Datasource I use MSFlexGrid instead. I haven't explored it from VB.Net yet. Hope this helps
-
Newbie hereDim dlg As New OpenFileDialog() dlg.ShowDialog()
-
Setting the Datagrid Row Backcolor for Selected rowsthere is no way that u can do it in DataGrid as far as i know. . . u can try MS FlexGrid
-
Need suggestions on using a barcode scanner as a input deviceHow does it interface with PC? is it RS232? or does it have additional peripheral like PCI Interface cards? . . . . In that case, I think you should be contacting the "Barcode Scanner Vendor" regarding the drivers or commands you will use to communicate with the machine. If it is via RS232, try it with "Microsoft Comm Control", but still u need to know the commands you will be sending to the machine. Hope it helps.
-
insert statment"Date" is a VB reserved word, don't take it a habit of using reserved words, however u can still use it as a DB fieldm enclose it with "[]" MyOledbCommand.CommandText = "Insert Into Messages " _ & "(firstname,lastname,username,password,[date]) " _ & "Values (" & "'" & String2 & "', " & "'" & String3 & "', " & "'" & String4 & "', " & "'" & String5 & "')" good luck ;)
-
linking to CD writer ..I used nero for burning to CD, yes, it works in VB6, I've alreay tried it in burning audio (mp3's), but I did'nt make it work with Data (free style), you can download the Nero SDK from this site: www.nero.com/eng/SDK_API.html I hope this helps . . . and if you happend to make it work wite Data can plz it with me that thnx :)
-
Need suggestions on using a barcode scanner as a input deviceIf you are using scanner with keyboard interface, its just as simple as typing from a keyboard. Use notepad, scan a barcode, the data read will be displayed in the notepad. Hope it helps :->