|
No, you are not fully understanding the problem.
The main difference is that i'm only adding the panel dragging and drop the control to the form, because the splitContainers are being added dynamicly with code.
I have bypassed the problem though, taking out the resumeLayout and SuspendLayout methods invocations.
I don't know if this is going to bring me problems in the future, but i have found someone here who doesnt use them without any problems.
Thx,
Nuno
|
|
|
|
|
As a side note, it is a programming convention to use uppercase names for methods, i.e. AddNewRegion rather than addNewRegion.
|
|
|
|
|
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
I have alredy added a DataSet name Publications where I have add three tables.
Table(0) is Query_Volume_VolumeLessons
Table(1) is Query_Volume_Sectos
Table(2) is Query_Volume_Themes
Also put data on Table(0) from SQL SERVER DataBase
Now How can I put data to Table(1) From Table(0) , using a sqlQuery
Thanks
Sarfarj Ahmed
|
|
|
|
|
dear ;
i have a problem with my windows form because when i run the program which contains a graphs in pictureboxes the graphes appears but when i minimize the form and get it back ,,,the graphes dissapears ???!! really i want to know how to over come with this problem.
the second is how to print my windows form by clicking on print button??
thank you ... thank you....
ahmad al-omar
|
|
|
|
|
Are you painting the graph on the PictureBox?
If so, where is the painting code executed from?
Try using the form's Paint event in order to redraw the graph on the PictureBox.
Regards,
Shy.
|
|
|
|
|
the graph made by mouse move this is the code below :
Graphics gy = pictureBox4.CreateGraphics();
gy.FillEllipse(new SolidBrush(Color.Blue),i,y_pos[i]+50,3,3);
thank you
ahmad al-omar
|
|
|
|
|
When you paint something on a control you have to repaint it whenever the control repaints itself.
When you minimize the form and restore it, all of the controls on the form are automatically repainted.
However, any painting you made on the controls are not repainted.
Use the PictureBox.Paint event and place your code there in order to repaint the ellipse everytime the PictureBox repaints itself.
Regards,
Shy.
|
|
|
|
|
On top of shyagam's response, anytime you can elimineate the Control.CreateGraphics() call in GDI+, do it. If you are working extensively in GDI+ this is a rule you should embrace. Thus, when you re-Maximized the control from wich the graphis being painted, it will automatically repaint the graph and when a value changes that will affect the graph you can simply call Invalidate() on the control that is painting the graph.
"All of us who served in one war or another know very well that all wars are the glory and the agony of the young."
Gerald Ford
|
|
|
|
|
Hello friends
I want to build a PHP IDE that anyone can write farsi or arabic easily as in frontpage or MS word,
I want o use C# for this,
what is the start point in order to build this IDE?
Which things I must learn?
Any one has idea about this subject?
|
|
|
|
|
I think I would start by really boning up on Regular Expressions (google or CP-search) and other ways to parse text.
On the other side I would focus on getting to know as much as possible about PHP so you can define the boundaries of your project (if any ).
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
hi,
I am creating a editor in Richtextbox control.
and now i want to implement feature Undo and redo ..
I am not getting it.
pls help me
with regards
prasad
|
|
|
|
|
Check out this recent code project article.
Standards are great! Everybody should have one!
|
|
|
|
|
Here are some articles:
http://www.codeproject.com/useritems/useractionbasedundoredo.asp
http://www.codeproject.com/csharp/autoundoredo.asp
and this pattern looks promising too:
http://en.wikipedia.org/wiki/Memento_pattern
Although they will not be easy to implement with a RichTextBox I think.
A simple solution, that comes to my mind would be to save a copy of of the text when a change occurs. Then you can undo by replacing the current one with this copy. You should however limit the number of copies because it will consume a lot of memory when there is a lot of text.
Can you show us what you have thought of, or have tried already? Do you have a specific problem, or just no idea where to start?
I feel like a twat :p I didn't know RichTextbox has Undo/Redo functionality. Post your code, tell us what the problem is.
-- modified at 10:38 Wednesday 21st March, 2007
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
hi,
int ActiveUndoIndex = ActiveWindowStatus();
if (arrScrptDsgnrFrms[ActiveUndoIndex].RchtxtBx.CanUndo == true)
{
arrScrptDsgnrFrms[ActiveUndoIndex].RchtxtBx.Undo();
arrScrptDsgnrFrms[ActiveUndoIndex].RchtxtBx.ClearUndo();
}
this code is undoing the enitre actions not chracter by chracter ...
help me pls
|
|
|
|
|
Before you try to Undo something, you need to check to see whether or not it can be undone. To do this, you need to call CanUndo and only call Undo if it returns true. Similar logic applies to Redo/CanRedo.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hi,
int ActiveUndoIndex = ActiveWindowStatus();
if (arrScrptDsgnrFrms[ActiveUndoIndex].RchtxtBx.CanUndo == true)
{
arrScrptDsgnrFrms[ActiveUndoIndex].RchtxtBx.Undo();
arrScrptDsgnrFrms[ActiveUndoIndex].RchtxtBx.ClearUndo();
}
this is undoing the entire operation
e.g if i enter 100 chracters
it is deleting 100 chracters at time for single undo..
|
|
|
|
|
hi
The Richtextbox control have methodes for this issues
e.g. Copy(), Paste(), and properties like CanCopy or CanPaste
regards
|
|
|
|
|
Search the articles for "undo" and/or "redo". There are some that cover this topic.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
I could only find an example in VB.
http://www.java2s.com/Code/VB/GUI/RichTextBoxReDoandUnDo.htm
this is my own mockup
private void button1_Click(object sender, EventArgs e)
{
if(richTextBox1.CanUndo)
{
richTextBox1.Undo();
}
}
private void richTextBox1_TextChanged(object sender, EventArgs e)
{
button1.Text = richTextBox1.UndoActionName;
}
It seems to work fine here.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
hi,
int ActiveUndoIndex = ActiveWindowStatus();
if (arrScrptDsgnrFrms[ActiveUndoIndex].RchtxtBx.CanUndo == true)
{
arrScrptDsgnrFrms[ActiveUndoIndex].RchtxtBx.Undo();
arrScrptDsgnrFrms[ActiveUndoIndex].RchtxtBx.ClearUndo();
}
this is undoig all entered characters at single shot
e.g if i enter 100 charcters all 100 chractes are removing at a single shot.
|
|
|
|
|
can i install a software from client machine to server with the help of .net remoting concept. i try to install a software. it installed the server but it use the registry of client machine?
sree
|
|
|
|
|
hello,
i need to convert wav file to mp3.
there are several types of bit rates. normally use 8kpbs to 320kpbs.
most project using lame dll. can i convert this without lame dll.
could u please explain the bit rates as mentioned above.
sree
|
|
|
|
|
Why you want to work without lame dll?
About bitrate vales.. I found this:
32 kbps: radio AM quality
96 kbps: radio FM quality
128 to 160 kbps: Decent quality
192 kbps: Good quality
224 to 320 kbps: Like CD quality
Cheers,
Russell
|
|
|
|
|
you can, have lots of fun reading the mp3 spec and experimenting to find the least lossful ways to do encoding. Most projects use a 3rd party encoder because doing this in a way that sounds good is not an easy task.
--
CleaKO The sad part about this instance is that none of the users ever said anything [about the problem].
Pete O`Hanlon Doesn't that just tell you everything you need to know about users?
|
|
|
|