|
|
The control object to be copied has some other objects also.
|
|
|
|
|
Hello,
I would recomend to make properties for this objects!
All the best,
Martin
|
|
|
|
|
hi All,
I want to know How to get the instance of a running process before it terminates ?
Thanx
|
|
|
|
|
System.Diagnostics.Process.GetProcessById(ProcessID);
or
System.Diagnostics.Process.GetProcessesByName(ProcessName);
|
|
|
|
|
|
i had write this code using c# to do drag and drop. But it just for drag and drop. i need it to reorder itself after the drag and drop. how can i fix this code to do the reorder?
private bool isDragging=false;
public int x,y;
private void panel1_MouseDown(System.Object sender,
System.Windows.Forms.MouseEventArgs e)
{
isDragging = true;
x = e.X;
y = e.Y;
}
private void panel1_MouseUp(System.Object sender,
System.Windows.Forms.MouseEventArgs e)
{
isDragging = false;
}
private void panel1_MouseMove(System.Object sender,
System.Windows.Forms.MouseEventArgs e)
{
if (isDragging == true)
{
panel1.Left = e.X + panel1.Left - x;
panel1.Top = e.Y + panel1.Top - y;
}
|
|
|
|
|
onMouseUp Event Check if isDragging id true the check the location of other control and then reorder accordingly
|
|
|
|
|
Thanks for the idea. It's very useful. But i have the problem to check the location of other control. Can you give a example or idea?
|
|
|
|
|
Anyone can help to solve the problem of:
In the web form, there are two datagrids that located at the top and bottom. After databinding,
the top datagrid may give no room for the bottom one because of too many data.
Any dynamic solution to move the bottom datagrid according to the top grid after-databinding-height.
Thanks
|
|
|
|
|
check the Dock and Anchor Properties
|
|
|
|
|
Hi I am developing a windows application in which it contains a grid and two buttons called play and delete.
If user selects a row on the grid and clicks play button then all the images are shown in a slideshow. (for showing slide show iam using a a new form which it contains a picturebox.)
if user selects a row on grid and clicks delete then it deletes the folder of images.
THe problem is when i select a row and clicks the play button it is showing the slide show. After exiting if i select the same row and clicks delete button then it is saying the picture X is used by another process.
How can I overcome this problem. Please Help me.
Thanks in Advance.
Ramu Medida.
|
|
|
|
|
if images are being shown in the Grid. it means they are being used by another process.
firstly Remove that Row then those images
|
|
|
|
|
THanks for your respose but the problem is not solved.
Here the images are not displayed in the grid. Grid contains the path for the images folder.
please help me.
|
|
|
|
|
is your slideshow form opens as dialog.
if yes then disopose object of that slideshowForm
for extra caution use GC.Collect();
|
|
|
|
|
Thank You Very Very Very Much.
My problem is solved by putting the statement GC.Collect.
Once Again Thank You.
Ramu Medida.
|
|
|
|
|
As far as I know, only Rectange(F) class has "Contains" method to indicate that a point is inside it or not.
Now I want to find the point inside an ellipse and other shape, is C# support it or we have to implement some argorithym to find out.
Thanks for your help.
|
|
|
|
|
hi
you can create a Region that describes your ellipse. the Region - object has a Contains (or something similar) function.
greets
m@u
|
|
|
|
|
Yes, I have checked it, the method is "IsVisible".
Thx a lot.
|
|
|
|
|
hello everyone
i am looking for a visual componenet that will
discribe an azimuth angle (0-360)
something with a cicule and an arrow
can plesae someone helpme?
|
|
|
|
|
I have a Windows Form Application and I was wondering how to store a user defined variable from a textbox in Form1 and then use the variable in Form2. I am not able to do this. How it will be done?
|
|
|
|
|
make variable public or public static .
|
|
|
|
|
in my opinion
save the varible and create a property
|
|
|
|
|
|
We have added a user control as an editor in the DataGridView by declaring a class and adding it as a column to the grid. The class is a custom datagrid column implementing the user control which contains a textbox for editing.
When we type characters in this textbox, certain characters are not captured (e.g. lower-case q, dollar sign, exclamation and decimal point).
Has anyone come across this issue or anything similar?
|
|
|
|