16,012,082 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Jim607 (Top 13 by date)
Jim607
12-Oct-11 6:04am
View
Deleted
Ah, that makes sense to me, so because I can not do:
class classname : Inherits : Inherit another etc.... That's why I need Interfaces.
So to take it to its absolute basics...
I have a class (class1) with methods and properties that I need to use in another class (class2) that can not inherit from 'class1'. I can create another class which will be my interface between the two. The interface just declares the methods and properties that are available within that class.
I think I understand it now, thanks for your description. I think I'm getting a bit baffled by the large number of new jargon that's coming in all at once.
---EDIT---
After reading some of the supplied links, I think I've missed the point entirely. I'll have a good read through
Jim607
17-Aug-11 16:51pm
View
This would work great but I am getting a runtime error when I implement this. I am using a foreach loop to close all of the open forms but as the close event triggers, it alters the list. This is causing an error because the list has changed whilst doing the ForEach. Is there a way round this or should I just use a simple do loop instead?
Jim607
17-Aug-11 10:23am
View
This forum is brilliant! Thanks so much for your help and advice (to all who posted).
Jim607
17-Aug-11 9:16am
View
Is ((Form)test[(test.Count - 1)]).Show(); an OK method to reference the form after it has been created or is there a better way?
Jim607
4-Aug-11 8:43am
View
Wow, thank you for your time in writing that up for me. I think that my list would have to be dynamic as I do not know how many Notes I need. I am going to have to take some time out to study Generics and Collections.
I started my programming with VB6 so I am trying to learn many new technologies here OOP and .NET and getting my head out of the event driven style coding.
I do have a couple of books but find it difficult to put what they show into an actual program and fully understand it. That's why I like to set myself a challenge and learn the bits I need as I come across the need for them. It is a flawed method of learning for sure but it keeps my interest.
I really appreciate you doing that for me and outlining a path to where I need to get to rather than just suggesting going straight to the most difficult implementation.
Jim607
4-Aug-11 8:15am
View
Thanks for your help. I started searching on the web fro Lists and Collections and I found an article/tutorial creating a simple text based program that manages a pack of cards. This pretty much mirrors what I want to do so the card is like a note and the Deck class is like my NoteHandler Class.
Thanks for your help
Jim607
4-Jun-11 4:45am
View
You are right about abusing the Tech. They all users have at least 3 different email accounts, some have 10. Madness! Thanks though, you have shown me SendInput and while looking at that, I have seen FindWindowByCaption which I believe I can use to make sure the dialog has focus.
I'll have bit of a hack at it but like you said, it's never going to be a nice solution. :( Thanks for your help.
Jim607
3-Jun-11 17:36pm
View
Unfortunately the dialog/textbox is not generated by my program. They are part of Outlook. My program simply searches the registry for available email profiles, then launches outlook with an argument to open the selected profile. I need to get the handle (if thats the correct terminology), so I can check if the login dialog exists or not. Maybe I was a bit ambitious for now expecting to do this without using sendkeys.
Jim607
13-Apr-11 7:08am
View
Got it thanks:
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(strFilePath);
XmlNode mynode = xmlDoc.SelectSingleNode("/CompanyDetails");
strCompanyName = mynode["CompanyName"].InnerText;
I had to enter the actual node name rather than the number, and the innertext.
Thanks again, that hacked about 25 lines of unnecessary code out of my program, and made it more reliable.
Jim607
12-Apr-11 8:37am
View
I tried this code but I am getting a compile error:
Error 2
The best overloaded method match for 'System.Xml.XmlNode.this[string]' has some invalid arguments
This is my code so far:
void GetXMLValues(string strFilePath)
{
MessageBox.Show(strFilePath);
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(strFilePath);
XmlNode node = xmlDoc.SelectSingleNode("/CompanyDetails");
strCompanyName = node[0]; // this is the offending line, it underlines the node[0] part
}
Any suggestions?
Jim607
12-Apr-11 7:29am
View
I had to accept the solution below as it directly answered my query but thanks for your offered solution. The link contains some very good and easy to understand information there and I will be reading up for future use. Thanks.
Jim607
12-Apr-11 7:28am
View
That is perfect thank you. I am building a tool to make a standard email signature file. I will create a different XML for each company so I can indeed access each node individually. I did wonder about putting all companies in the same file and using a combo box to select but its easier to update this way.
Thanks again
Jim607
4-Apr-11 9:23am
View
Ah, great, I was kind of doing your suggestion so I looked a bit harder into the setting on the webBrowser. I found that I had changed a property of the webBrowser which was stopping it working. I had assumed I was not using it properly. It was the property "Allow Navigation" that was set to False. I had previously followed an online tutorial which required it to be set to false. this obviously did not suit what I was trying to do.
Thanks for your help, I was unaware of the "string builder" so you have been a big help. It will tidy my code up loads and my webBrowser control works a treat now thanks again.
Show More