Click here to Skip to main content
14,486,704 members

.NET Framework

 
PinnedHOW TO ANSWER A QUESTION Pin
Chris Maunder16-Jul-09 3:09
cofounderChris Maunder16-Jul-09 3:09 
PinnedHow to get an answer to your question Pin
Chris Maunder16-Jul-09 3:05
cofounderChris Maunder16-Jul-09 3:05 
QuestionHow to know which Id belongs to which object? Pin
simpledeveloper9hrs 52mins ago
Membersimpledeveloper9hrs 52mins ago 
AnswerRe: How to know which Id belongs to which object? Pin
Eddy Vluggen9hrs 15mins ago
professionalEddy Vluggen9hrs 15mins ago 
GeneralRe: How to know which Id belongs to which object? Pin
simpledeveloper2hrs 35mins ago
Membersimpledeveloper2hrs 35mins ago 
QuestionMessage Closed Pin
23hrs 34mins ago
MemberTotokita2 Agen Togel Terpercaya23hrs 34mins ago 
QuestionAn expression tree lambda may not contain a null propagating operator Pin
simpledeveloper27-Mar-20 21:38
Membersimpledeveloper27-Mar-20 21:38 
AnswerRe: An expression tree lambda may not contain a null propagating operator Pin
Richard MacCutchan27-Mar-20 23:48
mveRichard MacCutchan27-Mar-20 23:48 
AnswerRe: An expression tree lambda may not contain a null propagating operator Pin
Bohdan Stupak28-Mar-20 4:38
professionalBohdan Stupak28-Mar-20 4:38 
QuestionColumn length change using Entity Framework Code First Pin
simpledeveloper17-Mar-20 13:59
Membersimpledeveloper17-Mar-20 13:59 
AnswerRe: Column length change using Entity Framework Code First Pin
Gerry Schmitz17-Mar-20 16:22
mveGerry Schmitz17-Mar-20 16:22 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 3:28
Membersimpledeveloper18-Mar-20 3:28 
AnswerRe: Column length change using Entity Framework Code First Pin
Richard Deeming17-Mar-20 23:52
mveRichard Deeming17-Mar-20 23:52 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 3:14
Membersimpledeveloper18-Mar-20 3:14 
GeneralRe: Column length change using Entity Framework Code First Pin
Richard Deeming18-Mar-20 3:55
mveRichard Deeming18-Mar-20 3:55 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 8:43
Membersimpledeveloper18-Mar-20 8:43 
GeneralRe: Column length change using Entity Framework Code First Pin
Richard Deeming18-Mar-20 8:48
mveRichard Deeming18-Mar-20 8:48 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper19-Mar-20 5:54
Membersimpledeveloper19-Mar-20 5:54 
QuestionMessage Closed Pin
17-Mar-20 11:27
Memberalitehome17-Mar-20 11:27 
GeneralMessage Closed Pin
15-Mar-20 20:36
Membersayabuzz15-Mar-20 20:36 
Questionc# forms (holy crap i'm not ready for this) Pin
Uranium-23513-Mar-20 23:51
MemberUranium-23513-Mar-20 23:51 
AnswerRe: c# forms (holy crap i'm not ready for this) Pin
Richard MacCutchan14-Mar-20 1:07
mveRichard MacCutchan14-Mar-20 1:07 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 4:37
MemberUranium-23514-Mar-20 4:37 
my main.cs

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SQLite;
using System.IO;

namespace TechTracker
{
          
    
    public partial class Main : Form
    {
        public Main()
        {
            InitializeComponent();
        }


        private void Main_Load(object sender, EventArgs e)
        {
            if(!File.Exists(Directory.GetCurrentDirectory() + "\\Tracker.db"))
            {
                //yeah none of these worked
                //((CreateDB)this.Owner).Show();
                //Form CreateDBForm = CreateDB.FindForm();
                //TechTracker.CreateDB.ActiveForm.Visible = true;
                //System.Windows.Forms.Control.Invoke;
                 

            }
        }
    }
}


createDB.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TechTracker
{
    public partial class CreateDB : Form
    {
        public CreateDB()
        {
            InitializeComponent();
            
        }
    }
}


both were made as windows forms designer. createDB is not visible by default. As you can see, if the file is not there, they choose to create it as an sqlLite (I know I still have to define it in using in createdb) database. createDB is topmost enabled and won't let the main form be accessible when it's up. That logic shouldn't be hard, i've done it with vb before. I'll later get a better method of detecting the database file (store filepath in registry, or local file). Probably even allow switching DB files in a settings dropdown. For now, this just basic code to get some of the basic functionality out of this way.

I learned VB.net from scratch using only google on trial and error. Got fairly good at it too. It's just these individual methods of c# I need to get out of the way

oh and yes, it's me from the previous post. I decided to go with sqllite instead of mysql or transactional HTTP transfer. I'm making this mainly for me for the time being, and I can just use google drive or something to sync the sqllite db file for housecall (on my laptop) or home use

thank you
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Dave Kreskowiak14-Mar-20 4:58
mveDave Kreskowiak14-Mar-20 4:58 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 5:35
MemberUranium-23514-Mar-20 5:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.