Search Results - VBForums

Search:

Type: Posts; User: kevininstructor

Page 1 of 13 1 2 3 4

Search: Search took 0.18 seconds.

  1. Replies
    3
    Views
    125

    VS 2010 Re: [RESOLVED] Excel sheet protection

    Hello,

    See the following example
    http://www.siddharthrout.com/2012/09/12/protectingunprotecting-a-worksheetworkbook/
  2. Replies
    15
    Views
    5,406

    VS 2010 Re: How to make DataGridView render fast

    Hello,

    (Just noticed dbasnett mentioned the same thing but wanted to add the reason)

    If you look at the original code the class is marked static as is the method DoubleBuffered which means we...
  3. Replies
    6
    Views
    216

    Re: Load nested xml to single table

    @techgnome I am not surprised at a need to get at this data but I am surprised that someone would want to see the tags and data rather than just the data.
  4. Replies
    6
    Views
    216

    Re: Load nested xml to single table

    Never had a reason to try so I don't have a solution for you and see no value in displaying data this way.
  5. Replies
    6
    Views
    216

    Re: Load nested xml to single table

    Hello,

    The following should give you the basics, read from a nested xml file into a DataSet then using LINQ query the data and finally into a new DataTable. Now granted we could go even farther by...
  6. Replies
    7
    Views
    235

    VS 2010 Re: Control Designer Options

    For the record what you are looking to do is called Smart tags. Here is a tutorial on this site.
  7. Replies
    5
    Views
    200

    VS 2010 Re: Threading Help. Excel

    Hello,

    Have you tried running your code in tangent with a BackGroundWorker ? There is a simple example in the documentation and plenty on the web.
  8. VS 2008 Re: OleDb Jet 4 with new version of Excel

    If you have the correct drivers for x86, the project is targeting x86 and you are using the ACE driver I have nothing else to suggest other than asking your question here MSDN Excel for Developers...
  9. VS 2008 Re: OleDb Jet 4 with new version of Excel

    Console.WriteLine appears in the IDE Output window for form projects.
  10. Re: Pass values of an object through the forms

    What don't you understand?
  11. Replies
    2
    Views
    116

    Re: Operation timed out (but why?)

    High level consider WebClient.DownloadFileAsync in tangent with a BackGroundWorker or via Async/Await, a few simple starter examples.
  12. Re: Pass values of an object through the forms

    Still makes no sense, all I see is what appears to be assigning the text property of one TextBox to a object (may be it's a DataGridView may be not but a DataGridView does not have a Text property)...
  13. VS 2008 Re: OleDb Jet 4 with new version of Excel

    Here is a very simple example to create a connection via a helper function. In this case I am asking for one field in Sheet1 where the first row is data.



    Public Class Form1
    Private Sub...
  14. Re: Pass values of an object through the forms

    One thing at a time.

    Please explain what this means i.e. what object, what function?
  15. Re: Pass values of an object through the forms

    Hello,

    Take a look at this VS2012 project (on Microsoft OneDrive) for one idea to share data, be forewarned this project does not solve your questions as asked but the logic is there for you to...
  16. Re: JSON.parse unexpected character error in vb.net

    Are you following what is laid out on the API page (yes it's not VB.NET)
  17. VS 2008 Re: OleDb Jet 4 with new version of Excel

    Hello,

    At a look at suggestions on this page.
  18. Re: Prevent user changing checkbox in datagrid

    Hello,

    Try this out.



    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    DataGridView1.Rows.Add(New Object() {"John", "USA", True})...
  19. Replies
    1
    Views
    130

    VS 2012 Re: Insert 2 same items in listbox ?

    Hello,

    To copy from ListBox to ListBox w/o duplicating in the target ListBox.



    Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    ...
  20. VS 2008 Re: OleDb Jet 4 with new version of Excel

    Can you indicate what the error message is on failure
  21. Replies
    9
    Views
    304

    Re: Best Free Online Source

    Here are a couple for C#

    C# Fundamentals for Absolute Beginners
    C# Station
  22. VS 2010 Re: DatagridView - Verify last cell with value and fill the next with new value

    Hello,

    Here is what I posted to your question on Microsoft forums. This is the very basics and cane be done using LINQ/Lambda yet it's best for learning to start out simple



    For x As...
  23. Re: Testing a LINQ for null

    That makes sense, my code was just to provide ideas to pick and choose from :-)
  24. Replies
    0
    Views
    170

    Cue banner text

    The screenshot below shows an effect that some call cue banner, banner or watermark. When a TextBox does not have focus with the code we see text that when the TextBox is given focus the cue banner...
  25. Replies
    2
    Views
    94

    Re: place holder

    Here is the VB.NET code


    Imports System.Runtime.InteropServices
    Module CueBannerText
    <DllImport("user32.dll", CharSet:=CharSet.Auto)> _
    Private Function SendMessage(ByVal hWnd As...
  26. Re: Testing a LINQ for null

    Hello,

    Try working thru the issue using the following logic although there may be more than you need like the second condition in the where clause


    Dim SomeList As New List(Of String) From...
  27. Re: Problem with Multi-Threading Sub

    Hello,

    If targeting Framework 4.5 or higher then consider looking at this example which uses MS-Access but truly is not tied to any one data provider so it will work with SQL-Server for instance....
  28. VS 2010 Re: Saving datagridview to a file and then loading

    Hello,

    Here is one solution where the DataGridView has the columns pre-defined.

    Place the following into a code module


    <System.Diagnostics.DebuggerStepThrough()> _...
  29. Replies
    3
    Views
    139

    Re: VB 2010: Post Publish Issue

    Hello,

    My guess is to look at ApplicationDeployment.DataDirectory, see if this finds the files in question
  30. Replies
    2
    Views
    128

    Re: Radiobutton question

    Hello,

    The first time nothing has changed so you get one message box, any time afterwards you get two message boxes because there are two changes. Compare the two events below, the Click gets one...
  31. Replies
    4
    Views
    124

    VS 2013 Re: Brackets in Random.[Next]()

    The square brackets are used to tell the compiler that it should interpret it as a type or not a keyword. In the code sample you posted there is no need for the brackets, remove them and the code...
  32. VS 2013 Re: running multiple backgroundorkers with same DoWork sub

    Hello,

    Since you are working with VS2013 an alternate approach is to use Asynchronous Programming with Async and Await. The link provides a good deal of useful information including Handling...
  33. Replies
    10
    Views
    276

    Re: Clearing out List of T

    Hello,

    Think about how I am doing this in the code below


    Public Class Form8
    Private Sub Form8_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim CustomerList =
    ...
  34. Re: Storing data from Input Box to listbox and variable

    Hello,

    I would recommend not using InputBox but instead create a child form with a TextBox, one button with DialogResult property set to OK and another button with DialogResult set to Cancel, Show...
  35. Re: How to set Datagridview to show latest data on top as entered in SQL table?

    Hello,

    If you populate the data using the idea below, I added a auto increment data column that when the DataTable is populated from the database table this field will populate thus giving you a...
  36. Replies
    2
    Views
    130

    Re: Passing data to another form?

    Hello,

    The attached project conceptually shows one method for passing data from the current form to another form which if not open will open it at time of attempting to set a value in the...
  37. Re: Assigning text file 'values' to a List

    Hello,

    No need for explaining zip codes, I was simply showing that values such as this one and the id can be converted leaving it up to you to take it from here.
  38. Re: Assigning text file 'values' to a List

    Hello,

    The code example included spaces so we need to trim the data. Also I show several examples of where condtions on all and some on one selection using both LINQ and Lambda



    Public Class...
  39. Re: Assigning text file 'values' to a List

    Hello,

    I would recommend reading the data via TextFieldParser class if the data in the text file may contain missing elements on a line and if not use the following

    Super simple example: place...
  40. Replies
    8
    Views
    156

    VS 2013 Re: Need help parsing an XML document

    This is more on track with a C# coder which I have done before and is fine


    Dim ns As XNamespace = Xdoc.Root.GetDefaultNamespace
    Dim statusElement As XElement = rootElement.Element(ns +...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.