Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Alex Grose

@Alex Grose
About
Posts
14
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • XML DTD Vaildation
    A Alex Grose

    I want to validate an XML file using a pre-made DTD. I am aware that you can do this with either an internal DTD or a DTD linked to from the file, but I would like to use a DTD that isn't either. I know the location of both the XML File and the DTD. Is there a way to do this, whe the two aren't linked? Or is there another way to validate the XML file? thanks in advance - and sorry if it is hard to understand

    C# xml question

  • ListBox Colours
    A Alex Grose

    Still not quite. Perhaps I havn't explained properly. I am basically creating an RSS reader. If the post (stored in a static Global list) hasn't been read before, it has a value called 'isNew' set to true - this should mean it will have a background colour other than white. When the user clicks this item, this value will change to false and I want the backing colour (marking it as unread) to change back to white. Basically, I want to change the colour at various points during the code (not just at initial Draw time). Thanks.

    C# question

  • ListBox Colours
    A Alex Grose

    This is sort of what I want, but to be able to change the colour dynamically within the script (but not fixed at start)

    C# question

  • ListBox Colours
    A Alex Grose

    Is there any way to change the background colour of individual items in a listBox through code? I know you can do it with the listView control, but I have already built most of the functionality for the listBox, and don't really want to have to redo it.

    C# question

  • HTML code to string
    A Alex Grose

    Thanks for that!

    C# csharp html dotnet question

  • HTML code to string
    A Alex Grose

    Is there a simple function which will convert a HTML string (including parts such as metachachters into a plain string. Basically stripping tags and replacing metacharachters with their true visual value? Does this exist in the .Net Framework, or will I hav to build it myself? Thanks in advance.

    C# csharp html dotnet question

  • Database-style replacement
    A Alex Grose

    Thanks, Tried it before & didn't work but since discovered how to add the library. So I will try it again. :-D

    C# csharp database

  • Database-style replacement
    A Alex Grose

    Tried that. Asked below (see 'Connecting to a c# local datbase') Didn't work too well (couldn't connect to it properly)

    C# csharp database

  • Database-style replacement
    A Alex Grose

    Hello. I am looking for a method of using files in C# that act similar to Databases (i.e. in tables) that will load successfully into Visual C# Express edition without having to have a seperate program to run the database. Preferably something simple like text files but allowing for better structure (like database tables). Thanks.

    C# csharp database

  • Connecting to a c# Local Database
    A Alex Grose

    Ok, Thanks. I will investigate using SQLite as I have haerd that that can be used without a server (I.E Integrated) Thanks anyway.

    C# database csharp sql-server sysadmin

  • Connecting to a c# Local Database
    A Alex Grose

    No, I don't think that I have explained myself correctly. I want to be able to access the database file as if it were a database, but without running SQL server. I plan to move the program to another machine that is not running SQL server.

    C# database csharp sql-server sysadmin

  • Connecting to a c# Local Database
    A Alex Grose

    TALHAKOSEN wrote:

    did you take an error like below TITLE: Connect to Server ------------------------------ Cannot connect to C:\DEV\SyncServices\learning\ConsoleSync1\ConsoleSync1\bin\Debug\awclientdb.sdf. ------------------------------ ADDITIONAL INFORMATION: You are trying to access an older version of a SQL Server Compact Edition database. If this is a SQL Server CE 1.0 or 2.0 database, run upgrade.exe. If this is a SQL Server Compact Edition 3.0 or later database, run Compact / Repair. [ Db version = 3505053,Requested version = 3004180,File name = C:\DEV\SyncServices\learning\ConsoleSync1\ConsoleSync1\bin\Debug\awclientdb.sdf ] (SQL Server Compact Edition ADO.NET Data Provider) ------------------------------ BUTTONS: OK

    No, the function just failed in the try block and then returned false in the catch block

    C# database csharp sql-server sysadmin

  • Connecting to a c# Local Database
    A Alex Grose

    Sorry, I have tried to connect using this method, the file is called Register.sdf and is in the same directory as the project content. This code fails to load the database effectively. This is the code I am trying to use (The 'Global' Class is a static class containing the RegDB Variable)

    private bool loadDatabase() {
    Global.RegDB = new SqlConnection();
    Global.RegDB.ConnectionString = "Integrated Security = True; Initial Catalog =dbName; Data Source=localhost;";
    try {
    Global.RegDB.Open();
    return true;
    }
    catch {
    return false;
    }
    }

    C# database csharp sql-server sysadmin

  • Connecting to a c# Local Database
    A Alex Grose

    I would like to be able to connect to and read/modify a local database file from the coding side of c#. I am using Visual C# 2008 Express Edition but don't want to use the 'Data Sources' wizard, but rather the 'SqlConnection' Coding commands. I am using Microsoft SQL server 3.5 Database files. Thanks in advance. :-D

    C# database csharp sql-server sysadmin
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups