Search:

Type: Posts; User: Slabs1960

Page 1 of 5 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    5
    Views
    2,553

    VS 2017 Re: CType vs ToString

    Thanks. That was very well explained. A nice guideline to use in the future.
  2. Replies
    5
    Views
    2,553

    VS 2017 [RESOLVED] CType vs ToString

    Just curious. Which one is the better one to use and why? Part of the learning process.


    strStatusAddr = CType(1000 + (2 * intDevicenumber), String)

    strStatusAddr = (1000 + (2...
  3. VS 2017 Re: Create a Text File - UTF8 no BOM

    Thanks. I stand corrected. But it works for my application. I will keep your solution in mind (saved to my solutions directory) for future applications
  4. VS 2017 Re: Create a Text File - UTF8 no BOM

    Thanks for the reply.

    I solved the issue by using ASCII encoding. It creates a UTF-8 only text file.

    File.AppendAllText(strPOUFilePath, strPOU, Encoding.ASCII)
  5. VS 2017 [RESOLVED] Create a Text File - UTF8 no BOM

    I have trawled the web. Seen some simple to esoteric solutions proposed. But none work.

    I need to create a text file in UTF8 encoding with no BOM. Every method I have tried still includes the...
  6. VS 2017 Re: Assistance Needed with Printing a Popup Form

    After the comment from jmcilhinney I rewrote to code to print the image, and not the form.

    It prints, but the image is too large, and needs to be resized. I added some code to resize, but it is...
  7. VS 2017 Re: Assistance Needed with Printing a Popup Form

    I would like to print the image.
  8. VS 2017 Assistance Needed with Printing a Popup Form

    I am trying to print a Windows Form Popup. I has a GIF image on it, in a PictureBox. At first, I used the PrintDocument component. Then I tried the PrintDialog. The reason being, I want to give the...
  9. VS 2017 Re: Exception when clearing a datatable with a CheckBox

    I am catching the exception.

    The problem was, when the Data Set was cleared, the Sub (separate) saw the change, and tried to update the checkbox. Since the value was NULL, the exception occurred....
  10. VS 2017 Re: Exception when clearing a datatable with a CheckBox

    Hi Wes

    Thanks for the effort. I found my problem. Been struggling with this all day. You know what they say if you are dumb you must suffer (that's me)

    I have another sub that updates the...
  11. VS 2017 Re: Exception when clearing a datatable with a CheckBox

    Data Table field is a Boolean. DGV Column is a CheckBox (ViewedDataGridViewCheckBoxColumn) bound to the Boolean field in the data table.
  12. Replies
    8
    Views
    1,083

    VS 2017 Re: Problem Closing Excel Interop App Properly

    Thanks Chris will give it a try later.
  13. VS 2017 [RESOLVED] Exception when clearing a datatable with a CheckBox

    0
    down vote
    favorite

    I have a table with a bound DGV. The table has 12 columns, one of which is a check box. The table has data in it and there are no problems.
    I want to clear the table and...
  14. Replies
    8
    Views
    1,083

    VS 2017 Re: Problem Closing Excel Interop App Properly

    Thanks. Tried it. Still does not work. :sick:
  15. Replies
    8
    Views
    1,083

    VS 2017 Re: Problem Closing Excel Interop App Properly

    Thanks Chris. Tried it. Does not work.

    I thought maybe I made a mistake with the name in "Dim xlp() As Process = Process.GetProcessesByName("Microsoft Excel")". So, I tried "Microsoft Excel (32...
  16. Replies
    8
    Views
    1,083

    VS 2017 Re: Problem Closing Excel Interop App Properly

    No change. Thanks

    I have been testing the code. I have noticed, that sometimes the Excel instance is closed. Other times, not. All Excel instances are closed when the application is closed. Your...
  17. Replies
    8
    Views
    1,083

    VS 2017 Problem Closing Excel Interop App Properly

    I am using Microsoft.Office.Interop.Excel and Microsoft.Office.Interop.Excel to import data from a Excel spreadsheet (Office 365). This is new to me and I have been playing around with the code to...
  18. Replies
    7
    Views
    106,241

    VS 2017 Re: [RESOLVED] Cannot find or open the PDB file

    After playing with this I found that after setting this Tools-> Options-> Debugging-> Symbols. Select checkbox "Microsoft Symbol Servers". Visual Studio will download PDBs automatically., and running...
  19. Replies
    7
    Views
    106,241

    VS 2017 Re: Cannot find or open the PDB file

    I do not use it, currently. So, I will ignore it for now and worry about it later if I need it.

    Thanks
  20. Replies
    7
    Views
    106,241

    VS 2017 Re: Cannot find or open the PDB file

    Ok. I did a bit of digging on the web. After a while I came upon these suggestions:

    Tools > Options > Debugging > Native and check Load DLL Exports
    Did not work for me.

    Tools-> Options->...
  21. Replies
    7
    Views
    106,241

    VS 2017 Re: Cannot find or open the PDB file

    Thanks. I have 2 other machine with VS2017. Will give it a go.
  22. Replies
    7
    Views
    106,241

    VS 2017 [RESOLVED] Cannot find or open the PDB file

    When running my project the Output Window displays the following message:



    It does not seem to affect the running, or functionality, of the code. What am I missing here?
  23. VS 2017 .Net Framework 4.6.2 vs .Net Framework 4.7.1

    I have a project that I have been working on for a while now. It uses .Net Framework 4.6.2. I was wondering if there is any benefit to upgrade it to .Net Framework 4.7.1.?

    I have looked but cannot...
  24. VS 2017 Re: Unable to hide a label on a Windows Form

    That did the trick Thanks
  25. VS 2017 [RESOLVED] Unable to hide a label on a Windows Form

    I have a GroupBox on a form. It has four Radio Buttons, that are used to filter a DGV.

    The Radio Buttons are No Filter, Type, Constellation and Type. There is an associated ComboBox on the form....
  26. VS 2017 Re: Publish VB App from Visual Studio with Data Files. Please Help

    I have been referring to this: https://msdn.microsoft.com/en-us/library/kzy0fky2.aspx

    This explains how to get my data file included. But I cannot find how to include a text file and DBF file.
  27. VS 2017 Re: Publish VB App from Visual Studio with Data Files. Please Help

    I have been through all the options under Project/ Properties. References, Resources, Publish (Prerequisites), etc. I have browsed the web and cannot find a clear reference on how to add data files...
  28. VS 2017 Re: Publish VB App from Visual Studio with Data Files. Please Help

    Was thinking of the ClickOnce Installer. Have tried to add the files to the project but they are not included in the install. Where would the correct place be to add the files?
  29. VS 2017 Publish VB App from Visual Studio with Data Files. Please Help

    What is an elegant way to publish a VB app install, exe file with associated data files. An Excel workbook, xml file and a text file. Once I know this I can figure out to place them in a fixed...
  30. Replies
    17
    Views
    10,636

    VS 2008 Re: Exporting to Excel faster

    I use some thing very similar.


    'Add Rows
    For i = 0 To DGVConfigurationFile.RowCount - 2

    For j = 0 To...
  31. Replies
    18
    Views
    1,456

    Re: Should I use a Class instead of a Function

    This is PLC's (Programmable Logic Controllers by Siemens, Schneider Electric, Mitsubishi & Allen Bradley) we talking about. Some of these are form based. Uugh.
  32. Replies
    18
    Views
    1,456

    Re: Should I use a Class instead of a Function

    This is a good question. I am not an expert, but from my reading the same questions passed through my mind.

    The only way to answer that one is for me to submit a post explaining what my whole...
  33. Replies
    18
    Views
    1,456

    Re: Should I use a Class instead of a Function

    CRLF does not work. Has to a LF only
  34. Replies
    18
    Views
    1,456

    Re: Should I use a Class instead of a Function

    This is a device type. Depending on the size of the Process Plant, there could be 50 to 60 of them, identical except for a unique TagName and Device number. To add them to the PLC by manually could...
  35. Replies
    18
    Views
    1,456

    Re: Should I use a Class instead of a Function

    Using VS2017. Forgot to add it to the post.

    I think I get the idea. Will give it a try.
  36. Replies
    23
    Views
    1,437

    Re: Not sure what causes this?

    :confused: More detail please. What popup, what does it say?
  37. Replies
    18
    Views
    1,456

    Re: Should I use a Class instead of a Function

    The format will always be the same. But I do not understand what you are saying. Please explain.
  38. Replies
    18
    Views
    1,456

    Re: Should I use a Class instead of a Function

    There is always ONE exception to mess up a simple pattern :D
  39. Replies
    18
    Views
    1,456

    Re: Should I use a Class instead of a Function

    Thanks Sitten Spynne , Shaggy Hiker for the great replies and compliments :blush:.


    The reason for this that the "Device Number" comes in as a string. So in order to do the calculation I need to...
  40. Replies
    6
    Views
    1,102

    Re: Coding Standards - Document

    Thanks for the replies. I have my own standards (not from VB, but other software I use in the Automation programming field (PLC's, etc.) They are similar but not the same.

    I thought to post it...
Results 1 to 40 of 173
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width