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
F

freshthinking

@freshthinking
About
Posts
13
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Odd behaviour inserting into Sql CE
    F freshthinking

    Coudln't work out what was causing it, so I changed the format of the table to remove the identity attreibute, all working now. thanks.

    Mobile database help question c++ sql-server

  • Odd behaviour inserting into Sql CE
    F freshthinking

    If you mean did i let it use "Mark identity columns with the NOT FOR Replication" thing, i let enterprised manager sort it out. I have no problem inserting into other tables that have identity attributes, which is why i am finding this very odd behaviour. I am using OLE DB. I haven't use Sql CE before and based my code on an example from the MSDN site, which used OLE DB. ACctually in the connection string for the SqlCeConnection object when i stated a 'Provider' initially it gave errors saying invalid token or something along those lines, so i removed it and specified the 'Data Source' only, and it works. I'm not entirely sure what it uses in that case. However def OLE DB for the replication.

    Mobile database help question c++ sql-server

  • how can create a xml document?
    F freshthinking

    Have you tried using the XmlTextWriter class? It has a number of methods for writing the nodes, and the one you'd need WriteAttributeString().

    C# xml help question

  • Odd behaviour inserting into Sql CE
    F freshthinking

    I have a relation called Correspondence of the following format: corrId int identity(1, 1) primary key type varchar(50) cwith varchar(50) isInternal smallint(2) rowguid uniqueidentifier the rowguid attribute was added by sql server when setting up merge replication. On the CE application I am trying to insert a row into the table and then pull the corrId back out using @@IDENTITY. Strangely when I try and insert I get the following error: HR: 800040E2F Native: 25016 Message: A duplicate value cannot be inserted into a unique index [,,,,,] Source: Microsoft SQL Server 2000 Windows CE Edition Parameter 1: 0 Parameter 2: 0 Parameter 3: 0 Parameter 4: Parameter 5: Parameter 6: I could understand the error if the corrId wasn't being incremented by 1 each time (& it didn't have the uniqueidentifier attribute). The question is what am I missing that's causing the problem? Thanks in advance.

    Mobile database help question c++ sql-server

  • ASC() in C#
    F freshthinking

    you can do it. run it for yourself.

    C# csharp question

  • GetHashCode()
    F freshthinking

    when it says some languages represent it different, most, frmo my experience, either follow the C# convetion or use 1 to represent true and 0 or less as false (e.g. C). You can easily convert bools to ints using Convert.ToInt32(value). However Convert.ToBoolean will acturately convert 1 to true and 0 to false, but when i tried it, converted -1 to true.

    C# csharp question

  • Changing a form's title
    F freshthinking

    try passing the form on the constructor of the control.cs object, and store this in the control object. i.e. private Form form1; public Control(Form form) { this.form1 = form; } You should then be able to make calls like form1.Text = "whatever". If that doesn't work quite try public Control(ref Form form).

    C# question

  • Ide keeps losing a control
    F freshthinking

    Don't know how to fix it but I thought it let you know your not the only one. When it happens to me, which for some reason happens when i double click a form in the solution browser to view it, it removes all the UI controls from my form. I never had this problem with VS.NET 2002. I also have some custom controls on it. If i han't made a backup I'd be screwed cause I accidently saved it. This is a real problem that microsoft need to get fixed.

    Visual Studio csharp help visual-studio com question

  • mysteries of the disapearing text
    F freshthinking

    I have written a small debug class so I can echo some statements to the ouput in VS and to a text file, using the StreamWriter class... The problem is, is that the text is never written to the file. public class Debug { private StreamWriter _writer; private string path; public Debug(string path) { this.path = path; if( File.Exists(path) ) _writer = File.AppendText(path) else _writer = File.Create(path); } public void WriteLine(string output) { string s = DateTime.Now + "\t" + output; System.Diagnostics.Debug.WriteLine(s); _writer.WriteLine(s); } } Now this is fairly bog standard code foe writing to a file, and even stranger is if i replace the WriteLine procedure with public void WriteLine(string output) { string s = DateTime.Now + "\t" + output; System.Diagnostics.Debug.WriteLine(s); StreamWriter sw = File.AppendText(this.path); sw.WriteLine(s); sw.Close(); } The text is written to the file fine. Can any shed light on this.... What dumbass thing I am I doing wrong?

    C# visual-studio debugging help question

  • Turn off dynamic versioning
    F freshthinking

    When you say dynamic versioning, do you mean the auto increment of build and version numbers? If so you can turn this off by acessing the projects AssemblyInfo.cs file. There'll be a section that looks like: [assembly: AssemblyVersion("1.0.*")] Just remove the star and set it manually and your away. If you don't mean this then sorry.

    C# question

  • Owner Draw Control Problems
    F freshthinking

    Sounds like a good idea. I'll be sure to follow the project. Will you guys be posting your progress? if you want testers in the future let me know.

    C# graphics help question

  • Owner Draw Control Problems
    F freshthinking

    There all ready set in the constructor. Thats why it's puzzling me a little.

    C# graphics help question

  • Owner Draw Control Problems
    F freshthinking

    I've created a number of overdrawn controls (status bar, group box) and they drawn fine, and as i want. However if you move another window over the window with these controls, you get odd kinda painting on the controls, kinda like window borders left over, etc. I would guess by getting all the controls to redraw themeselves would work, but I can't seem to get this sorted. i tried overidding the OnGotFocus in the main form on which these controls reside to call Invalidate(true), but it doesn't seem to work. Any ideas?? [Edit] I've managed to solve this by calling the Invalidate in the Frosm Activate event. However I still the same problem when say a drop down box (an owner drawn one) drops the list over the owner drawn controls. is there anyway of solving this short of calling invalidate alot, which. All the owner drawing is done by overriding the OnPaint in the pretty standard way. [/Edit]

    C# graphics help question
  • Login

  • Don't have an account? Register

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