Constructors calling other constructors in vb.net a la c#
In c# you can have public class Foo { public Foo(string name) { //do something } public Foo(string name, int bar) : this(name) { //do something } } Is there a VB.Net equivalent? ...
In c# you can have public class Foo { public Foo(string name) { //do something } public Foo(string name, int bar) : this(name) { //do something } } Is there a VB.Net equivalent? ...
I need to insert a row with a DATE value. How do I set its default value to Now() or similar? ...
I have just started coding my Computing project for my A-Level, and I will admit, I am far more experianced in 6 than .NET (as embarrassing as that is to say). I get extra marks for making everything presentable, so was wondering if it was possible to add icons into .NET buttons. For example if I have a button to add an entry to the dat...
Hi, if I have a known COM library (the .ocx file itself) is there any way in C# to extract the CLSID info of it? Basically I need the same infos from the file Visual Studio adds to its project file when you add a reference to the file. Can these be retrieved from the ocx file directly or by searching the registry? Also if i know a prog...
I am building a module using linq to SQL and I am running into some problems. I have been following Michal Washington's tutorial on adefwebserver.com. The problem is that VB does not recognize my Complaint Class when I try to create new Complaint object. Any idea why I am unable to Dim a Complaint object? Here is my code: View.ascx.vb( ...
I am able to open and see crystl reports designed for VB5 on crystal report in VS 2005. The database in use is Ms Access 2003; Error reported while trying to bind the old .rpt files to winforms. value cannot be null parameter name : path1 Please help me in how to fix this problem. Thank you ...
I need to setup an application to scan a barcode from a packing slip and the associated fulfillment items on a windows CE 5.0 device and update the inventory on the server. I'm using VB.NET. However, what is the best way to interact with the database? Integration Services, ADO.NET, RDA... etc... it's a bit overwhelming trying to figur...
Here's the code on the sending side of my sockets: Private Sub Send(ByRef Buffer() As Byte) Dim obj_StateObject As New StateObject obj_StateObject.WorkSocket = m_tmpSocket m_tmpSocket.BeginSend(Buffer, 0, Buffer.Length, SocketFlags.None, New AsyncCallback(AddressOf OnClientSendComplete), obj_StateObject) ...
I have an array of integers like these; dim x as integer()={10,9,4,7,6,8,3}. Now I want to pick a random number from it,how can I do this in visual basic?Thanks in advance... ...
I have to write an application in Visual Basic.Net that will open an excel file, run through the contents an export a test file for processing. The application works great for me (Windows 7) but when transferred to a WinXP PC gives the following error: HResult 0X800A03EC I can replicate this error by making the Excel Application visib...
Could someone explain to me the concept of Get and Set property? It's just not sinking in for me. Thanks! ...
I have a visual basic file with a number of functions I want to use inside my XSL. I can build it as a dll and reference in my XSL project but I don't know how to reference it in my XSL file. I am using visual studio. I get the error "Cannot find the script or external object that implements prefix..." I want to do something like: xml...
The code below shows me (I think) that the "for each" loop is about 10% faster than the "i to n" loop, but the "for each" loop creates 567k in new memory? Is this right? Which way is generally most efficient with regards to speed and memory usage? If you want to run this code in VB just add a button and 2 labels to a form. Public Class...
I'm trying to get the ip address of my local PC, and one one of my other PCs it gets the v4 address fine, but on this one the code: Dns.GetHostEntry(Dns.GetHostName).AddressList(0).ToString() returns what I guess is a IPv6 address: fe80::9c09:e2e:4736:4c62%11 How do I get the IPv4 address? ...
Hi, I would like to create a console program in VB.net that would allow parameters. What i would like to do is in the code below add parameters so the webpart page can be created from the Run menu. e.g. C:.......\MyProgram.exe "Design" --This would then create the Design webpart page. I tried looking at the internet but was not very su...
I'm trying to force an inherited class to use a custom attribute. I'm creating a class library where the user who wants to create an item will do so, but be forced to add an attribute (or visual studio will automatically add the default attribute) to their inherited class. Here is what I'm hoping to achieve: BaseClass.vb: <CustomA...
Hello Everybody! I need help converting this into PHP: Public Function Encrypt(ByVal text As String) As String Dim charSet1 As String, charSet2 As String, i As Long Dim pos As Long, encryptedChar, encryptedText charSet1 = " ?!@#$%^&*()_+|0123456789abcdefghijklmnopqrstuvwxyz.,-~ABCDEFGHIJKLMNOPQRSTUVWXYZ¿¡²³ÀÁÂÃÄ...
I want to make an application witch involves logging into google. It is basically a small application to always have your gmail with you without always having to go to the web browser and log in. Basically what I want to do is, when the person signs into their google account (or the page url changes) I want the webbrowser to refresh and ...
Why LINQ to SQL does not work with silverlight vb, but if successful c #? ...
During the design-time I set the following properties of the ADO Control: -ConnectionString -CommandType -RecordSource At the same time, I set the following properties of the Data Grid Control: -DataSource My problem comes when I deploy this application in Production Environment. My Production SQL Server has different UID/PWD. So,...