• Member Avatar for cgeier
    cgeier

    Replied To a Post in vb.net to control a physical switch

    Check [this site](https://www.ghielectronics.com/technologies/gadgeteer) out.
  • Member Avatar for cgeier
    cgeier

    Began Watching Export Datatable to Real Excel not HTML

    guys - most of the export to excel code i've found really doesn't wind up being excel. it's simply HTML w/ a .xls tag on it. and i've done this …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Export Datatable to Real Excel not HTML

    I don't think anyone has any idea what you are talking about. What is "real excel"? There are tons of examples on how to create excel files on the net. …
  • Member Avatar for cgeier
    cgeier

    Stopped Watching Uncheck multiple checkboxes with a few lines of code

    I've trying to figure out how to do this, but errors didn't stop flooding me. The following code works fine: For i = 1 To 50 Me.Controls("CheckBox" & i).Visible = …
  • Member Avatar for cgeier
    cgeier

    Began Watching windows form flicker

    Hi,,,In my C# windows form, blinking and flickering occurs when i'm running the application.The form blinking occurs more times in Win 7 than Win XP.The form blinks when im opening …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in windows form flicker

    Flickering tends to occur when one re-draws/re-paints the form and/or the controls that are contained on it.
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Issues with Windows 7 sleep mode.

    Mouse issue: Try the following: **Turn off hybrid sleep:** * Control Panel * View by: Small Icons * Power Options * Change Plan Settings * Change advanced power settings * …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in approximate pi using the Leibniz series.

    Also, line #20 should probably be: printf("Approximate value of PI is %.9f\n", PI); Changed from `%9.f` to `%.9f` and from `sum` to `PI`
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in approximate pi using the Leibniz series.

    In line #10, you trying to use x, but it has not been initialized (x doesn't have a value). `for (i=1; i<x; i++)`
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Limit users input in switch case

    Use another do-while loop (ie: use nested do-while loop) do{ do{ ... case 1: ... case 2: ... }while(....); }while(....);
  • Member Avatar for cgeier
    cgeier

    Began Watching Uncheck multiple checkboxes with a few lines of code

    I've trying to figure out how to do this, but errors didn't stop flooding me. The following code works fine: For i = 1 To 50 Me.Controls("CheckBox" & i).Visible = …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Uncheck multiple checkboxes with a few lines of code

    For Each ctrlItem As Control In Me.Controls If TypeOf ctrlItem Is System.Windows.Forms.CheckBox Then Dim myCheckBox = CType(ctrlItem, System.Windows.Forms.CheckBox) myCheckBox.Checked = True End If Next Or Private Sub checkCheckBoxesStartingWith(ByVal startsWithText As …
  • Member Avatar for cgeier
    cgeier

    Stopped Watching Remove specific items from list box

    Hello noob here. I'm doing a program where we are campground managers and in the third form do campground housing I'm stuck in the final part of the third form …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Explorer.exe not able to run or start up with windows

    explorer.exe is not internet explorer. What are you trying to accomplish?
  • Member Avatar for cgeier
    cgeier

    Began Watching Open a Word Doc to specific page in winform

    Hi I have a Help.doc file in my application. How can I open this file on a winform to page 2 (say)? How can I open it to page 2 …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Open a Word Doc to specific page in winform

    Have you considered using bookmarks? [Word Object Model Overview](http://msdn.microsoft.com/en-us/library/kw65a0we.aspx) This might also be of use: [How to: Programmatically Set Search Options in Word](http://msdn.microsoft.com/en-us/library/tf2wdd02.aspx)
  • Member Avatar for cgeier
    cgeier

    Began Watching Remove specific items from list box

    Hello noob here. I'm doing a program where we are campground managers and in the third form do campground housing I'm stuck in the final part of the third form …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Remove specific items from list box

    Your first issue is being able to clearly describe the problem that you are trying to solve (the reason for creating the program or the immediate issue you are trying …
  • Member Avatar for cgeier
    cgeier

    Began Watching Connection String Error !!!

    hey all, i have a little issue here with the below however the wired thing that i encoutred is that the below code run only for one time perfectly and …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Connection String Error !!!

    Where is the definition for AMSCONN? [Using statement](http://msdn.microsoft.com/en-us/library/yh598w02.aspx): *You can instantiate the resource object and then pass the variable to the using statement, but this is not a best practice. …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Read XML file for payroll

    Also note, that for testing I made most of the data types "String". You can change them as appropriate (Decimal, Date, etc).
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Read XML file for payroll

    If you look at the xml file, you will see that "nomina:Percepcion" occurs multiple times. So, we can use a list for it. You may be able to use an …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Read XML file for payroll

    **TimbreFiscalDigital:** Imports System.Xml.Serialization Imports System.Xml.Schema <XmlRootAttribute(elementName:="TimbreFiscalDigital", Namespace:="http://www.sat.gob.mx/TimbreFiscalDigital", IsNullable:=False), _ System.Xml.Serialization.XmlTypeAttribute(AnonymousType:=True, [Namespace]:="http://www.sat.gob.mx/TimbreFiscalDigital")> Public Class ComprobanteComplementoTimbreFiscalDigital Public Sub New() 'add tfd namespace xmlns = New XmlSerializerNamespaces() xmlns.Add("tfd", "http://www.sat.gob.mx/TimbreFiscalDigital") End Sub 'schemaLocation <XmlAttribute(Namespace:=System.Xml.Schema.XmlSchema.InstanceNamespace)> …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Read XML file for payroll

    I don't have a lot of time so I will give a brief description. The code I previously provided can be used for both serialization and de-serialization. Some of the …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Read XML file for payroll

    The attached file contains a version using serialization (XmlSerializer). It doesn't de-serialize the complete file (I didn't have enough time to complete it), but it will de-serialize the information that …
  • Member Avatar for cgeier
    cgeier

    Stopped Watching datagridview select multiple rows

    I have a datagridview with 10 rows I can select mutiple rows by using Ctrl & Mouse click but what I would like to do is use a button to …
  • Member Avatar for cgeier
    cgeier

    Began Watching datagridview select multiple rows

    I have a datagridview with 10 rows I can select mutiple rows by using Ctrl & Mouse click but what I would like to do is use a button to …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in datagridview select multiple rows

    Something like the following would work: 'keeps track of selected rows Private selectedRowsDict As New Dictionary(Of Integer, String) DataGridView MouseClick event: Private Sub DataGridView1_MouseClick(sender As System.Object, e As System.Windows.Forms.MouseEventArgs) Handles …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in datagridview select multiple rows

    How are you identifying which row the user wants to select? ComboBox? TextBox? Mind reading?
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Can't sort a data table

    [This post](http://stackoverflow.com/questions/1208548/datatable-defaultview-sort-doesnt-sort) may help. If you want more help, please post more of your code--particularly the variable declarations.
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Removing the words from string

    One more way to do it (without using a loop), is to create a method that removes one word, and call it repeatedly. Although, I advise against this method. Private …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Removing the words from string

    The easiest way to do it without using a loop is to use recursion. I will show you two recursive methods. The difference is the placement of the subtraction from …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Read XML file for payroll

    [This link](http://social.msdn.microsoft.com/Forums/vstudio/en-US/2ed55114-0f1b-4e54-b597-21fe1a61f06b/add-prefixes-and-namesapce-to-xml-serialization?forum=csharpgeneral) looks like it is for your same project.
  • Member Avatar for cgeier
    cgeier

    Began Watching Removing the words from string

    Hi sir this is lavanya. I am begginer in vb.net. I have a problem in deleting the first two words in a string. I am not using the loops.
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Removing the words from string

    If you don't want to use a loop, you could use "Substring" and "IndexOf(" ").
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in temperorily deleting records

    [How to: Manage Local Data Files in Your Project](http://msdn.microsoft.com/en-us/library/ms246989.aspx) **Copy to Output Directory setting** -Copy always (default for .mdf and .mdb files): *...The database file is copied from the project …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Microsoft Visual C# 2013 Step by Step

    Lines 24-31 should be placed inside a loop. You will also need an option to exit (complete the order).
  • Member Avatar for cgeier
    cgeier

    Began Watching Please Help Passing a variable from one form to another

    so i have created a log in app which is for registering for a conference, i need the userId and userPassword from the login form to the conference form the …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Please Help Passing a variable from one form to another

    If you are repeating a lot of code, then there is probably a better way to write it (using a method/function). There is a tutorial on how to pass data …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Problems with runnings System Recovery DVD

    Depending on what testing software you use, your hdd may or may not test as bad and still be the problem. I would start by running "chkdsk" (checkdisk). Then download …
  • Member Avatar for cgeier
    cgeier

    Began Watching Read XML file for payroll

    Hello everyone I have this XML file that has all the information for payroll, but we have a system where the employee goes and sees his payment for the week, …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Read XML file for payroll

    I've never used "Xml.Serialization", but the following has been tested with the XML file you provided above: Private Sub getEmployeeData(ByVal filename As String) Dim doc As New Xml.XmlDocument Dim numEmpleado …
  • Member Avatar for cgeier
    cgeier

    Began Watching so i have many different text file that i need to sort

    So i am making a registration program for conferences and when the user registers for a conference or workshop they have the option to print a schedule of what they …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in so i have many different text file that i need to sort

    Create a List as ddanbe stated. Then create a sort method that sorts the list based on the field that you want to use to sort it. The code below …
  • Member Avatar for cgeier
    cgeier

    Began Watching temperorily deleting records

    hi good afternoon sir, i am creating one vb.net project ,it is working nicely but the problem is when am adding datas to database it is adding but when am …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in temperorily deleting records

    Ensure you are committing the data to the database.
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Problem with Acer 5349

    Try a different AC adapter, to see if you still have the same problem.
  • Member Avatar for cgeier
    cgeier

    Began Watching Problems with runnings System Recovery DVD

    After problems with my wife's laptop that wouldn't boot into Vista, I decided to use the System Recovery disk to restore it to factory settings but I get so far …
  • Member Avatar for cgeier
    cgeier

    Replied To a Post in Problems with runnings System Recovery DVD

    Test your hard drive to see if it is bad.
  • Member Avatar for cgeier
    cgeier

    Began Watching I could really use some advice

    What im and trying to do is take the first four letters of a last name and the first letter in the first name which are in a textbox to …

The End.