16,005,206 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 agent154 (Top 15 by date)
agent154
17-Dec-12 23:15pm
View
That tool does exactly what I'm looking for. Thank you very much.
agent154
9-Dec-12 17:39pm
View
This unfortunately covers everything I already know about the notifications. I was wondering if there was a way to access what appears to be another one - the one similar to the type that shows you that your battery is low... a big bar across the middle of your screen the whole width of your monitor. It dims the background and stays there until you click it away. The toast notification only appears for a brief period and then goes away if you don't click it.
agent154
30-Jan-12 17:29pm
View
I never said there was a problem with it. I just haven't seen it before.
agent154
30-Jan-12 0:14am
View
I understand how it works now... After using ILspy to decompile the source for TabControlDesigner and TabControl itself, I can see that I need to re-design my collection of Panels. Instead of using a simple ArrayList<lvpanel> collection, I need to build a collection myself and overload the .Add() methods so that it will simultaniously add the LVPanel to its own collection, and to the Control.Controls collection. Took a lot of looking around, but I get it now.
agent154
28-Jan-12 17:32pm
View
If it helps any, here is my implementation for the interior panel. You could compile the code and see what I mean. I want to be able to add a new panel through the smart tag "Edit tabs..." and have that panel get added to the parent panel afterward. As it stands right now, it only creates the panel but does not add it to the parent.
using System;
using System.Collections;
using System.Text;
using System.Windows.Forms;
using System.ComponentModel;
namespace SNS.UI.ListViewTabControl
{
[ToolboxItem(false)]
public class LVPanel : Panel
{
private string _text;
[Category("Appearance")]
public new string Text
{
get { return _text; }
set { _text = value; }
}
public LVPanel()
: base()
{
this.Dock = DockStyle.Fill;
}
}
}
agent154
28-Jan-12 17:02pm
View
"Add" is on the collection editor window. If you want to see what I mean, drop a TabControl on an empty form and then look for the "TabPages" property in the properties window.
agent154
12-Jan-12 9:45am
View
You did in fact need the ^ and $. I think that might have been all I was missing. After adding those back into your modified solution, it seems to do what I want. Without it, it will still evaluate as 'true' if my first parameter is valid and the rest are not.
^(\*\.[a-zA-Z0-9]+\s*\,?\s*)+$ is what seems to work.
agent154
11-Jan-12 20:51pm
View
This seems to work, but only for two substrings. If I go beyond and add a third, then it matches only the third. I'm using http://gskinner.com/RegExr/ to test this.
agent154
11-Jan-12 20:45pm
View
I downvote because your response was cheeky and not helpful. You could have done it in a bit more of a polite way, instead of treating me like a child.
And I don't have any code because I don't know how to do it. If you don't feel it apropriate to give me an answer directly, then maybe you could point me in the direction of where to learn. I'm a novice at C#, and barely know anything about making custom controls, aside from inheriting a class and changing small things.
agent154
9-Jan-12 6:46am
View
Windows Forms
agent154
24-Dec-11 0:31am
View
OK, I think I have to take that back... after a ton of experimenting with inheriting, I found out that interfaces work almost exactly like inheriting a whole class, except on a smaller scale. I understand how things work now!
Thanks for the tip.
agent154
23-Dec-11 21:33pm
View
After reading up a bit more, I still have no idea why interfaces are even necessary; they seem to offer no additional functionality, as far as I can understand.
In any event, I managed to solve the problem by passing a reference to Form1 to Form2 via 'AddIngredient form2 = new AddIngredient(this)' and then used the reference in Form2 to invoke the 'addIngredient()' method. It works as expected. Thanks anyhow.
agent154
23-Dec-11 20:49pm
View
I think part of my confusion here is because Form1 calls Form2, and in Form2, changes to data are made. When hitting the save button, I need that data to be passed back to Form1. All of these examples seem to imply that the form where the data is going is being called directly. Form2 does not call Form1, it only acts as a dialog box with a save button.
agent154
23-Dec-11 20:28pm
View
I did a few CS courses a couple years back, and Interfaces were one of very few subjects that I could just not understand for the life of me. I googled it now and I think I have a bit better of an understanding, but I still have no idea how I would go about implementing such functionality between my two forms.
agent154
23-Dec-11 20:27pm
View
Deleted
I did a few CS courses a couple years back, and Interfaces were one of very few subjects that I could just not understand for the life of me. I googled it now and I think I have a bit better of an understanding, but I still have no idea how I would go about implementing such functionality between my two forms.
Show More