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
C

crisjala

@crisjala
About
Posts
21
Topics
16
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to clear textbox when page is refreshed asp.net c#
    C crisjala

    how to clear textbox when page is refreshed asp.net c# heres my code not working Code: protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { TextBox1.Text = ""; } } Code: protected void Button1_Click(object sender, EventArgs e) { TextBox1.Text = "test"; }

    ASP.NET csharp asp-net tutorial

  • Pls help! how to prevent user to delete prefix value in my texbox
    C crisjala

    i want that my prefix or my first 4 char value in my textbox which is "SPR-" cannot be deleted or modify by the user...how to code that.. plz.

    C# help tutorial

  • HOW TO FIX THIS EVERYTIME I ADD DATA IN MY DATA TABLE THE LASTROW AND FIRSTROW ARE THES SAME [modified]
    C crisjala

    HOW TO ELIMINATE ONE DataTable dt = dataSet1.Tables["tmpItem_aux"]; DataRow newRow = dt.NewRow(); newRow["itemcode"] = itemcodeTextBox.Text.ToString(); newRow["itemDesc"] = itemDescTextBox.Text.ToString(); newRow["quantity"] = quantityTextBox.Text.ToString(); newRow["unitPrice"] = unitPriceTextBox.Text.ToString(); newRow["total"] =totalTextBox.Text.ToString(); dt.Rows.Add(newRow); OUTPUT SAMPLE ITEMCODE ITEMDESC QUANTITY UNITPRICE TOTAL TEST123 ITEMTEST 1 50 50 --------SAME IN LASTROW SAMPLE1 ITEMSAMPLE 2 100 200 SAMCODE SAMDESC 3 20 60 TEST123 ITEMTEST 1 50 50 --------SAME IN FIRST ROW

    modified on Friday, May 14, 2010 2:34 AM

    C# help tutorial

  • Hi! is it possible that my dbase is sql2005 using php and javascript
    C crisjala

    Hi! is it possible that my dbase is sql2005 using php and javascript becoz our existing system te dbase is sql2005 and we want to publish our system in web using php and javascript but our database is sql2005

    C# javascript php database

  • how to display two column value in combobox DisplayMember
    C crisjala

    hi i'm having hard time on how to display two column values in combox display member..like custID and custName...any sample code plz help

    C# help tutorial

  • How to filter two columns in bindingsource
    C crisjala

    hi i want to filter base on lastname and firstname encode by the user in textbox1 and texbox2.. but i'm having hard time for the right code for this..heres my code but not functioning.. plz help hows the right way.. bindingSource1.Filter = "LASTNAME like '" + textBox1.Text.Trim() + "%'" AND FIRSTNAME like '" + textBox2.Text.Trim() + "%'"; bindingSource1.Sort = "LASTNAME";

    C# help tutorial

  • plz help!!error use of unassigned local variable
    C crisjala

    hi i just want to display all empty fieldnames that are not filled up by the user but my code has this errorer ' use of unassigned local variable 'messEmptyField' ; how can i fix this private void btnSave_Click(object sender, EventArgs e) { string[] FieldName = { "Lastname", "Firstname", "Address", "Model", "Trouble Reported" }; string messEmptyField; int i = 0; foreach (Control ctrl in groupBox1.Controls) { TextBox txt = ctrl as TextBox; if (txt.Text == string.Empty) { messEmptyField += FieldName[i]; //error use of unassigned local variable 'messEmptyField' } i++; } MessageBox.Show(messEmptyField + "please filled up all"); dtDateLog.Focus(); return; }

    C# help question

  • how to get the row index value in datagridview
    C crisjala

    hi i have a form name frmDataEntry with textboxCustID and textboxCustName and lookup form name frmCustAssist with texboxFilter, button Filter and datagridview then when i double click textboxCustID then frmCustAssist will show i have to look if customer already exist or not then if already exist i hav to get the value of row index ..then the custID and custName of that value selected will be fill in the formDataEntry in textboxCustID and textboxCustName how do code that that plz help my code is here.. in a frmCustAssist private void button1_Click(object sender, EventArgs e) { bindingSource1.Filter = "LASTNAME like '%" + textBox1.Text + "%'"; bindingSource1.Sort = "LASTNAME"; selected row value .. somwthing like that } in a frmDataEntry selected value custID =textboxCustID selected value custname = textboxCustName

    C# database sales help tutorial

  • How do i filter in bindingsource
    C crisjala

    i want to filter something like string type in my textbox but my code is not working..how do i fix this private void button1_Click(object sender, EventArgs e) { bindingSource1.Filter = "LASTNAME = LIKE% + textBox1.Text"; bindingSource1.Sort = "LASTNAME ASC"; }

    C# help question

  • how to trap masktextbox control if empty or not filled by user
    C crisjala

    here's my code but its not functioning plz help how to fix this.... i set my masktextbox to filled up telephone number only private void button1save_Click(object sender, EventArgs e) { if (maskedTextBox2tel.text == string.Empty) { MessageBox.Show("Plz fill up tel No"); maskedTextBox2tel.Focus(); } }

    C# help tutorial

  • how to empty textbox in a groupbox
    C crisjala

    tnx dude

    C# tutorial

  • how to empty textbox in a groupbox
    C crisjala

    hi i hava a groubox contain 5 textbox control and i want to empty the all textbox i'm having hard time to solve pls any idea..

    C# tutorial

  • how can i enable back newToolStripMenuItem to true
    C crisjala

    error does not exist in the current context

    C# question

  • how can i enable back newToolStripMenuItem to true
    C crisjala

    i cant get the intelisense of newToolStripMenuItem.Enabled = true; in the event private void frm2_FormClosed(object sender, FormClosedEventArgs e) my newToolStripMenuItem is in my form1 and i want to show the form2 but disable the newToolStripMenuItem if form2 is loade already. and if form2 is close then the newToolStripMenuItem is enabled

    C# question

  • how can i enable back newToolStripMenuItem to true
    C crisjala

    my main form is form1. private void newToolStripMenuItem_Click(object sender, EventArgs e) { newToolStripMenuItem.Enabled = false; Form2 frm2 = new Form2(); frm2.Owner = this; frm2.Show(); how can i enable back newToolStripMenuItem to true if the form2 to is closed i tried to create if form2 close event but i can't get the intelisense of newToolStripMenuItem

    C# question

  • my function not functioning
    C crisjala

    i want to validate first if the form is already loaded or not. if it is already loaded the form will just prompt it again perform it windows state to normal and focus but does not duplicate the form.. private void newToolStripMenuItem_Click(object sender, EventArgs e) { if (IsFormLoaded("form2")) { return; } Form1 frmshow = new Form1(); frmshow.MdiParent = this; frmshow.Show(); } private bool IsFormLoaded(string formName) { bool Load = false; for (int i = 0; i < (this.OwnedForms.Length) - 1; i++) { if (this.OwnedForms[i].Name.ToString().TrimStart() == "formName") { this.OwnedForms[i].WindowState = FormWindowState.Normal; this.OwnedForms[i].Focus(); Load = true; } } return Load; }

    C#

  • what wrong with my code [modified]
    C crisjala

    private void newToolStripMenuItem_Click(object sender, EventArgs e) { if (IsFormLoaded("form1")) return; else { Form1 frmshow = new Form1(); frmshow.MdiParent = this; frmshow.Show(); } } private bool IsFormLoaded(string formName) { bool FormLoaded = false; for (int i = 0; i < (this.OwnedForms.Length) - 1; i++) { if (this.OwnedForms[i].Name.ToString().TrimStart() == "formName") { this.OwnedForms[i].WindowState = FormWindowState.Normal; this.OwnedForms[i].Focus(); FormLoaded = true; } } return FormLoaded; } not functioning modified on Sunday, March 7, 2010 9:52 PM

    C#

  • HOW TO TRAP FORM TO LOAD ONLY ONCE
    C crisjala

    can you give me sample sir on how to do it...

    C# csharp help tutorial

  • HOW TO TRAP FORM TO LOAD ONLY ONCE
    C crisjala

    HI I'M NEW TO C# I'M CREATING MENU AND DONE BUT THE PROBLEM IS WHEN I CLICK THE MENU ITEM 3 TIMES THE FORM WILL SHOW 3 TIMES AND I WANT TRAP THAT IF THE FORM ALREADY LOADED YOU CANT OPEN THE FORM TWICE UNLESS THE USER CLOSE THE FORM.. HOW TO TRAP FORM TO LOAD ONLY ONCE

    C# csharp help tutorial

  • how to disable/enable toolstrip menu item [modified]
    C crisjala

    but i want it programmatically in code because every time the user click the menuItem the form is loaded it disable the menuItem evrytimthe form is close it will enable the menuItem

    C# help tutorial
  • Login

  • Don't have an account? Register

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