Search results for query: *

  1. K

    Re-activate Form?

    Call the method which handles the form activate event. Regards, Karthik Simha
  2. K

    how i want to populate the datagrid

    check these... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconexecutingcommandthatdoesnotreturnrows.asp http://msdn2.microsoft.com/en-gb/library/3btz0xwf(VS.71).aspx Regards, Karthik Simha
  3. K

    Import Image From DialogBox. Store, Retrieve Image In And From Database

    Check these links.... http://www.vbdotnetheaven.com/UploadFile/aghiondea2/StoringImagesInVB11122005034248AM/StoringImagesInVB.aspx?ArticleID=7ed1fe42-0819-4912-88ae-bbc43829d8a6 http://www.codeproject.com/cs/database/ImageSaveInDataBase.asp Hope it helps Karthik Simha
  4. K

    keypress

    where ever you find +1 or -1 change it to +2 and -2 or something you like in the above method..
  5. K

    keypress

    PrivateSub TextBox1_KeyDown(ByVal sender AsObject, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown If e.KeyCode = Keys.Up Then TextBox1.Location = New System.Drawing.Point(TextBox1.Location.X, TextBox1.Location.Y - 1) e.Handled = True ElseIf e.KeyCode = Keys.Down Then...
  6. K

    Trouble with icons

    Check this attachment. Regards, Karthik Simha
  7. K

    Trouble with icons

    When ever you use visual studio form designer to set the icon or image (in case of picture box), the image or the icon is automatically added to the resource file. To view the resource file click on the "show all files" in the solution explorer and then try to open the [formname].resx file.
  8. K

    how to connect a database

    Check these below links, http://www.codeproject.com/vb/net/Working_with_Dataset_Grid.asp http://www.c-sharpcorner.com/UploadFile/mahesh/DataGrid11282005234057PM/DataGrid.aspx http://www.c-sharpcorner.com/Articles/ArticleListing.aspx?SectionID=1&SubSectionID=131...
  9. K

    keypress

    Hi, You can use a textbox (and make it look like a label) To make it look like a label TextBox1.BackColor = System.Drawing.SystemColors.Control TextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None TextBox1.Cursor = System.Windows.Forms.Cursors.Arrow TextBox1.ReadOnly = True...
  10. K

    Change Location Of Label

    label1.Location = new system.drawing.point(x,y) Regards, Karthik Simha
  11. K

    How to control Windows processes

    Hi, Use the following code to get the details of the process and display on the grid. To stop a process you can use objProcess.kill using the process id. To start a new process you can use System.Diagnostics.Process.Start("FileName.exe") Code to list the process running in the system...
  12. K

    How to update or apply patches to a .net application

    Hi, Check these links ... http://windowsforms.net/articles/appupdater.aspx http://csautoupdater.sourceforge.net/?gclid=CPilvcKDmYoCFRN8TAodnyUkjg Regards, Karthik Simha
  13. K

    Check For Negative Or Positive Value on Double

    Dim objD As Double = -1.123 If objD >= 0 Then MessageBox.Show("Positive") Else MessageBox.Show("Negative") End If
  14. K

    Exporting data from Dataset to Excel sheet in VB.net Windows Application & vice versa

    or you can just create a .csv (comma seperated) file, which can be opened from Excel. Regards, Simha
  15. K

    Generating Serial Numbers

    Hi Paul, May be you can dig more into "CustomActions" and "Windows Installer Properties" (like PIDKEY) you will be able to achieve what is required. Regards, Karthik Simha
  16. K

    Stop A Running Program

    Hi , If "cpr" and "crpcore" are windows services then we can start or stop the process using the below code Imports System.ServiceProcess Private Sub Stop_Processes() Dim myController As ServiceController For Each myController In...
  17. K

    Form Size

    Hi, To make your application robust enough to handle changes in screen resolution, need to take care of the following things while designing the screen i) Check the anchor properties of the controls like buttons, labels and text boxes which need not change its size with different resolution...
  18. K

    Generating Serial Numbers

    Serial number Hi , In case of setup and deployment project in VS 2003, you can try adding a new UI Dialog using the dialog editor called "Customer Information". This UI dialog provides us with a functionality of having the serial number. There is also an inbuilt algorithm (which can be...
  19. K

    Thread Problem

    Using Worker Threads Hi, Check this .. this gives a good understanding of how to used worker threads to improve UI response... http://support.microsoft.com/kb/318604 Regards, Karthik Simha
Back
Top