Search:

Type: Posts; User: Prahlad

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    10
    Views
    842

    5.0 Re: DBNull to Textbox Value

    You can use the string.IsNullOrEmpty or string.IsNullOrWhiteSpace methods to check your TextBox value.


    string yourValueToPutIntoDatabase = (string.IsNullOrEmpty(yourTextBox.Text)) ?...
  2. Replies
    5
    Views
    321

    Re: VB.NET How to Title Get Exe

    Have a look at the System.Diagnostics.Process class:


    Process p = <Get process>
    Console.WriteLine(p.MainWindowTitle)

    Reference: link
  3. Re: Error Sending Email from VB. (System.Net.Mail)

    This error usually means that the target machine is running, but the service that you're trying to connect to is not available. (Either it stopped, crashed, or is busy with another request.)

    In...
  4. Re: How do you learn Visual Basic on the internet?

    https://docs.microsoft.com/en-us/visualstudio/get-started/visual-basic/tutorial-console
    https://www.vbtutor.net/
    https://www.homeandlearn.co.uk/NET/vbNet.html
  5. Replies
    5
    Views
    340

    Re: vs2010 OR vs2019 Community

    Whenever new versions arrive, there are always new Features. You will only benefit if you update I find some new feature of vs2019 so that is beneficial for you let see

    1.Lightweight and modular...
  6. Re: How to duplicate a column in the same table (SQLite)

    This helped and it supports BLOB/TEXT columns.


    CREATE TEMPORARY TABLE temp_table
    AS
    SELECT * FROM source_table WHERE id=2;
    UPDATE temp_table SET id=NULL WHERE id=2;
    INSERT INTO source_table...
  7. Replies
    7
    Views
    479

    Re: Syntaxe sql - multi table

    Try it


    Imports System.Data.OleDb
    Public Class addNew
    Dim conn As New OleDbConnection()
    Dim sqlCom As New OleDbCommand()

    Private Sub btnAddNew_Click(sender As Object, e As EventArgs)...
  8. Thread: xml encoding

    by Prahlad
    Replies
    4
    Views
    305

    Re: xml encoding

    Dim Stream As New IO.StreamReader("File.xml", System.Text.Encoding.UTF8)
    Dim Reader As New Xml.XmlTextReader(Stream)

    Reference : https://stackoverflow.com/a/17528811/11954917
  9. Replies
    29
    Views
    1,265

    Re: Using Visual Basic to update excel file

    Dim oExcel As Object
    Dim oBook As Object
    Dim oSheet As Object

    'Start a new workbook in Excel
    Set oExcel = CreateObject("Excel.Application")
    Set oBook =...
  10. Replies
    2
    Views
    274

    Re: How to move taskbar button ?

    Imports Microsoft.WindowsAPICodePack.Taskbar

    Private WithEvents ttbButton1 As ThumbnailToolbarButton
    Private WithEvents ttbButton2 As ThumbnailToolbarButton
    Private WithEvents ttbButton3...
  11. Replies
    22
    Views
    1,313

    Re: Drawing on a Track Bar

    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    TrackBar1.Minimum = 0
    TrackBar1.Maximum = 11 ' 0...
  12. Replies
    1
    Views
    1,689

    Re: Food delivery app development

    lots of things but I have to suggest some important point from my point of view

    1.SIMPLE AND CLEAR DESIGN
    2.QUICK LOGIN AND CHECKOUT
    3.CONSISTENCY AND SIMPLE NAVIGATION
    4.PROMINENT CART BUTTON...
  13. Replies
    3
    Views
    397

    2.0 Re: Error generating Win32 resource ?

    added a new project and saved it, found the problem solved !!!!!!!!!!!!!!!!!!!!!

    somethings come by luck!
  14. Replies
    6
    Views
    707

    Re: Can someone help convert this nodejs code

    plz follow this link

    https://dzone.com/articles/integrating-nodejs-c-dll
  15. Replies
    11
    Views
    2,700

    VS 2013 Re: Change color HUE of picturebox ?!

    Private Sub PictureBox1_Click(sender As Object, e As System.EventArgs) Handles PictureBox1.Click, PictureBox2.Click '<--This is where we append the objects
    ActivePbox.BackColor =...
  16. Re: Why do I copy Table1 contents to Table with the error ?

    it's worked good for me
    plz try this :


    INSERT INTO DB2.TB1 SELECT * from DB1.TB1;
  17. Replies
    10
    Views
    1,334

    Re: Problems with ViewState

    Hello,@.paul.

    Please follw this step,To Problems with ViewState

    Step 1

    Create an app.browser file in App_browsers directory. Plug in page adapters in the app.browser file as follows:
    ...
  18. Re: [RESOLVED] What CTRL in .NET can display B-Code without parsing?

    You could add a reference to Microsoft Script Control Library (COM) and use code like this to evaluate an expression. (Also works for JScript.)


    Dim sc As New MSScriptControl.ScriptControl()...
  19. Replies
    1
    Views
    903

    Re: Nav Bar not displaying 1 sub menu

    Hello,@kuldevbhasin

    Please try this code,To nav bar not displaying 1 sub menu



    <script src="Scripts/jquery-3.4.1.min.js"></script>
    <script src="Scripts/bootstrap.min.js"></script>
    ...
  20. Replies
    8
    Views
    1,996

    Re: remove all security

    Remove security follow this link
    "https://support.microsoft.com/en-in/help/290991/how-to-manually-remove-sql-server-2000-default-named-or-virtual-instan"

    Import/Export
    Right click the database...
  21. Replies
    4
    Views
    579

    Re: print listbox item in multiple pages

    In regards to actual printing, I simple set the DocumentName of the PrintDocument, there is of course more to do here so it actually prints.


    Public Class SomeDemo
    Private dt As DataTable =...
  22. Re: [AngularJS] Single or Multiple Service & Controller

    Hello,@FunkySloth

    Please try this code,To Single or Multiple Service & Controller



    angular.module('myModule', [])
    .controller('MyController', [
    'Service1', 'Service2',...
  23. Replies
    27
    Views
    1,759

    Re: The titlebar with different colors

    Add This to a Module:

    Declare Function SetSysColors Lib "user32" _
    (ByVal nChanges As Long, lpSysColor As _
    Long, lpColorValues As Long) As Long

    Public Const COLOR_CAPTIONTEXT = 9

    And in...
  24. Replies
    2
    Views
    6,623

    Re: JQuery > button > click created link

    Hello,@Ecniv

    Please try this code,To JQuery > button > click created link



    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
  25. Replies
    2
    Views
    419

    Re: vb6 ListView click/ lostfocus bug

    You can try in MouseUp event.


    Private Sub lvlcheckin_MouseUp(sender As Object, e As MouseEventArgs) Handles lvlcheckin.MouseUp
    If e.Button = Windows.Forms.MouseButtons.Left Then

    ...
  26. Replies
    2
    Views
    500

    Re: Disable/Enable keyboard mapping

    If you want to "disable" other keypress events, maybe look at using code and ASCii to prevent certain events on taking place when user pressed the key for instance the 'TAB' key.

    Attached is the...
  27. Replies
    5
    Views
    835

    Re: [RESOLVED] Append table to ADO database

    Hello,@boops boops
    Please try this code,To Append table to ADO database



    adVarWChar = 202
    adInteger = 3
    file = "C:\TEMP\NEW.MDB" ; change to suit your situation...
  28. Replies
    17
    Views
    1,279

    Re: VB6 Bubble Sort

    Public Sub Array_BubbleSort(ByRef vArrayName As Variant, _
    Optional ByVal lUpper As Long = -1, _
    Optional ByVal lLower As Long = -1)

    Dim vtemp As Variant...
  29. Re: VB6 - how create a function with 2D array on parameter?

    Sub studentScores(ByVal name As String, ByVal ParamArray scores() As String)
    Debug.WriteLine("Scores for " & name & ":" & vbCrLf)
    ' Use UBound to determine largest subscript of the array.
    ...
  30. Re: How To select many fields by DISTINCT one field ?

    Hello,@nader

    Please try this code, How To select many fields by DISTINCT one field ?



    SELECT * FROM
    GPSReport AS G1
    JOIN (SELECT device_serial, max(datetime) as mostrecent
    FROM...
  31. Replies
    5
    Views
    630

    Re: HOW TO READ a vb 6.0 project in VB Net

    Although 2008 and the below version provide an automatic function to convert Vb6 code to VB.net framework. But the problem starts after the conversion, it Skips some code, adds function/variables on...
  32. Re: The problem with name and size column of DGV

    Hello,@nader

    Please try this code,To The problem with name and size column of DGV

    You could set the width of the abbrev column to a fixed pixel width, then set the width of the description...
  33. Replies
    6
    Views
    623

    Re: Reading a single value?

    Live Demo
    Module loops
    Sub Main()
    Dim a As Byte
    ' for loop execution
    For a = 10 To 20
    Console.WriteLine("value of a: {0}", a)
    Next
    ...
  34. Replies
    3
    Views
    1,189

    Re: How to call another Web API within Web API?

    Hello,@Winanjaya

    I also went through the same problem, after much research I discovered that the await operator does not stop the work if the HttpClient returns error 500.
    To work around the...
  35. Replies
    8
    Views
    1,658

    Re: Connection string in web.config file

    The connection string property must be placed under configuration tag in your web config file. Here is mine.

    <connectionStrings>
    <add name="myConnection" connectionString="Data...
  36. Replies
    9
    Views
    765

    VS 2013 Re: How to get an InputBox control

    Dim Message, Title, Default, MyValue
    Message = "Enter a value between 1 and 3" ' Set prompt.
    Title = "InputBox Demo" ' Set title.
    Default = "1" ' Set default.
    ' Display message, title,...
  37. Replies
    5
    Views
    1,452

    Re: Using multiple web forms

    Hello,@thorskonnord

    It is indeed a shortcoming of WebForms. In ASP.NET MVC you can implement as many forms as you want (and it is valid & correct behavior of web pages).

    The reason all server...
  38. Replies
    8
    Views
    975

    VS 2019 Re: Creating Windows Service

    The service we will create does nothing really useful other than serve as a demonstration. When the service is started we will log an entry in a database indicating that it has started. The service...
  39. Re: show a game tile (image) move from point a to point b

    Dim Offset As Point
    Private Sub PictureBox1_MouseDown(ByVal sender As Object, ByVal e As MouseEventArgs) Handles PictureBox1.MouseDown
    Offset = New Point(-e.X, -e.Y)
    End Sub

    Private Sub...
  40. Replies
    8
    Views
    1,658

    Re: Connection string in web.config file

    Hello,@aspfn

    Please try this code,To Connection string in web.config file



    <connectionStrings>
    <add name="yourconnectinstringName" connectionString="Data Source= DatabaseServerName;...
Results 1 to 40 of 121
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width