|
i have a drop down in the grid view after a new row
i want to change the selection of drop down but i get the following error in my browser Failed to load viewstate i am using data table for binding what is the solution
|
|
|
|
|
Dear All
Regards!
Its me David,
I download drawtools from
http://www.codeproject.com/csharp/drawtools.asp
the above tool reading only dtl file.
but i need the above type or any other along with the same functions but read DXF file and then draw it, and after drawing i have the functions to edit it.
hope for + response,.
David
-- modified at 1:10 Tuesday 29th May, 2007
david
|
|
|
|
|
Oh, it's you, David! Almost didn't spot you under 4 million members...
Anyway, there are several articles here presenting Undo/Redo frameworks, for example this here[^].
If you still have problems with applying the undo pattern on the objects the drawing tools program uses you could ask your questions in the article's discussion - the original author will be notified that there's a new question regarding his article.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Please don't change your question completely while someone is answering it - now the answer doesn't match the question anymore
Again, the article's discussion is the appropriate place to ask this question, too.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi,
can anybody tell how to sort the grid view using the data table so that new row added comes on the top
|
|
|
|
|
There are lot of articles related to sort the gridview Here[^].
Hope this will help you.
Regards,
Satips.
|
|
|
|
|
"COM+ activation failed because the activation could not be completed in the specified amount of time. (Exception from HRESULT: 0x8004E024)". it's a error when I init a instance of COM+
Thanks!!!!
AJ.
|
|
|
|
|
hi, i have exactly the same problem...
i, got this private fix from microsoft, but it didn't work. i found another thread about a very similar problem. they said, that it probably has to do with pooling of com+ services... but it didn't...
This issue was turned over to Microsoft as a technical support incident, and the result was a "private fix" for Windows XP. You should be able to discuss this with Microsoft by referencing case number SRX051111604907.
Regards,
Satips.
|
|
|
|
|
Hi all
I have a server on a Windows machine that should accept client connections to send them data. This server is distributed with a software and all I have to do is to write the client application using socket programming.
If I write the client under Windows, it will work correct. But if I write the client under Linux, the client cannot connect to the server returning the error 'Connection timed out'. I use C++ and C# under Windows and C under Linux.
To make sure that my Linux client is correct, I wrote a server application under Linux and they worked correct. So I think that the problem is in Windows-Linux communication.
Any help...
Regards
islheg
|
|
|
|
|
I am working on an application that implements a drag and drop interface, but when I drag the control with the mouse the control's position does not actually change until the cursor touches the form. That is, if I have a control that is 200 pixels tall by 150 pixels wide and I click the cursor and hold it at pixel 100 and 50, the control does not move until the cursor touches the form, but then the cursor is again positioned at the drag point again. This causes the control to move in jumps. I would like the cursor to remain at the drag position where the cursor was clicked and to drag from that point smoothly without the cursor needing to touch the form.
Do I need to somehow resample the control's position so that it moves using the drag point without needing to touch the form?
Here is the code
private static void _ctrlParent_DragOver(object sender, DragEventArgs e)
{
try
{
if (DragDropHandler.CanDropHere((Control)sender, e.Data))
{
Control cthis = (Control)sender;
Control cthisParent = ((Control)sender);
e.Effect = DragDropEffects.Move;
Control ctrl = DragDropHandler.GetControl(e.Data, true, true);
if (!(ctrl is IDragDropEnabled))
{
return;
}
if (cthis.Name != ctrl.Name)
{
ctrl.Parent.Controls.Remove(ctrl);
ctrl.Parent = cthis;
cthis.Controls.Add(ctrl);
ctrl.BringToFront();
}
else
{
return;
}
Point NewLocation = cthis.PointToClient(new Point(e.X, e.Y));
ctrl.Left = NewLocation.X - dragPoint.X;
ctrl.Top = NewLocation.Y - dragPoint.Y;
}
else
{
e.Effect = DragDropEffects.None;
}
}
catch (System.Exception ex)
{
MessageBox.Show("Error is " + ex.GetBaseException());
}
}
-- modified at 14:26 Monday 28th May, 2007
|
|
|
|
|
Drag-and-drop isn't used to move controls around, it's used for grabbings something (more or less) imaginary (like the representation of some files in an explorer window), and drag them to a control of some kind.
If you want to move a control around, you should just capture the mouse on MouseDown, move the control on MouseMove and release the mouse on MouseUp. (Actually, I'm not sure if that is the best way of doing it, but it will get you far closer than using drag-and-drop.)
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa:
The problem is that I need to be able to drag a control and to drop it onto another control, but in the meantime I need to be able to drag each control from the place where the mouse down click occurs. This drag point is currently retained by the Mouse Down event handler, but the control only moves when the cursor touches the form. This makes the control movement jumpy. I would instead like to be able to move the control from the drag point without the curor touching the form. Do you have any advice? Should I somehow capture the movement of the mouse in the MouseMove event handler?
New_Phoenix
|
|
|
|
|
Read my previous post again. If you don't understand it, explain what it is that you don't understand, instead of just repeating the contents of your original post.
---
single minded; short sighted; long gone;
|
|
|
|
|
i have a problem with passing a parameter to crystal report through form
using Visual Studio 2003,I have a piece of code which i had gotton from codeproject but i have couple of problems in that code
//Instantiate variables
ReportDocument reportDocument = new ReportDocument();
ParameterField paramField = new ParameterField();
ParameterFields paramFields = new ParameterFields();
ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();
//Set instances for input parameter 1 - @vDepartment
paramField.Name = "@vDepartment";
//Below variable can be set to any data present in SalseData table, Department column
paramDiscreteValue.Value = "South";
paramField.CurrentValues.Add(paramDiscreteValue); //Add the paramField to paramFields
paramFields.Add(paramField);
crystalReportViewer1.ParameterFieldInfo = paramFields;
reportDocument.Load(@"..\..\..\Reports\SalseReport.rpt");
crystalReportViewer1.ReportSource = reportDocument;
the code in Bold format is the problem.
Actully Visual Studion 2003 we don't have paramfield.Name function but paramfield.set_ParameterFieldName
and also in the case paramField.CurrentValues it is paramField.Set_CurrentValues.
when i used this function i had two error saying that these function can not be called explicitly.
help me to remove this problem.
By Lucky Hamad
|
|
|
|
|
I'm having trouble getting my head around regular expressions.
How do I find anything between < and > ?
Thank you.
|
|
|
|
|
The following regex will return the contents of anything between < and > in a named capture called "TagContents":
\<(?<TagContents>[^\>]*)\> Here's how it is constructed:
An escaped < character:
\<
An escaped "<" character - escaped to prevent it from being treated as a special expression character. This < matches the beginning of the tag.
A named capture group:
(?<name>matchexpr)
Matches the matchexpr expression and returns it in a named capture called name.
A custom character class:
[^\>]*
Custom character classes are defined by having a set of character identifiers within square brackets [ ]. The ^ character at the beginning means that the character class should match characters that are not contained within the characters listed within the brackets. So, this character class will match characters that are not ">". The asterisk at the end is a wildcard character that indicates that the character class should be matched any number of times possible, from 0 to the remaining length of the string.
An escaped > character:
\>
Matches the end of the tag.
--Justin
Microsoft MVP, C#
|
|
|
|
|
I'm sorry, I asked the wrong question. I actually need to find the entire tag, including the < and >.
|
|
|
|
|
Then just put the \< and \> inside the capture group:
<span><span>(?<TagContents></span></span><span><span>\<</span></span><span><span>[^\>]*</span></span><span><span>\></span></span><span><span>)</span></span> ...so that they will be captured along with what's between them.
--Justin
Microsoft MVP, C#
|
|
|
|
|
Hi !
Does somebody has any idea about HOW i can kill the process by itself (like Environment.Exit(0)) and
restart again ? In fact, my problem is what I can do to restart the application auto'magic'ally. Does it exist some mechanism with Windows to auto-restart an application ?
What I do is I want to restart my application with new settings and/or new setup.
Danny Gilbert, engineer
Montreal, Canada
|
|
|
|
|
Before calling Environment.Exit(0))
you could use Process.Start to create a new instance of your application.
Process.Start Method[^]
|
|
|
|
|
Application.Restart() will do the trick
|
|
|
|
|
I am using SSL to crate Https page,
But Security Report Icon shows only for short duration in Internet Explorer ,
and when page downloading complete it is disappear,
Why it is happening?....
i learner
i learner
|
|
|
|
|
Don't cross post the same Questions in different forums.
Regards,
Satips.
|
|
|
|
|
select first item (or other) of menustrip by code.
i want select (and open if it possible) one of menustrip items when user press space.
|
|
|
|
|
item.DropDown.Show()
life is study!!!
|
|
|
|