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
L

Lodeclaw

@Lodeclaw
About
Posts
54
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • DateTimeControl date format
    L Lodeclaw

    I'm trying to set the format of my DateTimeControls to yyyy/mm/dd but the only method I can find is through the localeid property. The only locales that use yyyy/mm/dd as their primary format are non-english, so they don't help me much. The government standard in Canada (where I am) is yyyy/mm/dd but as a nation all three primary formats are used. Is there any way to select which format I want to use, or am I stuck with Microsoft's default, dd/mm/yyyy? Thanks ahead of time for any assistance!

    SharePoint help question

  • DateTimeControl date format
    L Lodeclaw

    Can you elaborate?

    C / C++ / MFC help question

  • DateTimeControl date format
    L Lodeclaw

    Hi there. I'm trying to set the format of my DateTimeControls to yyyy/mm/dd but the only method I can find is through the localeid property. The only locales that use yyyy/mm/dd as their primary format are non-english, so they don't help me much. The government standard in Canada (where I am) is yyyy/mm/dd but as a nation all three primary formats are used. Is there any way to select which format I want to use, or am I stuck with Microsoft's default, dd/mm/yyyy? Thanks ahead of time for any assistance!

    C / C++ / MFC help question

  • Sending html form to email using asp.net
    L Lodeclaw

    I guess I probably should start at the beginning and get some asp basics under my belt. Haha. Thanks Mike.

    Web Development csharp html asp-net algorithms help

  • Sending html form to email using asp.net
    L Lodeclaw

    Sadly, none. I've been learning as I go, so it's a process of bumbling through each step until I get the result I'm looking for. So far I've only been working in html, xml, and css in terms of web dev. The client I'm doing this for doesn't seem to be using much of anything server-side, so I'm trying to build this functionality from nothing.

    Web Development csharp html asp-net algorithms help

  • Sending html form to email using asp.net
    L Lodeclaw

    Hello! I've been searching around for information on using asp.net to send an email from an html website, containing the contents of a form among other things. So far all I've found is outdated examples and tutorials that I haven't had any luck with. Unfortunately I don't know asp.net, so can anyone point me in the right direction? I'm at a loss. Thanks for any help/advice you can provide!

    Web Development csharp html asp-net algorithms help

  • ForeignKeyConstraint requires the child key values to exist in the parent table!
    L Lodeclaw

    Is the subject line too long? Probably. I'm experiencing an issue with my dataset that seems to be telling me that the values for a foreign key in my child table does not exist within the parent table. As far as I can see, the value does exist. This happens when I try to fill a datagridview using a tableadapter. If the program throws the exception as normal I get the usual "Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints." If I use a try/catch around the query it fills the datagridview but gives me a red warning sign that reads "ForeignKeyConstraint [ForeignKey] requires the child key values (value) to exist in the parent table." Has anyone come across this particular issue? Where can I usually find the properties for foreign key contraints? Any help would be hugely appreciated! (I'm using the generic Fill query created for tables in sqlserver.)

    C# help database question

  • RTF Fields have a gap between them when placed against each other.
    L Lodeclaw

    You're placing them on a form using code, or..? You should be able to just re size the fields left of the gap or set the location of the fields on the right side 1 pixel to the left. I don't know anything about using RTF fields in C#, so maybe I'm way off in my understanding?

    C# help

  • index += 1 equals index + 2 ? [modified]
    L Lodeclaw

    Yeah, I know, which is why I was so confused by it. :(

    C# database help question

  • index += 1 equals index + 2 ? [modified]
    L Lodeclaw

    Well now I feel stupid. But I guess it's the learning process. Turns out the built-in up/down key functionality was still running, so I essentially was repeating the process with redundant code. Removing the redundant code and leaving the return function to prevent the pseudo-search function on up/down works fine. Thanks to anyone who read and considered this. EDIT: Hahaha! Now I think I just realized this entire process was useless since the up/down keys don't act any differently without the extra code. I need more sleep, maybe? Someone put me out of my misery! :laugh:

    C# database help question

  • index += 1 equals index + 2 ? [modified]
    L Lodeclaw

    private void ComboBox_KeyDown(object sender, KeyEventArgs e)
    {
    this.ComboBox.DroppedDown = true;
    if (e.KeyCode == Keys.Up && this.ComboBox.SelectedIndex != 0)
    {
    this.ComboBox.SelectedIndex -= 1;
    return;
    }
    if (e.KeyCode == Keys.Down && this.ComboBox.SelectedIndex != this.ComboBox.Items.Count - 1)
    {
    this.ComboBox.SelectedIndex += 1;
    return;
    }
    this.ComboBox.SelectedItem = this.ComboBox.Text + "%";
    }

    Hello folks. I have this event set up to search/skip to the contents of a ComboBox by the text entered, however I want to make sure I can still use the up and down keys functionality... My problem is when I run this code in my project and press the up or down keys in the ComboBox my selection moves up or down two spaces rather than one. What am I missing? Thanks in advance! EDIT: Sorry, the code actually was slightly wrong due to my experimenting before posting. It's fixed how I meant it to be and the problem persists. The old code was as follows and has the same outcome:

    private void ComboBox_KeyDown(object sender, KeyEventArgs e)
    {
    this.ComboBox.DroppedDown = true;
    if (e.KeyCode == Keys.Up && this.ComboBox.SelectedIndex != 0)
    {
    this.ComboBox.SelectedIndex = this.ComboBox.SelectedIndex - 1;
    return;
    }
    if (e.KeyCode == Keys.Down && this.ComboBox.SelectedIndex != this.ComboBox.Items.Count - 1)
    {
    this.ComboBox.SelectedIndex = this.ComboBox.SelectedIndex + 1;
    return;
    }
    this.ComboBox.SelectedItem = this.ComboBox.Text + "%";
    }

    modified on Wednesday, February 25, 2009 6:10 PM

    C# database help question

  • Ask God what your grade is you fascist bastard. [modified]
    L Lodeclaw

    Christianity is not on a decline. Religion is not on a decline, either. What's happening is the self-proclaimed "free world" government adopting stronger atheistic interests and becoming intolerant of those who don't follow along. The large majority of people around the world still believe in religion. Governments, however, have misunderstood the purpose of the separation of church and state long enough that it's become a religion of it's own.

    The Back Room com question announcement

  • Masked Textbox Prompt
    L Lodeclaw

    private void txtCustID_Enter(object sender, EventArgs e)
    {
    txtCustID.SelectionStart = 0;
    }

    Am I using the property incorrectly? I'm still having the same problem.

    C# help question tutorial

  • Masked Textbox Prompt
    L Lodeclaw

    It baffles me why this property isn't actually IN the properties list for masked textboxes! Thanks william. Am I going to have to use an Enter event for every masked textbox in order to do this?

    C# help question tutorial

  • Masked Textbox Prompt
    L Lodeclaw

    Hello! I've been having some issues with masked textboxes and have been unable to find a solution, so I hope one of you knowledgeable forumers can point me in the right direction. Let's say for example I have a masked textbox and I want to restrict it to a 4digit numeric-only ID#. The Mask is set as "0000" and the PromptChar is "_". My problem arises when I run the project and enter the textbox. The | is placed at the end of the Prompt "____" and in order to input the data I want properly I need to backspace, key over, or click to the beginning of the string. How can I have a masked textbox always place the data entry marker (what's it called?) at the beginning of the Prompt string when the textbox becomes the selected control? Any help would be hugely appreciated. Thanks in advance!

    C# help question tutorial

  • Convert or Parse
    L Lodeclaw

    I was told that the most common method to convert a value is to use the Parse method, however it only works with strings, as you all know... So I was wondering, then: if you're converting a non-string value to another non-string, is it better/more efficient to use for example... Convert.ToInt32(value); or int.Parse(value.ToString()); Thanks guys!

    C# tutorial

  • EvaluateException at Select-Funktion
    L Lodeclaw

    You need to convert one or both sides of your statement so that they are both the same data type. A string type and a datetime type are incompatible, so find a way to collect the datetime information contained in your string explicitly and use DateTime.Parse to make it compatible.

    C# help csharp visual-studio

  • Remove empty textbox spaces
    L Lodeclaw

    Ah, I see! Thanks Deresen, that will be handy to know! :laugh:

    C# database question

  • Remove empty textbox spaces
    L Lodeclaw

    Ah, I think I've figured it out. Read this: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.location.aspx[^] And you should understand why you have to do it like this:

    if (String.IsNullOrEmpty(textbox.Text))
    {
    textbox.Location = new Point(textbox.Location.X,(textbox.Location.Y - textbox.Height));
    label.Location = new Point(textbox.Location.X, (textbox.Location.Y - textbox.Height));
    }

    Again, I think it should work but I could be wrong. Hahaha...

    C# database question

  • Remove empty textbox spaces
    L Lodeclaw

    I understand. In theory I figured it would work to move the controls below the empty textboxes up to fill in the gap, however I can't seem to get it working. Hopefully someone a little more knowledgeable will swing by. In the meantime I'll try and figure it out myself and let you know if I come up with anything. I'm still a newbie, myself.

    C# database 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