Answer Questions
Stephane Guerin How to make shortcut of program
Hello How can I create a shortcut of program on Desktop, Start menu, Program Menu and Start Up Menu Thanks & Regards There is an API routine... Private Declare Sub HlinkCreateShortcutFromString Lib "hlink.dll" (ByVal grfHLSHORTCUTF As Integer, ByVal pwzTarget As String, ByVal pwzLocation As String, ByVal pwzDir As String, ByVal pwzFileName As String, ByVal pp ...Show All
sheitz Pass a TreeNode argument ByRef or ByVal?
I used the following code to add a child treenode under a parent treenode, when passing the parent treenode by reference, after adding the child treenode, the selected treenode changed back to the parent node instead of the child node, after I changed the parementer from ReRef to ByVal, after adding the child node, the selected node stays at the added node, which is what I want. But I still do not understand why byRef does no ...Show All
Prash_outlawerz Note to Developers - Frustration with thread isolation restrictions
****Sigh**** I've had this favorite old vb6 program. It gets pixels off the whole screen I do a getpixel for the color information. It's timer driven sampling at 100ms intervals. I converted it to .dot net but notice that old API calls were not working. That wasn't because of marshalling. When I looked up the documentation (GetAsyncKey is an example, I noticed that these routines will return a zero if they are not called by the thread ...Show All
jaguiargn Calling API with "void *"
I declare a function in VB6 thusly: Private Declare Sub CopyPtrFromStruct Lib "kernel32" Alias "RtlMoveMemory" ( ByVal ptr As Integer , ByRef Struct As Any, ByVal cb As Integer ) and call it: CopyPtrFromStruct(mxcd.paDetails, Struct, Len(Struct)) What should I change the "Any" to in order for this to work I tried Integer, but then got the compiler error "Struct cannot be converted to Intege ...Show All
pbjorge12 Can anyone here tell me the shipping date and the price of vb/vwd 2005
Now I'm kickiing a project, I'd like to dev it using the vb/vwd2005.But I dont know the shipping date and price of vb/vwd 2005 :( Can anybody tell me - Mike Hi, Detailed pricing information can be found from this link: http://msdn.microsoft.com/howtobuy/vs2005/ There is no guaranteed ship date as yet. Last when I heard it was Sept 2005 for the final version. Regards, Vikram ...Show All
Beuker How to create UDP program that LIsten to Different Port
Hi, I would like to development one program that able to send different type of data structure base on the port. Like May be Video data using port 1000, Text data using port 2000 and etc. When receive the data, it can be know this data is received from which port. On the Server: Open 2 ports and wait for data Start two threads to read from two ports Dim VideoClient As New UdpClient ...Show All
dminuti Help!!! Send Email with Authentication
Hi. I need help!!! I'm trying to send a email with smpt basic authentication (username and password) with Visual Basic 2005... but...!i can't! Can anyone please help me I need to use ICredentialsByHost Thanks a lot and sorry if my english is not very good! Hi! There are some new APIs in the .NET Framework 2.0 that provide the functionality you're looking for. If you need to pass a username and pa ...Show All
kefei 'Declaration expected' error
hi, here is my code, i receive strange error... Dim rptKadirReport As ReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument() Dim reportPath As String = Application.StartupPath & "\.." & "\.." & "\" & "KadirReport.rpt" Private connStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=dental.mdb" Private conn As System.D ...Show All
Squirrel Problem passing parameters to Crystal Report...
Hey everyone, I am having trouble trying to pass three parameters to a crystal report. I have a datatable that contains each parameter field name and the respective values as entered by the user. I am getting no error messages, however, when I set the report source for the reports viewer, I am still getting prompted to enter the parameters. I am even displaying a message box for each parameter before the report is displayed that verifies each p ...Show All
UKAndrewC Application.ThreadException event troubles
Could someone explain why this code will not trap unhandled exceptions. This is in VS2005 and is a simple winforms app with a single form: Public Class Form1 Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load AddHandler System.Windows.Forms.Application.ThreadException, AddressOf ErrorHandler End Sub &nb ...Show All
nishu Vertical spacing on rows in a combobox
At the moment I am populating a combobox with a database table which includes a product part number and two items of specification data (voltage and description). The problem I have is that each row is a concatination of the above data with a set number of spaces between each item(literally..." ") and if there is a difference in length of any item it up mucks up the spacing between each item on a row....ie Part1 30V PDU Par ...Show All
DexterDurai TableAdapter Parameterized Query (Access DB)
How can I add a parameterized Access query to a TableAdapter. For SQL Server I could simply say SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax FROM dbo.Customers WHERE ContactName LIKE @ContactName But it doesn’t work in case of access db. complains about @ what if i need more than one parameter, would they both have ...Show All
R Zare Slow ReadOnlyCollection
Hi all, When I try to search all files recursively (to use with the copy command), with the following code: Dim c As Integer Dim files As ReadOnlyCollection(Of String) files = My.Computer.FileSystem.GetFiles("C:\", FileIO.SearchOption.SearchAllSubDirectories, "*.*") For c = 0 To files.Count ListBox1.Items.Add(files(c)) Next It takes way too long to collect the files into the collection, ...Show All
Prambo Making a picturebox have a transparent background
I have a picture of a panda with a pink background (panda_down.bmp) and I was wondering: how do I get that pink background to be transparent All I am really doing is just making a game where you use the controls to move around, i have pictures for the character facing different ways and i just want the background to be pink. Dim TempBitmap As Bitmap TempBitmap = Bitmap.FromFile("C:\Panda.Bmp") TempBitmap.MakeTransparent(Color.FromArg ...Show All
waheedahmed Object reference not set to an instance of an object.
I'm receiving this error: "Exception Details: System.NullReferenceException: Object reference not set to an instance of an object." In regards to this line of my code: ElseIf Request.Cookies("userid").Value = "" Then and if I comment out that line it also gives me the error in regards to this line: UserID = Request.Cookies("userid").Value Here is my code behind: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Partial Class ...Show All
