|
Ok, my problem is i even don't have any reference to the tooltip object.
|
|
|
|
|
i think it will be better if u create tooltip object runtime
and on the textchange event u can dispose the old tool tip object by
toolTip.Diapose() method and create new instance of tooltip object
and set it again.
rahul
|
|
|
|
|
ok i tried to aviod creating a tooltip object thats existing the whole time in the class, but there is no alternative, i think.
thank you
|
|
|
|
|
|
hi,
i keep a logging in a .txt file, i would like to open this file by pressing a button in my program.
how do i do this? is this even possible??
thx
grz
|
|
|
|
|
u can try
System.Diagnostics.Process.Start("complete path of file\\filename.txt");
rahul
|
|
|
|
|
Hi,
Yes ! Either you can open the text file using the IO classes provided in the .Net or you can directly open that file in notepad using Process.Start(). Have look here[^]
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
thanks alot !!
can i make it a read only to? so people cant change it.
thx
|
|
|
|
|
then you should open the text from within your program and display in a Read-only (or disabled) text control. You cannot open en text in notepad and somehow disable it from editing.
StreamReader srMyLogfile = new StreamReader("path/to/file.txt");
txtYourTextbox.Text = sr.ReadToEnd();
txtYourTextbox.Enabled = false;
srMyLogfile.Close();
srMyLogfile.Dispose();
- - - --[ i love it when a plan comes together ]-- - - -
|
|
|
|
|
|
What is the Assembly/Namespace for capturing Video in Microsoft's DirectX Manage Code using C# or VB.Net Language?
Siamginsuan Ngaihte
|
|
|
|
|
Add reference in your project to DirectX.Capture.dll.
This dll requires DShowNET.dll, make sure they are in same directory.
Regards,
Bhupi Bhai.
|
|
|
|
|
Yeah thats right, thanks a lot. I am just wondering whether this DirectX.Capture.dll and DShowNET.dll is from Microsoft or from Third party? Because it give dll-signing problem.
Thanks and regards
Siamginsuan Ngaihte
|
|
|
|
|
Hi All,
I want to use this property but in MSDN it says "This property is not currently supported and always throws a NotSupportedException.". When will it be supported? Can you suggest any other method or property?
|
|
|
|
|
This should work, pls try and let me know.
private m_NetworkStream = new NetworkStream();
public override long Length
{
get
{
return m_NetworkStream.Length;
}
}
Regards,
Bhupi Bhai
|
|
|
|
|
Should I put this code in my code? If it is so, "private m_NetworkStream = new NetworkStream();" it gives compile error.
Can you give detailed information please?
|
|
|
|
|
Friends,
Is it possible to generate source code (say for example C#) using Visio?
Thanks.
|
|
|
|
|
I really don't think so.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Well, I think we can.
Visio for Enterprise Architects comes free with Visual Studio.NET Enterprise Architect edition. It has extra tools that the standard edition of Visio does not have. These tools enable forward and reverse engineering of databases and code. Visio can actually generate skeleton C# or VB.NET code based on the documentation created with it. Even applictions with unique structures can be generated because the code templates Visio uses can be customized to fit almost any need. For a large project, the boilerplate code it generates can save weeks of tedious coding, allowing you to move onto the more interesting business logic code.
For more info visit : "http://steveorr.net/articles/VisioCodeGen.aspx"
Regards,
Bhupi Bhai.
|
|
|
|
|
It is possible to generate source code from the class diagrams drawn in visio. But you need .net enterprise architect and visio enterprise architect editions.
|
|
|
|
|
I want to use and active X control. That was created with a different(C++) programming language in C#. I tested its methods methods on a windows aplication form they do work fine. But when I wan't to add it to a webForm I am not able to acces it's methods method. I am able to add it using
<object
id="Object1" border="0" name="Any" classid="CLSID:27A4643-14B3-1d6-A3DC-00C7CAA476" style="z-index: 102; left: 521px; position: absolute; top: 177px; height: 226px; width: 270px;">
But when I use
function MyButton_onclick()
{
Object1.Method();
}
it does not even give an error it is just quiet. my email addres is lungiez@yahoo.co.uk
1234
|
|
|
|
|
Wow - did you mean to post this in response to a question about Visio ?
Christian Graus - C++ MVP
|
|
|
|
|
Thanks friends,
I got good enough idea from link above. Its good article.
Thanks again.
|
|
|
|
|
Hi All,
This is Pratik here.
I am creating a RichTextBox using C#, wherein I m facing a problem.
I have specified some text in the RTF textbox with the same font.
Now, I want to make the entire text as bold. Hence i do Ctrl + A.
So at the time of Ctrl + A action, the entire text gets selected, but it also selects one extra blank space, which has a font of "Microsoft sans Serif."
The entire text that is selected is in Arial, but the extra space that is being selected is "Microsoft sans Serif", as a result of which, the richTextBox.SelectionFont property is set to null (since more than one font is included in the selection).
I don't understand as to how to get rid of this extra space selection.
Pls help me out.
Thanking you in Advance
Pratik Shah
|
|
|
|
|
hi
i want to know
how to override ondatabinding in case of binding data to a datagrid?
where i can do it?
thnx in advance
soori
|
|
|
|