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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Hello. Small Help Needed.

Hello. Small Help Needed.

Scheduled Pinned Locked Moved C#
csharphelpvisual-studiocareer
4 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nt_virus
    wrote on last edited by
    #1

    Hello guys. My name is Sachin. I have a small problem in my project which mostly hangs out my further works. I have made a c# Windows Application from Visual Studio 2005. I m posting the two demos of my main project.. Now 1 ) Demo In this 'Demo' project.. I created few labels and few inherited UserControls. I put the numeric value in front of Basic Salary's usercontrol.. till then its fine.. But when i delete the values from usercontrol11 , some error is coming ... I m unable to solve this... please help me.. Here is my Demo folder.. Download Demo.rar[^] 2 ) Demo1 In this 'Demo1' project.. Again I created few labels and now with textboxes. I put the numeric value in front of Basic Salary's textbox.. till then its fine.. But when i delete the values from textbox1 , same error is coming ... If possible please try to help me.. Here is my Demo1 folder Download Demo1.rar[^]

    C J N 3 Replies Last reply
    0
    • N nt_virus

      Hello guys. My name is Sachin. I have a small problem in my project which mostly hangs out my further works. I have made a c# Windows Application from Visual Studio 2005. I m posting the two demos of my main project.. Now 1 ) Demo In this 'Demo' project.. I created few labels and few inherited UserControls. I put the numeric value in front of Basic Salary's usercontrol.. till then its fine.. But when i delete the values from usercontrol11 , some error is coming ... I m unable to solve this... please help me.. Here is my Demo folder.. Download Demo.rar[^] 2 ) Demo1 In this 'Demo1' project.. Again I created few labels and now with textboxes. I put the numeric value in front of Basic Salary's textbox.. till then its fine.. But when i delete the values from textbox1 , same error is coming ... If possible please try to help me.. Here is my Demo1 folder Download Demo1.rar[^]

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      nt_virus wrote:

      Hello. Small Help Needed.

      Your title is a waste of time

      nt_virus wrote:

      Hello guys. My name is Sachin

      Thats nice, but is it really relevant?

      nt_virus wrote:

      some error is coming ...

      Do you think that telling us the error would help us in answering your question? Plus, excuse my laziness, but I really cant be bothered downloading your project (which incidentally I have no way of verifing is legitimate) in order to help you out. The error message, plus some relevant code should more than suffice.

      1 Reply Last reply
      0
      • N nt_virus

        Hello guys. My name is Sachin. I have a small problem in my project which mostly hangs out my further works. I have made a c# Windows Application from Visual Studio 2005. I m posting the two demos of my main project.. Now 1 ) Demo In this 'Demo' project.. I created few labels and few inherited UserControls. I put the numeric value in front of Basic Salary's usercontrol.. till then its fine.. But when i delete the values from usercontrol11 , some error is coming ... I m unable to solve this... please help me.. Here is my Demo folder.. Download Demo.rar[^] 2 ) Demo1 In this 'Demo1' project.. Again I created few labels and now with textboxes. I put the numeric value in front of Basic Salary's textbox.. till then its fine.. But when i delete the values from textbox1 , same error is coming ... If possible please try to help me.. Here is my Demo1 folder Download Demo1.rar[^]

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Please try for a more intelligent header.

        nt_virus wrote:

        But when i delete the values from usercontrol11 , some error is coming

        Try posting code and the error text, not expect people to download your project.

        nt_virus wrote:

        But when i delete the values from textbox1 , same error is coming ...

        Probably for the same reason. I would guess you have code that expects a number in there and blows up when there isn't one. Instead of int.Parse, use int.TryParse.

        Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

        1 Reply Last reply
        0
        • N nt_virus

          Hello guys. My name is Sachin. I have a small problem in my project which mostly hangs out my further works. I have made a c# Windows Application from Visual Studio 2005. I m posting the two demos of my main project.. Now 1 ) Demo In this 'Demo' project.. I created few labels and few inherited UserControls. I put the numeric value in front of Basic Salary's usercontrol.. till then its fine.. But when i delete the values from usercontrol11 , some error is coming ... I m unable to solve this... please help me.. Here is my Demo folder.. Download Demo.rar[^] 2 ) Demo1 In this 'Demo1' project.. Again I created few labels and now with textboxes. I put the numeric value in front of Basic Salary's textbox.. till then its fine.. But when i delete the values from textbox1 , same error is coming ... If possible please try to help me.. Here is my Demo1 folder Download Demo1.rar[^]

          N Offline
          N Offline
          nt_virus
          wrote on last edited by
          #4

          Hello.. The project is only of 30kbs each.. I m afraid. Here is the screenshot of when I use usercontrol.. http://i34.tinypic.com/2z8b905.jpg Code here.. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Demo { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void userControl11_TextChanged(object sender, EventArgs e) { label6.Text = userControl11.Text; userControl12.Text = Convert.ToString(Convert.ToDouble(userControl11.Text) * .1); userControl13.Text = Convert.ToString(Convert.ToDouble(userControl11.Text) * .01); label6.Text = Convert.ToString(Convert.ToDouble(userControl12.Text)+Convert.ToDouble(userControl13.Text)+Convert.ToDouble(userControl11.Text)); } private void userControl14_TextChanged(object sender, EventArgs e) { label6.Text = Convert.ToString(Convert.ToDouble(userControl12.Text) + Convert.ToDouble(userControl13.Text) + Convert.ToDouble(userControl11.Text)+Convert.ToDouble(userControl14.Text)); } } }

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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