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...
The First Step in manipulating Word in .NET is that you'll need to add a COM reference to your project by right clicking in the solution explorer on References->Add Reference. Click on the COM tab and look for the Microsoft Word 9.0 Object Library. Click Select and OK.
This will automatically...
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...
I converted to a console app, found out there was way too much stuff in there, and have it to this point. however my logic is wrong at the 501 level, where the 25 bonus is to kick in.
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace sampleapp1
{...
yes, this is a windows application. my first one! thus i will most likely debug it as a console app, then figure out how to make it a windows app.
thanks for the info on setting to 0.00
I do have ttlSales += addingSales;
this is where the error is for unassigned variables...
Hi there all,
My task is to create a sales calculator, where sales up to 500 are given a 3.5% commission rate, up to 1000 are given 4% and above 1000 are given 5%.
The total sales are tallied, and increment a number of sales counter.
This is then divided to give an average sale.
commission due...
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.
Ok, I believe this is it. May be round about to get it to ask yes/no and exit, however it works! Any comments/shortcuts welcomed.
Thanks to Steve for helping me, and after I got it figured out the first time, he gave a great shortcut, made me think of all different ways!
using System;
using...
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.