i have deleted the other form, it was not being utilized. this.title is of object type, i can write the title to the registry and read it back, however i can not place it in the title spot, just doesnt go.
if (txtTitleChange.Text != null)
{
this.title =...
an update on what i did, on the menu bar, where i have the option to 'Set Title' i added the option for what gets opened to a text box, which i have thus named 'txtTitleChange', which does allow me to change the title, i changed this.title = txtTitleChange.text however the left side is null...
i am trying to figure out how to save the title to the registry. i am not wanting to use a config file, this is so i can learn how to read and write to the registry properly. the code above shows writing to the registry, which is going into hkey current user software dummy name dummy folder, so...
...= new TitleQuery();
if (theQueryDialog.ShowDialog() == DialogResult.OK)
{
// vba code generated from recorded macro to "remind me" how to do it.
// *************************************************************
// Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
//...
i would like to set the title of a windows form via a menu toolbar, where a menu says 'Change Title'. When clicked, it allows the title change with Aa thru Zz only (no numbers, etc). If no title, it defaults to welcome and the registry key for the title is deleted.
currently items working are...
...}
else
{
commRate = 0.05;
}
commDue += (commRate * addingSales);
Console.WriteLine("commission due is {0} and rate is {1} and average is {2}", commDue, commRate, avgSale)...
...app.
thanks for the info on setting to 0.00
I do have ttlSales += addingSales;
this is where the error is for unassigned variables.
numSales++;
avgSale = (ttlSales / numSales);
commDue += (commRate * addingSales);
numSales and commDue and...
ok found out it is when i check for y/n, if i enter two characters it crashes.
unhandled exception: system.format.exceptioin: string must be exactly one character at system.char.parse(string s)
i didnt put the caps in the line where they go, however i hope you get my jist.
John
i was doing some testing, if you enter 2.224 (what i used) on the first time in, it gets seen correctly as invalid. upon saying y and enter in 2.24 it crashes.
As a webmaster hosting lots of sites, no it is not, unless you know the exact name of the images.
any good webmaster will try to protect images, programs, etc from people who may decide to come along and use the images/programs for their use.
...};
string amntIn;
Console.WriteLine("Our bank is ${0}.00. Please enter your request. Numbers only, Format: XX.XX ", (bank * .01));
amntIn = Console.ReadLine();
//Validation to perform
if (objValidate.IsPositiveNumber(amntIn))...
it is a c# class, college 200 level class. first assignment is via console, i think the rest will be windows applications.
one of the others i am in, is where a blog application needs to be written for asp 2.0 which is also a 200 level class.
...};
string amntIn;
Console.WriteLine("Our bank is ${0}.00. Please enter your request. Numbers only, Format: XX.XX ", (bank*.01));
amntIn = Console.ReadLine();
//Validation to perform
if (objValidate.IsPositiveNumber(amntIn))...
that is a whole lot less code! i need to delve in quite a bit! any recommended books to learn this?
with a negative #, it gives 'press any key ... and then exits.
i will get the validation worked on, then the loop!
thanks for your help, i will be back with what i find.
...number is {0}", changeRequest);
// convert to 100 times the amount, easier for subtraction
changeRequest = changeRequest * 100;
// start of counting the change
while (changeRequest >= 25)
{
changeRequest =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.