|
If you want numbers, you want a NumericUpDown, not a TextBox.
|
|
|
|
|
Have you tried it with regular expressions
|
|
|
|
|
Hello, this question is related to the System.ComponentModel namespace.
I started to work on a project that allows creating forms at design-time. I have a DesignSurface and all features are already implemented except for the Undo/Redo and Copy/Paste feature.
By reading on the net, I got that I could use the UndoEngine class for Undo/Redo functionality if I create an additional service, a serialization service. It`s still blurry.
I know even little about the requirements for the Copy/Paste features. I can invoke the command, but nothing happens.
I think the commands will work if I add another unknown service,
but this is an assumption.
If someone could shade light on how this works.
Also, can anyone tell me what the heck is CodeDom Serialization?
Thanks
|
|
|
|
|
How is this?[^]
That may help for the first part.
Also...
CodeDom Serialization is basically taking the designer and creating the backend code for it (like what is in the *.designer.cs files).
Keep Clam And Proofread
--
√(-1) 23 ∑ π...
And it was delicious.
|
|
|
|
|
Hi All!
I have programmed two years in VB.Net and I'm thinking of moving on to C#. Main reason being that some applications at work are in C# and the online documentation I feel is better. I'm selflearned.
My question is if you have tips regarding the problems below, documentation or tutorials that helped you once upon a time.
Now to the problems:
1. I'm having difficulties to grasp how my new projects structure internally would be, best case. Often I start programming and finding out as I go. I feel I'm having planning issues. I work alot with database access applications.
2. When I'm programming I feel that I have a problem with finding good object structure. Per say; I have a class that handles errormessages but I have trouble seeing the solution for the structure of it and how other classes should us this class.
3. I work alot with databases, SQLite, Access etc. I've been reading into Dapper-solutions for easy CRUD work. Somehow I feel I should start of more basic.
4. I lack some basic OOP understanding. Even if I've read alot I feel I cannot implement it. For example interfaces, inheritence and project patterns. Examples I've read is relatade to real-time objects as Cats, Cars etc. But when I have for example "Register an abscense / holiday" etc. How should that object look and fall in line with other objects, no clue...
Any tips on either number is greatly apprieciated!
H
|
|
|
|
|
Bankaida wrote: have programmed two years in VB.Net and I'm thinking of moving on to C#.
IMHO there is not much difference between the two. For basic syntax and usage try Microsoft Virtual academy .[^]
I'm not sure if this is what your looking for.
There are many great articles here on Code Project. Just search for relevant articles. Also in Q&A You can ask specific questions. Some of the guru's will help. (usually)
Hope this helps.
David
|
|
|
|
|
|
You are correct sir.
David
|
|
|
|
|
|
Hello, when I started to learn C# I found that dotnetperls.com really helped to explain the basics of c#
|
|
|
|
|
Hello Everybody,
I have developed a simple asp.net web application using Oracle database hosted in Windows Server machine and accessing from client PC. I am using simple RDLC Reports, now I want to make some interactive graphical Reports like SSRS Reports , i have tried this,
but I am completely new to this SSRS technology.
So can anybody guide me how to use SSRS reporting services for my application using oracle database.
I want to access SSRS reports from that application, is it possible to make this happen using Oracle DB
Please help me out ......
Thank you..
|
|
|
|
|
Why have you posted this question in the C# forum?
Veni, vidi, abiit domum
|
|
|
|
|
private delegate void TestHandler();
private TestHandler mTestDelegate;
public fmMain()
{
InitializeComponent();
}
private void fmMain_Load(object sender, EventArgs e)
{
mTestDelegate = new TestHandler(() =>
{
Form fmTest = new Form();
fmTest.ShowDialog();
});
mTestDelegate.BeginInvoke(null, null);
}
Why can not I Wrtie "fmTest.Show()"
|
|
|
|
|
Please do not post the same thing in multiple places - it wastes time and can annoy people.
The only instant messaging I do involves my middle finger.
|
|
|
|
|
i am very sorry to do that.
|
|
|
|
|
.Show will show the form you want to display and will allow you to go back to the other window without closing it, and .ShowDialog will show the form you want to display and wont allow you to go back to the other window with out closing the new window.
|
|
|
|
|
I think you wont be able to do: fmTest.Show(); as "fmTest" is the main/only form. Can someone correct me if im wrong.
|
|
|
|
|
i want to know why I wrote "fmTest.Show()", the form("fmTest") will not be responded??
i hopt you copy my code and run it ,you will understand it
Thank you!
|
|
|
|
|
Hi All,
my program requires the user to open a specific text document with fixed values inside and clicking plot will plot the values from the text document onto the pictureBox. I need help in where if the user didn't open the text document and clicked the plot button, an error message will show from the MessageBox and requires the user to locate and open the text document. Any help will be appreciated!
Thanks
P.S I'm new so i'm not sure how to attach a picture so i used tinypic link [IMG]http://i41.tinypic.com/2elgjur.png[/IMG])
|
|
|
|
|
You will need to read the text file, get the values and store them in an array or another construct.
You can then plot a graph inside the picture box using classes from System.Drawing.Drawing2D .
As far as checking whether the file has been loaded or not goes, set a boolean when the text file is read.
If the user clicks on plot and this flag is not set, it means the file has not been loaded.
Simply show the error message.
|
|
|
|
|
Thank you all for your help!
|
|
|
|
|
As an alternative to Abhinav's suggestion. you should set the plot button's Enabled property to False in the form designer. Then, in your program, when you have successfully read and parsed the data file, set it to True . In that way, the user can only request a plot when you have some valid information.
Veni, vidi, abiit domum
|
|
|
|
|
Thanks for your help!
|
|
|
|
|
Which is Best? MVVM and MVC?
|
|
|
|
|
Both are different and cannot be compared. They have different uses.
MVVM was designed to make use of WPF and Silverlight's databinding characteristic, whereas MVC has been around as the traditional controller view separation approach.
|
|
|
|