|
Hi!
Because one of the export formats is RTF you could use this to create an rtf file. This file can be read by a RichTextBox and saved as plain text.
Hope this helps,
mav
|
|
|
|
|
Dear Sir and Madam,
In asp.net How to allow user go to a page
when user enter url pattern like the example below?
http://PageToGo.Lantip.com
Thank You.
|
|
|
|
|
Assuming you're not talking about a static hyperlink on a page, but some user-editable URL, and you're okay with a PostBack, then you could do something like:
Response.Redirect(userUrl);
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
Can anyone help. Is it possible to obtain the filename of a program that starts your application? i.e. I have written a front end program for AutoCAD and have associated my app with the AutoCAD .dwg file extension. What I want to do is let the user click any drawing file, which will launch my app instead of AutoCAD, let them select options from my app then click a 'go' button to continue to load the drawing. How do I get the file name of the dwg that they clicked in the first place though? I have tried Application.ExecutablePath but this just returns the file name of my app, this is the only thing that prevents my app from working and I can't find an answer on MSDN. It must be possible because apps like word, excel and AutoCAD display the filename that started the app. Please help!!!!!!!!
|
|
|
|
|
You must first disassociate AutoCAD and associate your application with that extension. The recommended way is to use the Win32 API to do that, alternatively, you can do it by manipulating the registry.
The registry setting will be
HKEY_CLASSES_ROOT
.dwg
Default AutoCADXYZ
AutoCADXYZ
shell
open
command
"<AutoCAD Path>" "%1"
Put your application path instead of AutoCAD Path and you should be done.
As you can see, the filename will come in as a command line argument to your application.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Thanks, how do I assign that command line filename to a variable in my application then, so that I can launch AutoCAD with that filename?
|
|
|
|
|
You get command line arguments as parameters to Main, so you can simply assign them to variables there.
static void Main(string []args)
{
string fileName = args[0];
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
superb, thanks for your help
|
|
|
|
|
ok my problem is like this..
i want to make a method for clearing textbox`s in a form and the method looks like this..
public void clearTextBox(TextBox a, TextBox b)
{
a.Text="";
b.Text="";
}
of course it will clear only two textbox`s which i decleared..
but i want my method to clear n textbox so i can use this method several times..
how should the code look like ?
i remember from c++ it should be something like this but its not working at c#:
public void clearTextBox(TextBox a,...,Textbox b);
any help would be great..
thanx guys..
good coding..
|
|
|
|
|
void ClearText(params Textbox[] text)
{
foreach (Textbox t in text)
t.Text = "";
}
Then, you can call it with any number of arguments:
ClearText(TextBox1, TextBox2, TextBox3);
I don't see dead pixels anymore...
Yes, even I am blogging now!
-- modified at 6:59 Saturday 12th November, 2005
|
|
|
|
|
Hi my friend.
I want to make beep or warning alert in my form , but , I can't do it.
I just can make it with windows media player.
Thank you for your help.
|
|
|
|
|
u need to use the windows api MessageBeep
try this[^]
hope that help
g00fy
|
|
|
|
|
The SoundControl available in .NET 2.0 .
------------------------------ "The Soapbox has been so ..."
|
|
|
|
|
Is it possible to change (or rather set) an environmental variable at install time with the installer from VS2003 or VS2005.
I am using the Oracle Instant client and need to add the "nls_lang=America.American......" environment string.
Likewise can registry settings be set.
Thanks
|
|
|
|
|
Think I have done it - a test will tell
Right Click on the Deployment Project
Select View
Select Registry
On [HKEY_LOCAL_MACHINE] add key "SYSTEM"
On [System] add key "CurrentControlSet"
On [CurrentControlSet] add key "Control"
On [Control] add key "Session Manager"
On [Session Manager] add key "Environment"
On [Environment] add keystring Variable Name and in it's properties add the value
Hope this helps someone else
|
|
|
|
|
how to download a file from a remote server using FTP through ASP.NET/C#
-- modified at 1:42 Saturday 12th November, 2005
|
|
|
|
|
hi everyone,
I'm new to Directx . If you don't mind I'd like to ask a question .
Should I use window controls in full screen mode or I have to create a new ones.
Thank you for answering my question .
Sincerely,
|
|
|
|
|
You can use windows controls in DX fullscreen mode. There's a call SetDialogBoxMode which will enable controls in fullscreen mode, it has several limitations, however.
You better use your own custom drawn directx controls or use the ones from the DX samples in the SDK.
For directx associated questions I recommend you to use the Gamedev.net directx forums. You can find them here
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I have two tables in my db. One is an invoice table and the other is a sales table. The sale table has all of the items on the invoices (referenced by invoice number). I want to grab specific invoices at a time (say 3 or more ) The best way I though to do this would be to use an IN statement in the where clause of the SQL stmt. Since I don't know how many I am going to need to grab, I was wondering if it was possible to pass one parameter to the IN clause ( a set of invoice numbers). Or would it be easier to just grab one at a time and append the result to my dataset?
For instance:
SELECT INVOICES.*, SALES.* FROM INVOICES INNER JOIN SALES ON INVOICE.invoice_number = SALES.invoice_number WHERE (Invoices.invoice_number IN (?));
Where ? could be {1002, 1004, 1100,...)
|
|
|
|
|
instead of messing with parameters, why don't you just build the string in code and put it in the select command text before you execute it?
|
|
|
|
|
Hi
I'm Antonio and write from Italy.
I hope you help me.
(sorry for my bad English!)
I created a Menu custom control with a nested components collection.
It works fine, if I used the Collectionform-Designer to add and remove
the components.
But if remove the custom control or the "Granchild" item from the form designer window the
generated code the "Granchild" items wil be removed but "Child" items still remaining in the Form class and I have to remove manually the declaration and the code in
Initializecomponents.
Example:
-----------------------------------------------------------------------------------
| MainItem | MENU CUSTOM CONTROL
| Item1 |-----------------------------------------------------------------------
| Item2 > | Item3 | still remaining
| removed | | Item4 | still remaining
| |
------------
The components is a Component derived class, the collection is a
Collectionbase derived class.
thanks for your time.
Sincerely,
Antonio Lettieri
|
|
|
|
|
OK, so this is a hack. We are creating a MDI program, but the first few releases will not support the MDI feature. I want to open one MDI maximized, and disable the _, [], and X from showing in the upper right. I can disable the functionality of the buttons on the mdi form itself, but the parent will not give up these buttons. The Close and minimize do not work, but the restore, [], still works. Anyone know how to 1. disable this, 2. remove the buttons themselves.
Thanks so much,
*****************
"We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
|
|
|
|
|
I'm writing an app that has a UI like The Gimp's or early versions of VB - i.e. there's one toolbar at the top. clicking on various buttons int he toolbar drops down controls or opens up windows.
e.g. think of the volume icon in the system tray, when clicked the volume slider pops up. My app toolbar would work the same way. When a control in the toolbar is clicked, it would drop down to show its full form.
something like this -
<code>
------------------------------------------------------------------------------------
| --------------------------------------------------------- --- --- ---------- |
| | | | <tab control with tabs> | | | | | | |controls| |
| --------------------------------------------------------- --- --- ---------- |
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
| --------------------------------------------------------- --- --- ---------- |
| | | | <tab control with tabs> | | | | | | |controls| |
| | |--------------------------------------------- --- --- ---------- |
--| |_____________________________________---------------------------------
| |
| |
| < dropped down tab > |
| |
| |
| |
--------------------------------------------------
</code>
My problem is - if the main Form is the toolbar (quite possibly the ToolStrip control, containing all the child controls), then all child controls are restricted to the form's display area and hence cannot extend beyond it.
Whats the best solution for this. I can think of displaying a modeless Form whenever a toolbar item is clicked, and position it appropriately. But I won't be able to use a standard TabControl then.
Any ideas?
-- modified at 17:37 Friday 11th November, 2005
|
|
|
|
|
DISCLAIMER: I have no ties to this group except that I purchased their component to do this. It is a GREAT! component.
DotNetBar suite will let you do this and many other UI things.
http://devcomponents.com/dotnetbar/
*****************
"We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
|
|
|
|
|
Can you be a little more specific?
I can get the trial version and see if its possible, but my doubt was of a more general nature - i.e. is it possible in WinForms to extend a control beyond its parent boundaries?
I'm playing with the Infragistics NetAdvantage suite as well, but haven't found a way to solve that basic issue.
Thanks
|
|
|
|