|
Message Closed
modified 23-Nov-14 6:19am.
|
|
|
|
|
i think, we need desig Form Messagebox by user control. at the time, we control it.
you agree.
nothing
|
|
|
|
|
Do you have anything in your "disable" menu that minimizes the app if it's in full screen? The way I normally do this, I have to add something on my form_closing event to see if the user is actually minimizing when they hit the x. If they are, I minimize, otherwise I close. You might have something like e.Cancel = true stopping the app from actually shutting down.
|
|
|
|
|
Hi,
I am making an application integrated with Microsoft Project in c#. Now ,I want to read mpp file and convert all task objects to DTOs. I created DTOs same as Task object. The application should read any Microsoft Project version (from MS 2003). I used the normal methods creating the ApplicationClass object, reading the Project object, then iterating the tasks etc. Found it is too slow and OS dependent. I cant quit the Winproject.exe from my application in Win 2003 server. Also the application doesn't works on 64 bit OS.
Please guide me to a solution. Hoping a reply...
Regards,
DJ
|
|
|
|
|
Hi everyone
How i get datatype and dataset and convert it into oledbdatatype.
Thanks for reading
|
|
|
|
|
There are a number of solutions out there try some google foo[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I get this error from this code :
delegate void SetColumnIndex(int i);
private void dgvFactorSell_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
try
{
if (dgvFactorSell.CurrentCell.ColumnIndex != dgvFactorSell.Columns.Count - 1)
{
int nextindex = Math.Min(dgvFactorSell.Columns.Count - 1, dgvFactorSell.CurrentCell.ColumnIndex + 1);
SetColumnIndex methods = new SetColumnIndex(Mymethod);
dgvFactorSell.BeginInvoke(methods, nextindex);
}
}
catch (Exception ex)
{
clsMessageBox.ShowError(clsErrorHandle.GetError(ex));
}
}
private void Mymethod(int columnIndex)
{
try
{
<code>dgvFactorSell.CurrentCell = dgvFactorSell.CurrentRow.Cells["CAmount"];</code>
dgvFactorSell.BeginEdit(true);
return;
}
catch (Exception ex)
{
clsMessageBox.ShowError(clsErrorHandle.GetError(ex));
}
}
|
|
|
|
|
I think the column that you are try to change is read only.
That is one of the reason why such exception occurs.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
But no .
The column isnt Readonly!
Help Plzzzzzzzzzzzz!
|
|
|
|
|
Hello
I have implemented my own Designer where I am able to add / position my controls.
Now I would like to have the possibility to zoom in and out the Design Surface, like in Word, Visio or PaintingSoftware.
Is there a build-in feature or a tutorial to get this functionality?
I have found solutions for zooming in single pictures but not for a whole DesignSurface with controls on it.
Thanks in advance for your help
|
|
|
|
|
hi,
i don't think you will get any build-in feature or tutorial.
So in your case you will need to write your own designer surface supporting zoom in or out. but that won't be as trivial as it sounds
i think the first step you might go will be writing a ZoomingContainerControl that allows you to hold some controls and that provides zooming.
hope i could help
blesssssss
|
|
|
|
|
Thanks for your answer. I expected something like that yes
I'll try it tat way with writing a zoomingcontainerControl.
I hoped there is an easier and especially faster solution
The designer itself is more or less complete, but according to huge configurations made up of many controls (buttons, textfields, etc), there is
a need to zoom in and out while doing the design of the surface.
|
|
|
|
|
when i am in editmode in datagridview(datagridview.IsCurrentCellInEditMode=true )I want user to be able to press "Esc" button on keyboard and then I want datagridview.IsCurrentCellInEditMode=false and if the user press "Esc" for second time the datagridview leave focus and the txtName get the focus!
My datagridview has <<SelectionMode = FullRowSelected >>
I have this code in ProcessCmdKey :
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
KeyEventArgs key = new KeyEventArgs(keyData);
if (key.KeyCode == Keys.Escape)
{
datagridview.EndEdit();
txtName.Focus();
}
}
So Please Help!
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:19am.
|
|
|
|
|
BUT CELL IS IN edit mode
So, plz Help
|
|
|
|
|
Hello.
I want to create a mini slideshow which can present document like powerpoint by C# winform.
Please help me!!!
Thx!!!
|
|
|
|
|
You already told us all that two days ago, so I must assume you're nearly finished.
Did you have any specific question, so somebody could get a chance and help you?
|
|
|
|
|
Oh, yes.
I want to ask about:
Control can use to create slide and how to present it like powerpoint when I press F5 key.
|
|
|
|
|
That is still very vague. What is the input? are they single images? what format? or is it a single document? maybe a .PPS file?
If it is an official PowerPoint format, and you can see it with Internet Explorer, then have a look at WebBrowser. Using Navigate() it might be willing to show the same; not sure how to navigate within the document, a little Google action should tell you.
If it is individual images, you could paint them one by one to any surface, e.g. a Panel (or a PictureBox).
What have you done so far?
|
|
|
|
|
Oh, that control is a container can contain other controls as textbox, button, picturebox... which are designed by me.
I want to create many slides and present them like powerpoint slideshow!!
|
|
|
|
|
so show one page at a time on a surface of your choice: a Form, a Panel, a TabPage, it depends on the functionality you want. As you are not providing anything tangible, I can't help you further.
|
|
|
|
|
Hello everybody
Can somebody help me?
I need a idea in wich direction i have to search the solution??
My code:
Class Program
{
static void Main(string[] args)
{
string filePath = "C:\\test.txt";
StreamReader streamReader = new StreamReader(filePath);
string text = streamReader.ReadToEnd();
streamReader.Close();
int pos = 0;
int pos1= 0;
string output = "";
pos = text.IndexOf("MERKMAL $");
output = text.Substring(pos+7,6);
Console.WriteLine(output.ToString());
In this txt file there are some vaues look like this:
MERKMAL $001$
MERKMAL $002$
MERKMAL $003$
MERKMAL $111$
MERKMAL $222$
MERKMAL $333$
I have to parse the $...$ values include the $001$, so my problem how can i search in the next line
normaly i want to use like in AutoIt @crlf but how can i do this i c#, i want to do this later with a loop!
Thanks a lot
sorry for my bad english i wok on it .
|
|
|
|
|
Hi,
there are basically two ways to do this:
1.
use a string.IndexOf() overload that takes a start parameter, so you can start each new search 6 characters behind the current match. Put it all in a loop.
2.
use a regular expression, and a foreach on the result of Regex.Match.
|
|
|
|
|
Here is a regex solution:
string text=File.ReadAllText(path);
foreach (Match m in Regex.Matches(text, @"MERKMAL \$([0-9]*)\$")) {
log("found: "+m.Groups[1]);
}
|
|
|
|
|
hi, I'm able to close all running applications by using; Process.Kill() or CloseMainWindow() But then it closes everything. Also, ProcessName property doesn't help because I don't know the names of applications. What I'm trying to do is to close only the applications like; browser, messenger, games, file browser etc. Because before a new user starts using the pc, there should be no running application, so that the user makes a fresh start. Any clue about it is welcomed, thanks.
|
|
|
|