Search:

Type: Posts; User: aspfun

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    1,426

    What happens when form loading?

    There are a few subs in a form.
    sub new, sub onload, sub form1_load

    From form open, what is the sequence of subs loading? Which sub is loading first?
    What code should add in each sub?
  2. The Best Way To Close (Hide) And Open (Show) Form

    There are three forms in on project:Mai, formOrder, formShip.

    When one form open, I want to hide another two forms.

    For example, when formOrder open I want to make Main and formShip two forms...
  3. ExecuteScalar: CommandText property has not been initialized

    One ASP.NET project keeps on receiving a message below from "Try...Catch...End try" block.

    System.InvalidOperationException: ExecuteScalar: CommandText property has not been initialized

    I...
  4. Replies
    7
    Views
    3,430

    Connection string in web.config file

    I stored connection string in web.config file in which including server name, user name and password.

    Also, I use publish way to compile asp.net apps to web server.

    But, IT people said that...
  5. Replies
    3
    Views
    998

    Output error message to a txt file

    I used code below to display an error on the screen.
    I want to create a txt file error.txt and insert error messages into it.
    Where will add error.txt file be?
    I tried to put error.txt under...
  6. Replies
    2
    Views
    576

    How to code to upload to FTP server?

    For Winform project how to code to upload to FTP server?
    Does need third party library?

    The project I created is using SSH.NET and it works fine for two years.

    But, after Windows update it did...
  7. What Is The Best Way To Insert Pdf/Doc/Xls/Jpg File Into A SQL Table?

    In a winform project, I need to code to insert pdf/doc/xls/jpg file into a SQL table.
    What is the best way to complete it?
  8. Replies
    17
    Views
    5,316

    How To Use Between Is Select Statement

    A column OrderDateTime in a SQL table store data like below.

    2019-11-01 11:31:31.163

    2019-11-12 09:31:31.163

    2019-11-15 15:31:31.163

    2019-11-22 20:31:31.163
  9. Replies
    3
    Views
    482

    Please help modify code

    I learn OpenFileDialog but I don't know how to remove "All Files", "*.*" from OpenFileDialog.
    I want to list only Excel, PDF, Word and Jpg files.
    Please help.

    Dim fdlg As OpenFileDialog = New...
  10. Replies
    1
    Views
    3,043

    How to add scroll bar in content page?

    There are about 20 content pages in application with the same master page.

    Master page only has company logo and application title.

    How to add scroll bar so that various screen resolution...
  11. Replies
    1
    Views
    337

    Where To Put Error.Txt File?

    I created an error.txt file to save catches error as code below.

    Catch ex As Exception
    SaveTextToFile("Error in Main_load" & ex.ToString, "Error.txt")//savetexttofile is a function
    ...
  12. Thread: Run batch file

    by aspfun
    Replies
    3
    Views
    539

    Run batch file

    There a batch file order.bat like below. 12345 is a order number (it is variable) and aspfun is user name. (it is variable)

    D:\MYORDER\ORDER.EXE 12345$aspfun

    When double click order.bat will...
  13. Replies
    5
    Views
    485

    Need to upgrade to VS 2019 from VS 2017?

    VS 2019 was released.
    I search for what is new in vs 2019 but found that there is nothing special new features.
    Is it worth to upgrade?
  14. How to update one page after publish application?

    There are about 10 pages in one application.

    After publishing application to web server how to update only one page, including aspx and vb without re-publish?

    Users are in application in 24...
  15. Replies
    1
    Views
    2,726

    How to get system error message in vb page?

    In web.config I used code below to disable custom errors.

    <customErrors mode="Off" />

    To view errors for debug, I need to call IT to get errors in web server in event viewer.

    If I add code...
  16. Replies
    1
    Views
    324

    Integer data type in text box

    There is a column [VisitID] in table OFFICE_VISIT which data type is integer.

    There is a text box will store data from column [VisitID]

    How to declare variable for this text box?

    For...
  17. Replies
    5
    Views
    787

    Keep mouse auto clicking

    Most of time I am working at home using Gotomypc to remote access my pc in company.
    But, Gotomypc will auto disconnect after 10 minutes if I did not touch mouse or keyboard.
    Is there a simple code...
  18. Replies
    0
    Views
    2,649

    Scroll bars in body section

    In ASPX page, I add CSS as below.

    Both vertical and horizontal scroll bars display but grey out.

    How to make scroll bars showing and working?

    .mybody {
    margin: 0;
    background:...
  19. Replies
    1
    Views
    2,512

    Make company logo always visible

    Please open CNN at https://www.cnn.com/

    No matter you zoom in or zoom out (Ctrl +, Ctrl -), CNN logo and menu are always visible.

    How to make it happen?
  20. Replies
    0
    Views
    472

    Input key to hash password

    I used code below to hash password.

    How to input key to hash, using letter or number?

    Public Shared Function Encrypt(ByVal stringToEncrypt As String, ByVal key As String) As String
    DES.Key =...
  21. Replies
    3
    Views
    580

    Encrypt Password

    I used encrypt code to save password in a table.
    For example, if user Smith Rice login password is "Pass987$$" will save as "DLMyAdxvqXzOWZB5BuyW1YFR4JftD7jkQP/VHBHPTH8=" after encrypt.
    But IT...
  22. Re: Display a label in parent form and then open a child form

    I used timer to delay form2 show.
    It works.
  23. Re: Display a label in parent form and then open a child form

    Form2 will do PDF files merge. Sometime there are about a few hundred files to be merged.
  24. Re: Display a label in parent form and then open a child form

    No, did not work
  25. Display a label in parent form and then open a child form

    On Form1, there is a button1 and a label1 displaying text "Please wait..."
    When I click Button1, I want to display label1 and then open Form2.
    But, label1 never display when I click Button1.
    How...
  26. Replies
    2
    Views
    533

    How add security for password?

    I used code below to save user's register user name and password.
    It is not security because password is readable.
    How to encrypt password and save to SQL?


    Dim cn As New...
  27. Replies
    2
    Views
    1,055

    Help to modify code for image merge

    I learn how to merge images files from here.

    http://www.vbforums.com/showthread.php?338361-Combine-Images-in-VB-NET

    But, this code put two pages in one page.

    How to modify code to merge two...
  28. Replies
    1
    Views
    778

    How to merge images stored in the list?

    I used code to stored multiple images in list.
    How to merge images stored in the list?

    Dim imagelist As List(Of Image) = New List(Of Image)
    Dim ds As New DataSet
    Dim i As Integer
    Dim...
  29. Merge multiple image files which stored in SQL as varbanary data

    I need to create a project to merge multiple image files which stored in SQL as varbanary data.

    Here is code to get image

    Dim imageInBytes As Byte() = ds.Tables(0).Rows(0)("IMAGECOPY")
    Dim...
  30. Win Form Control To Display Binary Data As MemoryStream

    I am looking for a win form control to display binary data as MemoryStream.
    The binary source are converted from GIF, JPG, TIF, HTML image file and stored in a SQL table.
    Please help.
  31. Error: The Specified Executable Is Not A Valid Application For This OS

    I used code below open a PDF file but got a error said

    The specified executable is not a valid application for this OS platform

    But, if I open non-security folder as Process.Start(FILE_NAME)...
  32. Replies
    1
    Views
    552

    Open a PDF file with security

    I used code below to open high security file in folder order and require to pass one user's account and password.
    But, Process.Start did have this option.
    Is there another command will do this job?...
  33. Replies
    3
    Views
    1,851

    How to pass a parameter to exe file?

    My project created a test.exe file from the code below.
    How does user to run test.exe and pass parameter like below without type CMD to command line?

    test.exe testikcompleted


    Private Sub...
  34. Create a PDF file and then save into a file server

    I need to create asp.net project to create PDF file in which some data coming from SQL server.

    This PDF file need to save into a file server.

    Where to start?
  35. Replies
    1
    Views
    553

    Winform Project Send An Email Error

    I used code below to send an email from a winform project.
    But some users got an error and some user sent the email successfully.
    How to fix it? What should I tell IT to fix?

    Dim myMail As New...
  36. Replies
    4
    Views
    1,666

    Assigning Multiple Values To A Variable

    In SQL, I can use code below to assign multiple values to a variable.

    select * from flower where color in ('red', 'yellow', 'green')

    How make this code working in vb.net like below?

    select *...
  37. Replies
    3
    Views
    715

    How to include framework into exe file?

    I completed a winform project and copied all dll files and exe file from bin\debug to one folder myproject in a server.
    User only need to click exe file, application will work.
    This way is working...
  38. Replies
    2
    Views
    782

    Call a function from another form

    There are two forms in my project, main.vb and Edit.vb.
    By clicking a button in Main form will open Edit form to update data.
    Once clicking Submit button in Edit form, how to call a function in...
  39. Replies
    1
    Views
    536

    Make Combox LimitToList Working

    I used combobox and binding with dataset. It works fine.

    I have one question.

    Combobox is drop down style and lists some colors like below.

    red,

    orange,
  40. Extract PDF in SQL table and save them into a file saver as PDF file

    One table from another company in which a lot of PDF files were saved as binary data in one column.
    How to extract PDF in SQL table and save them into a file saver as PDF file?*

    Thank you for help
Results 1 to 40 of 481
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width