|
Hello Judah,
This web already I saw. I already know that there are many components in Internet that do that, but are of payment. I need to know like doing it without using an existing library. The web that you have put is of a trial component. Long ago that I'm looking for it.
In any case thanks.
Shiveta
(forgives my language, I don't speak very well English)
.NET Developer
MCSD Certificate
|
|
|
|
|
Hi !
I am creating a software that will save the present state of all the applications running on the desktop (WinXP).
Can anyone point out the method to extract the filenames from the handles (or otherwise) of the files that are being accessed by processes and programs ?
For example : If I have opened xyz.docx in MS Word 2007 then I want to find out the name of the file ("xyz.docx") and its complete path through some mean which could be either :
1. Reading or extracting information from the Word 2007 process handle.
2. Through another non- handle based general method.
Kindly help !
Regards,
Aditya
|
|
|
|
|
|
Currently im learning to use the application development of VisualStudio 2005
i have created a basic local database with two forms, customer and order, with the obvious fields, CustomerID, Firstname etc in the Customer form. In the Order form i have OrderID(PK), CustomerID, Products, etc etc. I have setup my dataset and i have drag from the dataset to the form. i can input data in the form when running and it carrys the primary key through from Customer table to Order table and works fine. yet when i use the save button from the navigation bar that was automatically added to the form it does not save this data once i input test values.
Ive tried multiple tutorial videos from Microsoft C# express and VS help and i have even gone as far as using Visual Stuidos inbuilt 'howto' online help...which is useless to me
From this i would like to add two buttons which when clicked will save(update) and delete data to BOTH the tables.
Help with what code i need to put behind these two buttons would be much appreiciated.
Thanks
Cass
If any other information about my setup is needed just ask.
|
|
|
|
|
|
Thanks a mill..ill try it out tomorrow
Thanks
Cass
|
|
|
|
|
hi
at the moment i'm handling the doubleclick event.
how can i check whether a leaf node was doubleclicked or whether the user just double clicked whitespace?
thanks
|
|
|
|
|
Handle MouseDoubleClick event and then create instance of TreeViewHitTestInfo based on the parameter of the event
|
|
|
|
|
I use things like:
private void tvReports_MouseDoubleClick ( object sender , System.Windows.Forms.MouseEventArgs e )
{
System.Windows.Forms.TreeNode nod ;
if
(
( e.Button == System.Windows.Forms.MouseButtons.Left )
&&
( ( nod = this.tvReports.GetNodeAt ( e.Location ) ) != null )
)
{
|
|
|
|
|
I use things like this:
TreeViewHitTestInfo hit=treeview1.HitTest(e.Location)
you should write it in the event handler of OnNodeMouseDoubleClick
|
|
|
|
|
|
In my application based on framework 2.0 I want to give the user the possibility to create templates for a tree view. That is, I want to display a table (e.g., a DataGridView) that contains all the node names of the tree view and give the user the chance to define his own node names in a template (for example a different language). All my tree node names are stored in a resx file in my application. Do you have any idea how to implement something like this? Thanks.
|
|
|
|
|
Hi all!
I newbie programmer, and I finished a Windows application using C# 2.0 (VS 2005). All labels and menues in the Windows forms are in English but I'd like those labels and menues could change the language according to the chosen settings by the user.
Which is the best way to code a program with multi language labels and menues?
I'd appreciate any information about this subject.
Thank you in advance.
--
Adrián Córdoba
|
|
|
|
|
You should use resources and retrieve string during runtime
|
|
|
|
|
|
Thank you. I'll check those links.
--
Adrián Córdoba
|
|
|
|
|
Hi
I have tried the following code in Form's constructor
<br />
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");<br />
Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US"); but it doesn't work in other dlls which are used by the applicaiton (form).
How to achieve this?
Thanks
srini
|
|
|
|
|
I typically set the Application.CurrentCulture property in addition to the thread properties.
Are you sure that the DLLs make use of the thread's culture settings? Maybe their localisation is hard-coded or they utilize the OS culture (CultureInfo.InstalledUICulture ).
Regards,
Tim
|
|
|
|
|
Hi
How can we make sure the dlls are using thread's culture settings?
We just created dlls without touching any culture informations. But our OS is running on UK culture, thats why it is dispalying in DD/MM/YYYY format
Actually in my application i have some calendar controls where it is displaying US format (after i made that culture change), but the data which i am getting from other dlls are in "DD/MM/YYYY" format!
I thought changing the culture info of current thread will impact the referring dlls is it correct?
Thanks
srini
|
|
|
|
|
You should not force your culture on a client.
The client's system settings should be used.
If you must force a date/time format it should be ISO 8601.
|
|
|
|
|
no.... all our application is following US datetime format.. if somebody installed OS on UK culture.. then our application must send the datetime in US format irrelevant of system culture. Thats why we need to do this change.
|
|
|
|
|
Too bad - then your application has been developed by some pretty incompetent people.
Your program should always use DateTime objects internally. If it needs to represent the date as a string, then do it using the ISO format mentioned. Preferably the internal format is UTC as well, unless there is an extremely good reason for it to be kept in local time.
Various user interface controls (like your calender) should map to the users culture without problems (if it doesn't, ditch it and use something better).
When interfacing the non-ISO system, encode to and from the specific format at the interface point - never let the bad format requiremen polute your internal program structure, and above all, never EVER let it polute the user interface.
|
|
|
|
|
Hey Everyone,
I have a DataTable exposed to the user through a DataGridView. When a user types in a value for some cells, it triggers events to update other cells. For all my updates, I am updating the underlying databound DataTable, not the DataGridView.
My problem is that in some very rare cases, the data does not show up on the DataGridView. Using the exact same scenarios, updates sometimes work, sometimes not. If I step through the code I can see that the DataTable has the correct values and then I call DataGridView.Refresh() and the display is wrong.
Has anyone had issues with the databindings or know work arounds short of re-writing the code to manage the Table and Grid independantly?
Thanks in advance,
Pualee
P.S. I have removed all possibility of Background threads. There are only events and the GUI to deal with. I have also made sure the events are not overwriting each other (I think).
|
|
|
|
|
hi
i want to change color of diacritics(accent) of font of my text, but how to do ?
|
|
|
|
|
You can't change the color on a part of a character. You have to replace the character that has an accent with it's base character and an accent character, so that you can write them out separately with different colors.
---
single minded; short sighted; long gone;
|
|
|
|