vb.net

startup form problem in vb .net

Hello Techies, In my vb.net project i have two forms names are emp and admin. Even i set startup form as emp it always load admin.Kindly help me to solve this problem. Thanks and Regards Alagar [email protected] ...

Is there a vb.net program that can modify its code at runtime?

Is it possible? Self modifying codes based on users choices. ...

Resize bitmap like in MS Paint

I need to resize a bmp like the resize works in MS Paint - that is with no antialiasing . Anyone know how to do this in c# or vb.net ? ...

How to connect vb.net to wamp server?

Do you know of any way on how to connect wampserver or phpmyadmin localhost to vb.net. I mean adding, searching, deleting, updating, listing of data from the localhost database via vb.net? ...

How to deploy my program into a CD?

I am trying to deploy my program using vb 2008 express edition into the CD but it has no progress at all and will take a long time when you run the setup.exe to another computer and in the end it will just pops-up an error. I have followed the proper setup procedure on how to publish the program into the CD and was able to successfully p...

Update ms access database via vb.net

How can I do that? I already have the code I'm working on but it seems that it doesnt work really fine. Here is how my program works. I input an id number(unique) on a text box and click the search button. The entries that corresponds to the id number is then displayed on the other text boxes. And then I try to edit one of the entries...

msgbox when user hits enter in visual basic 2010

hi all i just want to alert when user hit "enter" key. i tried this one in keyup event, If e.KeyCode = Keys.Enter Then MsgBox("msg") End If it didnt work, is that wrong ? thx ...

How to search data using OleDbDataReader in VB.NET?

With ms access as the database storage software. And if you know of other ways on how to read data base on a certain criteria and displaying the results that meets the criteria. ...

Nesting objects and where to retrieve data?

Hi all I am trying to re-write an existing system with objects. I have created a few basic objects but am stuck on exactly how to get them to work how I want. These are the basic classes: Public Class Course Public AcadPeriod As String Public AoSCode As String Public AoSPeriod As String Public Title As String Publ...

notifyicon stays on taskbar when app closes in visual basic 2010

hi notifyicon stays on taskbar when application closed, then when i move mouseover it, it goes. i tried this on shutdown, Private Sub MyApplication_Shutdown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shutdown Form2.NotifyIcon1.Visible = False Form2.NotifyIcon1.Dispose() End Sub it...

BlowFish.BlowfishNET.dll ???

hi all any one can help me to find this dll file? i need it for my graduate project urgently plz. i'm working on encrypting/decrypting tool for a streams/file(s), any guidance? thnx ...

Save in database didn't work ?! (VB.NET | OLE)

Hello ,, I used the following code to save what the user editing , the code don't give me any error code , but in the same time it don't do any thing , the data still without any new changes : Dim a As String a = comb3.Text & "/" & comb2.Text & "/" & comb1.Text Dim SavInto As New OleDb.OleDbCommand Dim ConStr A...

Disallow Text Selection in .NET WebBrowser

I do not want the text in my WebBrowser control to be selectable. How would I do this? ...

Error in getting Dates in database (BETWEEN Clause| VB.NET|OLE)

Hello , before a little time , I used a code to get the dates between 2 dates from the database (column with dates dd/mm/yy) , I think it works nice first time , the code is : Dim b As New Date Dim a As Integer a = Val(tx2.Text) b = System.DateTime.Today b = b.AddDays(-a) ...

populating a gridview with a button's click event

hi I have a page that has two dropdownlists(one for the locations, and the other for departments), an employee search textbox and a button. On the other page, I have a gridview. Now, what i want to archieve is that when a user types an employee's name in the textbox control, selects a location from the location dropdownlist, and a depa...

User Control ViewState/State Help needed

I need help making this code work better. Currently, what happens is when it reloads, I loose the third value which is a calculated value . I would like for my page to reload without loosing the values for each property and each instance of the user control on the page. Thanks in advance Private _Length As Double = 0.0 Publi...

VB.NET Sample app.config Access

Could anybody supply a sample code, showing how to integrate the app.config file with an application written in VB.NET. Specifically I need to extract database connect strings from the app.config file. ...

How to reference on cobol projects without compiler?

Is it possible to make different Configuration of one project one with and other without a installed cobol compiler? I have a big project general written in VB.Net with some underprojects written in cobol. Is it possible to create different Configs like "DebugVB" for the VB-Programmers and "DebugCob" for the cobol cracks? I think of a...

Working with Byte literals

I'm using the following function to brighten up color values (it's a lambda in my code, but that shouldn't make a differende): Function ReduceDistanceTo255(ByVal i As Byte) As Byte Return i + (255 - i) \ 2 End Function It won't compile, since the compiler interprets 255 and 2 as integers rather than bytes, making the result of typ...

How Do I Use the app.config file with a Test Project

I using unit testing, to ensure that I can read connect string information from the ConnectStrings section of my app.config file. This works fine in the application proper, However when I attempt to generate a unit test for this under the Test Project, the dll.config file is being ignored, and the connectstring info from the machine.con...