|
hii everyone,
Iam working on TabletPC handwriting synthesis
iam using MICROSOFT.INK SDK
i want to erase specific portion of the ink dynamically
example : i write CAR using my handwriting , I want to erase the alphabet C,R and want to get specific portion of A only
please help me out , how can i erase defined specific portion dynamically without using INK ERASEMODE/DELETE MODE functionality (of stroke selection first den use erase mode), I dont want to do it manually after selection and den usong delete mode
I want to do it Programatically
please help me out
with regards
Amit
|
|
|
|
|
|
So, what's your question? All you did was post some code (and improperly formatted at that).
You can only inherit from one class, but you *can* inherit from multiple interfaces, and you can inherit from one class AND multiple interfaces.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
I have to say I agree with John. You haven't asked a question, you have just pasted in some a lot of code which isn't properly formatted.
The fact that you can't have multiple implementation inheritance, but can have multiple interface inheritance is well known in C#.
You can explicitly implement a property or method for an Interface:
http://msdn.microsoft.com/en-us/library/aa288461(VS.71).aspx[^]
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
|
|
|
|
|
Multiple inheritance is bad, hmmkay?
I are Troll
|
|
|
|
|
Sorry, but there is something that has always bugged me about your sig:
Eddy Vluggen wrote: I are is Troll
FTFY! There is, after all, only one of you
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
|
|
|
|
|
Keith Barrow wrote: There is, after all, only one of you
Meh, that's debatable. If you believe in reincarnation, then there's only one you at a time
I are Troll
|
|
|
|
|
please anyone tell me where i found JockerSoft.Media.dll actully im working on live video and want to extract and save frames of that video through C# code...and require this dll to add in my project...
|
|
|
|
|
Words fail me, and that doesn't happen very often. You found the article[^] this related to as evidenced by the fact that you posted the same question there, but you completely failed to download the actual source code from that same article. That's a fail on an epic scale. Here's a hint - look at the top of the article. There are two downloads; try them.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Saira13 wrote: please anyone tell me where i found JockerSoft.Media.dll
Google[^] will be your friend.
It's time for a new signature.
|
|
|
|
|
How can i get list of all controls in my form (also i wanna all controls that i add to form dynamically) and thier properties , cause i wanna to set some properties with my own values and show to users!
I have this piece of code but it doesnt do this for me.
Control[] controls = this.Controls.Find("OpenToolStripMenuItem",true);
System.ComponentModel.TypeConverter tc;
if (controls.Length > 0)
{
Control control = controls[0];
PropertyInfo propertys = control.GetType().GetProperty("Text");
tc = System.ComponentModel.TypeDescriptor.GetConverter(propertys.PropertyType);
propertys.SetValue(control, tc.ConvertFrom("OPEN", null);
}
|
|
|
|
|
Well if you want to find all Controls within your form, calling this.Controls.Find("OpenToolStripMenuItem", true); will just find that one control, won't it?
Try iterating through the Controls collection instead.
foreach(Control c in Controls)
{
}
|
|
|
|
|
I knew that!
if I have menuStrip1 in my form and I have OpenToolStripMenuItem in it.
Now how can i find this(OpenToolStripMenuItem) within your code !
|
|
|
|
|
It will be in the control collection of the menuStrip1.
|
|
|
|
|
You said you were looking for a way to find all controls within your form..
Anyway, d@nish gave you an answer to this.
|
|
|
|
|
Is Google not working for you?
I have shocking news: MenuItem and ToolStripMenuItem inherit from System.ComponentModel.Component , not from System.Windows.Forms.Control , so they aren't Controls.
Obviously all menu items do reside in some hierarchical data structure, such as MainMenu.MenuItems and MenuStrip.Items
|
|
|
|
|
this code cal get all control in the form.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace GetAllControls
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
findControl(this);
foreach (Control control in controlList)
{
if (control is System.Windows.Forms.Panel)
{
}
}
}
private void findControl(Control control)
{
if (control != null && control.Controls != null)
{
foreach (Control childControl in control.Controls)
{
findControl(childControl);
this.controlList.Add(childControl);
}
}
}
private List<Control> controlList = new List<Control>();
}
}
|
|
|
|
|
Hi Everybody,
I want to learn, How to remove particular character from the string.
Example: -
1) "A+B+C" <<== i want to remove "+" plus character
2) "A B C" <<== i want to remove "Spaces"
Thank you in advance and appreciate for each replying
(Riaz)
|
|
|
|
|
use this
.Replace("+", String.Empty);
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
|
string str="A+B+C";
str=str.Replace("+"," ");
str=str.Replace(" ","");
|
|
|
|
|
Hello,
I just posted a similar question before this one, but still it is a different question so posting as a separate thread.
I have added the following line in my AssemblyInfo.cs
[assembly: InternalsVisibleTo("UI Test")]
I did this to allow my test project access this assembly's internal method for testing. But I dont want to keep it accessible like this in my production (Release) build. At this moment, I am just commenting this line for production build and commenting out for debug mode, but it is really a hassel. Is there any other automatic way available for doing so ? Can I add this asselbly attribute programmatically by detecting if it is DEBUG mode or RUN mode ? Will that cost high performance ?
|
|
|
|
|
Maybe this can help you.
Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
Yes. Just enclose it in:
#if (DEBUG)
. . .
#endif /ravi
|
|
|
|
|
Hi Ravi,
Thank you Soooooooooo much for this snippet. It just saved me.
|
|
|
|