Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: forgottenhart

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: Allowing my method to "see" that a row has already been selected from my gridview

    I would do it something like this


    public string info;

    public void myMethod(string myInfo)
    {
    //do whatever you need to do with the information
    }
  2. Replies
    1
    Views
    923

    Re: C# Datagrid - Open new form.

    Try something like this


    private void mouseDoubleClick_Click(object sender, EventArgs e)
    {
    string vendorID = //get this info from your datagrid or dataset
    //Add a new form to your project...
  3. Re: SQL DB Transaction fails when executing INSERT after DELETE, on duplicated PK

    Why not just set conditions tests?



    private void ExecuteQuery()
    {
    if(DeleteRecord)
    {
    InsertRecord();
    }
  4. Replies
    1
    Views
    6,045

    Re: Office Assembly

    You are correct that the Microsoft Interop Office 12 is for 2007.

    If you are not using any office products or calling any tools that they use (example - I have a csv app that requires the...
  5. Replies
    0
    Views
    927

    [RESOLVED] c# setup wizard issue

    Hi, I am trying to set up a Setup project for an applicaion I developed in the 3.5 Framework. I developed in VS 2010 which defaults to 4.0.

    I am needing the application to be able to run on XP...
  6. Replies
    1
    Views
    2,504

    Datagridview vs Listview

    I was wondering if anyone has opinions on when to use each one. I had been using datagridviews but recently switched to listviews bascially because (in my opinion) they look better.
  7. Replies
    4
    Views
    1,376

    Re: Dynamic Object Names

    Thank you for your help.
  8. Replies
    4
    Views
    1,376

    Re: Dynamic Object Names

    Thank you for your answer, however that is not exactly what I am having issues with but do like your code.

    I am having issues with actually creating each specific column.
    For example:...
  9. Replies
    4
    Views
    1,376

    [RESOLVED] Dynamic Object Names

    I am needing a little help on how to create dynamic object names for a listview of unknown size.



    ColumnHeader dynamicName = new ColumnHeader();


    I have the following and I know I am close...
  10. [RESOLVED] Listview sort issues on creation

    I have a list view that I would like to sort on creation. I have been able to sort it but now I am having issues getting it to sort in the desired way. I am wanting to include the...
  11. Replies
    0
    Views
    439

    Listview vs Datagrid

    I have been using datagrids to display database information for years. (I found something that worked and have kept using it) I recently have found the ListView and was wondering how they compare to...
  12. Replies
    1
    Views
    249

    Re: ListView Issue

    figured it out, I was right it was in my foreach loop

    Now if someone has a better way, I am always up for learning something different.

    :)



    foreach(DataRow row in...
  13. Replies
    3
    Views
    558

    Re: Database to an Array

    Here is what I have found that is working


    private void GetNameArray()
    {

    myconnection.Open();
    SQLiteCommand cmd = new SQLiteCommand("Select a_name...
  14. Replies
    1
    Views
    249

    [RESOLVED] ListView Issue

    I am having issues getting all of my data into my listview
    I know the query is correct and the connection is correct but it is only populating one column.

    I figure I am missing something in my...
  15. Replies
    3
    Views
    558

    [RESOLVED] Database to an Array

    Hi I am having difficulties finding an example to read data from a database into an array string.

    will someone please point me in the correct direction for an example.. Possibly some pseudocode....
  16. Replies
    5
    Views
    673

    Re: diminishing list

    Figured it out

    This is out I implemented the solution
    void Button_Click(object sender, EventArgs e)
    {
    //do stuff
    ListProgression(); //increments names by one
    }

    private void...
  17. Replies
    5
    Views
    673

    Re: diminishing list

    This is my pseudo code

    What do you think




    public int i = 0;

    read data into an array
  18. Replies
    5
    Views
    673

    [RESOLVED] diminishing list

    Thanks in advance.

    I am having issues figuring out how to implement a diminishing list (that's what I am calling it).

    I want to ready a list of names from a table into something (an array,...
  19. Replies
    4
    Views
    3,379

    Re: SQLite Listing Tables

    coded a button to fill a datagrid to get the names of all the tables.



    private void button1_Click(object sender, EventArgs e)
    {
    myconnection.Open(); //opens connection
    ...
  20. Replies
    4
    Views
    3,379

    Re: SQLite Listing Tables

    try this query:

    [code]
    SELECT name FROM sqlite_master
    WHERE type='table'
    ORDER BY name;
    [code]
  21. Poll: Re: [RESOLVED] Best Practice/Opinions on Connection String

    Thank you. Is there perhaps a few articles that you can direct me to for some reading/studying.
  22. Poll: Re: [RESOLVED] Best Practice/Opinions on Connection String

    One last question.

    How would I use the app.config file if the location of the DB is dependant on where the application launches.

    Example: The application is a portable app designed to be run...
  23. Poll: Re: Best Practice/Opinions on Connection String

    Thank you for your input
  24. Replies
    1
    Views
    542

    A little Class Help

    Hi I am trying to learn/understand classes, so I built a small app with just a button and a text field to test.

    Here is my main code file


    using System;
    using System.Collections.Generic;...
  25. Poll: Re: Best Practice/Opinions on Connection String

    As a completely different class file
Results 1 to 25 of 80
Page 1 of 4 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center