|
I really don't know what you are trying to ask...
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Please be clearer so we can help you. In case this is what you're asking about, it's perfectly legal to write
try
{
}
catch(InvalidOperationException e)
{
}
catch(FileNotFoundException ex)
{
}
catch
{
}
Cheers,
Vikram. "Don't judge me
You could be me in another life
In another set of circumstances"
- "Tomorrow we'll see", Sting.
|
|
|
|
|
Well I have a binary file that has attributes like rows, cells and color grid but I don't know how to convert this into a jpg or bmp file? Can anyone help my problem? or at least some article
|
|
|
|
|
|
hi all, currently i am trying to develop a application to send message as a sms text thru a GPRS card (Novatel merlin wireless card GSM/GPRS/UMTS)
in a notebook.
The card does not supply any sdk/com components in order for me to invoke its function.
Is it possible to perform smsing using the Microsoft TAPI3.0?
There are commercial applications out there, but am really want to know how the whole thing works.
will appreciate if any one has examples/samples.
Thanks and best regards to all.
|
|
|
|
|
You can use Microsoft SMS Sender[^]. It's a little program compatible with most of the mobile phones and GPRS cards that run on COM ports.
You can send SMS programmatically using its command line arguments.
___________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA]
|
|
|
|
|
Thanks for the prompt rely
tested the microsoft sms sender, but my gprs card is not supported, but thanks anyway
|
|
|
|
|
Hey Howzit?
I was astonished to see that a person can't override or set a Panel's "LOCKED" property, how can I get around this?
Regards,
|
|
|
|
|
hi NewbieDude!
actually, this is not a property of the panel. it's coming from the ToolBoxItem class.
Anyway, if you want is to set the allowable selection on your panel (the icons to resize/move a panel in design-time), you must sub class the Windows.Forms.Design.ParentControlDesigner then override the SelectionRules property. In that property, you can set what selections are allowed.
then use this designer on your customized panel by adding a Designer attribute on you panel.
public class MyDesigner : ParentControlDesigner
{
public MyDesigner ()
{}
public override SelectionRules SelectionRules
{
get
{
return (SelectionRules.Locked | SelectionRules.Visible | SelectionRules.Moveable);
}
}
}
[Designer(typeof(MyDesigner))]
public class MyPanel : Panel
{
public MyPanel ()
{}
}
hope that helps!
microsoc
|
|
|
|
|
Hi there,
I have created the new class MyDesigner using your code and created and then I have placed the attribute above my class but I am not familiar with all this, how do I actually lock the panel now?
|
|
|
|
|
at design time, try to select your panel. haven't you notice that the selection is the same as when you set the lock property to true? you cannot resize it through dragging.
if it's not what you want, can you elaborate more what you trying to do?
thanks!
microsoc
|
|
|
|
|
Hey, I am hosting windows forms designers (see the link below which has the code). In other words this application simulates .NET design time when its actually in run time. So all the rules change are far as properties etc.
After you have checked out the code, what I wanna do is create a Panel in code, add it to this form (which is instantiated in the initialize method) and then LOCK the panel.
http://www.divil.co.uk/net/articles/designers/hosting.asp
|
|
|
|
|
I took the MOVEABLE property out...IT WORKS>>>>YOU'RE THE MAN!
|
|
|
|
|
ok. I added that because i thought you only want to lock the resizing part.:->
anyway, nice to know that!
happy coding!
microsoc
|
|
|
|
|
I 've created my html editor and now I want it can merge selected table cells.
I use HtmlSelection.createRange() to get HtmlTextRange then use HtmlTextRange.pasteHTML to replace cells' html but it do not work.
Can anyone suggest me some code to do this?
|
|
|
|
|
hi ....
im workin on a windows app.... i want to list my contents in detail...
like i wanna display the name, size, type and last modified ...
i've got the rest how to get the type of the file used....
for eg: if a folder is choosed the type for it is file folder
i dont want the extension to be displayed as the type i want the real type of the file used....
im tryin with fileinfo object ... am i missing any thing specific....
imsathy
|
|
|
|
|
If you suspect the extension could be wrong, then you need to parse the file. Which means writing code for every file format you want to support.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
can u tell me how to get the file details
sathy
|
|
|
|
|
*sigh*
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
*grin*
I try to answer whatever I can, but don't meet with much success as I'm a tyro myself; but I do see most of your replies. I really feel for you when you get such questions.
Cheers,
Vikram. "Don't judge me
You could be me in another life
In another set of circumstances"
- "Tomorrow we'll see", Sting.
|
|
|
|
|
Hi!
Could it be that your question has been misinterpreted?
Do you want to determine the type of file from the contents of the file because you don't trust the extension (like CG suggested) or do you want to display the name for a given extension like Windows Explorer does (for example: extension is ".txt", but explorer shows "text file")?
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
mav.northwind wrote: want to display the name for a given extension like Windows Explorer does (for example: extension is ".txt", but explorer shows "text file")?
this is exactly wat i want!!!
sathy
|
|
|
|
|
That's an information you get (along with the icon associated, btw.) from a call to SHGetFileInfo from shell32.dll.
Take a look at this article[^], it holds all the information you need.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
mav.northwind wrote: That's an information you get (along with the icon associated, btw.) from a call to SHGetFileInfo from shell32.dll.
i dont want icon inforamtion tht i have already done.
wat i want is if a "test.doc" file is selected i want the type as Microsoft Word Document
the details for this one is in shlwapi.dll
but the same is working for me in vb.net but i want it in c# .. its not working
sathy
|
|
|
|
|
The information you want is simply the szTypeName member of the SHFILEINFO struct. When you read the documentation for SHGetFileInfo you'll see that you'll have to specify the SHGFI_TYPENAME flag to query this piece of information.
It's all in the documentation, you just have to read...
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|