- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Software Developer
- Interests
- I code and play pool. Advice on coding - free, advice on pool $$$$.
14 Posted Topics
Re: if you are doing console, it should work like this: [code]string _sAppPathName = Process.GetCurrentProcess().MainModule.FileName; string _sDataFilePath = _sAppPath.Substring(0, _sAppPath.Length - (_sAppPath.Length - _sAppPath.LastIndexOf(@"\"))) + @"\yourfilename.yourextension"; [/code] | |
Re: Your method takes 8 parameters, and you are trying to call it with just two params. Either give it all 8 or override the UpdatePatientDetails() to take 2 parameters | |
Re: Ok, sounds simple but how about a child form having a read only property that can hold a string. Once the child form closes, this property should still be available immediately after. change this.ChildClass = new TextboxForm(); this.ChildClass.Show(); to this.ChildClass = new TextboxForm(); this.ChildClass.ShowDialog(this); | |
Re: Another thing would be to switch to IE. I know IE fingers owls, but if you switch your default browser, it will show you the page, providing you have IIS running | |
Re: Just a suggestion - I code stuff that puts data into MS Office apps - PowerPoint, Excel and Word. You are better of doing it with VB then C#. We do all processing in C# and then use VB to create the documents at the end. With Word this does … | |
Re: I have just read the whole thing and I am confused as to what do you have to do here. And I am getting sys. reqs from some crazy manages for a living. So you got to count unique vowels? Can we get an example of the text file? Ancient … | |
Re: Well, it depends on your exe's. You said that you already wrote bunch of stuff, so you do have executables - are you refferencing some COM objects? The dll has to come with the executables. There is no universal answer here. As far as .Net is concerned - most people … | |
Re: Well, a student project but at least there was an effort to solve that. [code]#include <iostream> #include <string> int main() { double withdraw, deposit, balance, newBalance, amount; char ans; string choice; balance = 1000; [B] bool good = false;[/B] cout << "Welcome to Whatever ATM!" << endl; do { [B] … | |
Re: ok, in your GetProductsColor() you are populating the combo cmbProductColor - right? I would suggest doing cmbProductColor.Items.Clear(); before adding new stuff or you will append the values without getting rid of old values. Later in the same function you are capturing selected item, well, the selected item is null because … | |
Re: ok, here is an example: data is stored in xml and represents the table, need array list of array lists of xml nodes to do some intelligent sorting [code] ArrayList _arrMaster = new ArrayList foreach(XmlNode rNode in XmlTable) { if(IsStartOfGroup(rNode)) //if we need to start up a group I need … | |
Re: Lets just keep in mind 3.0 is still beta, right? Why would you code on beta? Infraction is right on the money | |
Re: ok, quick and dirty, to be removed before building release - used to help me in my student years. Last line of code is : [COLOR=#2B91AF]Console[/COLOR].[COLOR=#000000]ReadLine[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]; that will wait until you kill the console. | |
Re: How about this: [CODE]string g = "12 + 3"; string[] MyInts = g.Split('+'); ArrayList RealInts = new ArrayList(); for(int i = 0; i < MyInts.Lenght; i++){ RealInts.Add(Convert.ToInt32(((string)MyInts[i]).Trim()); } [/CODE] At the end you should get an array list of integers. RealInts[0] = 12; RealInts[1] = 3; If you want individual … |
The End.