|
thanks... that was xtremly helpful...
|
|
|
|
|
Do I detect a hint of sarcasm here?
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
sorry if u have fealt like that but ur answer solved my problem.. cause i had googled it with long strings but colud not find any relavant answers....
|
|
|
|
|
No offence intended, its just that often if you just give someone a hint they can't be bothered to follow it up, they expect complete code samples. I'm pleased it helped, I generally only give an idea of the answer, as by finding out for yourself you learn. Obviously in your case it applied
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi all!
I have a small project where I need to create a visual family tree editor. Before I start reinventing the wheel, I would like to know if there are any free or open source C# library which lets me do the following:
-add, select and remove elements (simple boxes with title is enough) with mouse and context menu
-connect and disconnect elements with mouse.
If I have this, I 'll be able to do the rest myself (attaching some data structure to the visual tree and storing the tree to a database).
Thanks for any ideas.
|
|
|
|
|
here[^] is one but in C++
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Oh, that is great, if only it was C#. Anyway, thanks, I'll see if I can port it to C#.
|
|
|
|
|
hi
i'm new at c# and i'm using visual studio c# 2008
i have a very large application which needs to take pictures from a webcam to work with them
i found this code (among many other which i haven't been able to get to work) http://www.c-sharpcorner.com/UploadFile/yougerthen/810262008070218AM/8.aspx[^]
notice there, in the extra code the author asks to add for the thing to work, it has already a initializeComponent() since its a form of sorts. BUT notice too that MY application is also a form and pretty much larger, so of course it has its own initializeComponent() with near 150 other componets; the webcam stuff must be in one of the tabs initialized there.
If i let the initializeComponent() be, the compiler says it does not exist in the actual context. i deleted the constructor altogether but then obviously not even the pictureBox appears. but then if i leave the constructor there, but remove the initializeComponent()... what should it had inside instead? the picture box and buttons are already taken care of in the bigger initializeComponent().
so how can i merge this code into mine so i can use the webcam features in there?
any ideas?
|
|
|
|
|
|
Hello,
i would dtetct a zip word on my sting, i have string s = myname.zip and i would return myname, i ty to:
string[] result = s.Split(new Char[] {"zip"},2);
but it does not work, help me, thank you verry mutch.
|
|
|
|
|
abbd wrote: new Char[] {"zip"}
"zip" is a string, not a char.
Secondly use '.'.
hmmm pie
|
|
|
|
|
but if i have for exemple myname_of_25.03.2009.zip, it not work i wold gest all myname_of_25.03.2009, thank you verry mutch
|
|
|
|
|
Then use the Remove function.
Thank you very much.
hmmm pie
|
|
|
|
|
can you give an exemple? thank you
|
|
|
|
|
|
you should not use split method as it causes to create string array object
if your requirement is only to return filname without extension the
use this
return new Path.GetFileNameWithoutExtension(s);
Happy Coding
Deep
|
|
|
|
|
thats the way I like but there is no need for new keyword
PS Good Answer BTW
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
oh thats rights!!!!!!!
thanks for comment........
I guess even no need of the "the" at the end of s econd line
thanks for comment again!!
|
|
|
|
|
SaveTigers wrote: I guess even no need of the "the" at the end of s econd line
hehe yeah thats right too
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
You really question a lot of simple and basic questions here. Although this is not a real problem, you should try and buy a book and read it.
Also: all your messages are turned grey, this is because people think your questions are bad. If you see red messages, people think it is a good question or anwser.
|
|
|
|
|
I second that.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Use System.IO.Path.GetExtension(filename) , and you'll get ".zip". There are also methods for getting the filename, or the directory.
"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." - Jason Jystad, 10/26/2001
|
|
|
|
|
HI,
I am using asyncrouns socket and the application connects it to another application. but the requirement is, if my apllication gets discionnected due the failure of previous aaplication when the other application starts up , my application should connect the application as soon as the user clicks on the dialog which is shown at the time of disconnection.
but i am encountering this exception:
the undo operation encountered a context that is different form what was applied in corresponding set operation. the possible cause is that a context was set on the thread and not reverted (undone)
can any one help it
|
|
|
|
|
|
hmmm..looks like a Tongue Twister problem
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|