|
AFAIK, there's no facility to determine what caused the control to get the focus.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Can any body tell me how can i measure the size of a string with definite precision in Millimeters,inches etc. I have used MeasureString, GenericTypographic, AntiAliasing etc. I need any accurate method. Any hint or link ,suggestion
|
|
|
|
|
use Graphics.MeasureCharacterRanges! it returns the exact size of your string.....
|
|
|
|
|
i work with c# windows application, and i want to know how to do documentation? if i use UML or Flowchart or DFD ? if exists some site or book or same example to help.
Thanks
|
|
|
|
|
If you need to write the CODE documentation, you should use XML Doc, that is integrated in the C# compiler. Search in CP, some articles are available about that topic.
[ITA] Tozzi ha ragione: Gaia si sta liberando di noi.
[ENG] Tozzi is right: Gaia is obliterating us.
|
|
|
|
|
i need code for crearing namespace for test case
that finds whether the specified path having the directory or not.(i.e., directory exists or not?)
|
|
|
|
|
|
Hi,
if you want to check if a specified path exists you can use the following function:
System.IO.Directory.Exists(sMyPath))
This return a bool, true if the path exists, otherwise false.
Regards
Sebastian
|
|
|
|
|
Hi
I'm trying to get information form an html file, then replacing some placeholders with values, then printing them to screen and generating a DataTable (or a DataGrid) with all the information.
I already managed to read from the file, replacing and printing. The only thing missing is the DataTable Generic generator.
Anyone can help? Have anyone ever done something like this?
Thanks
Nelson
|
|
|
|
|
Did anyone override the TabControl in a good way to be able to give it
a custom background color? I have a specific background color used in my entire application so of course I want the tab control to be this color as well, but it doesn't seem to be easy to accomplish. Did anyone do it in .NET?
Also what is the reason it is restricted so much by windows? I mean it cannot be so hard to allow for a tab control to have a different background color after all...
regards,
Bjorn
|
|
|
|
|
Please gothrough my article. That will surve your purpose.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
Thanks, it's a good start, however I don't want only the tab labels to be custom drawn but also the entire edges around the control. The DrawItem event is only received for each tab as far as I can see...
/Bjorn
|
|
|
|
|
Hi
Im writing an app keep notes on poker players but having a little difficulty with dataview.
Im loading an xml file containing the data into a dataset, the xml file looks like this:
<table>
<Player>
<Alias></Alias>
<Category></Category>
<Notes>
<Hand></Hand>
<Bet></Bet>
<Position></Position>
<Blinds></Blinds>
<Stack></Stack>
</Notes>
</Player>
</Table>
Im then creating a dataview object using the "Player" table.
I then set the row filter to return all rows matching an "Alias".
Then display the results in a datadrid.
This all works fine but what i actually want is to only show and edit the nested "Notes" tables for each player as the Alias will not need to change and there only needs to be one instance of the players category.
You can get to the notes table by expanding the nodes on the datagrid but thats not how i want it to look plus by only showing the notes table the user wont have to enter the alias and category when greating a new entry.
Any help would be great as to how i can achieve this, could it be solved by writing the xml file a little different?
-- modified at 6:19 Monday 29th August, 2005
|
|
|
|
|
Hi! All,
I m developing a windows application in c#, my question is this how can we fix a size of a form so that it can be fit automatically on tablet PC and my
Personal Computer.
I mean both of them differ by screen size , so how can i fix a size of my application form, so that it should run on both successfully.
Thanx.
keep smilling.....b'coz smile is the shortest distance between people....
|
|
|
|
|
Hi all,
I'm making medical system and every 6 months we make new features within our system. I want to make class that will check on the system version on the client PC, So I want to know if there is standard to store application version in the system
I though that we can store it in the registry or in any file or as a static variable within global class
|
|
|
|
|
Each executable file (exe's and dll's) have a version property. You can use that to keep track of the version of each of the files.
---
b { font-weight: normal; }
|
|
|
|
|
thanks for your reply
but where can i find this property
|
|
|
|
|
Check your AssemblyInfo.cs file to set the version.
To retrieve the version of the main applicatione executable, use Assembly.GetEntryAssembly().GetName().Version
One of the advantages of storing the version on the executable itself is that you can always be sure that the version information will be present, it's readable and correct (e.g., one can always delete/write registry entries outside your application and corrupt it).
I see dead pixels
Yes, even I am blogging now!
|
|
|
|
|
Thanks for your response
i prefer to save my system version in AssemblyInfo.cs and check for it in any class, if you have better idea please tell me
|
|
|
|
|
That's exactly what Daniel just told you.
Assembly.GetEntryAssembly().GetName().Version can be used in any class to get the current version of the .EXE.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 10:42 Monday 29th August, 2005
|
|
|
|
|
Thanks for your help
but the problem here is that we have distributed system and we want to keep track for any changes happend in any medule and update system version, if that mean that we must track it Mmanually or there is an Automatic way to update system version
|
|
|
|
|
The <a href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemreflectionassemblyclasstopic.asp?frame=true" rel="nofollow">Assembly</a>[<a href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemreflectionassemblyclasstopic.asp?frame=true" target="_blank" rel="nofollow" title="New Window">^</a>] class contains methods for getting other modules too. It's just as easy to get their version numbers.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for your reply
we have a very huge distributed system and we make a lot of updates, a lot of bugs fixing and a lot of adding new features so I want to know if there is a versioning method rather than Assembly version to keep track with the system versions (major, minor, SPs) for every change and every update we made
Please if you know or have any paper talking about this subject, please inform me asap
|
|
|
|
|
Why would the same information be stored somewhere else? There is no place else that this information is stored. It's either use the Assembly class, or implement your own version system and write your own classes for it.
You could make something that automatically creates a Major, Minor, and revision number for your application, but it's not a good idea. You're better off managing it manually so you don't run into any mysterious versioning issues because some version number changed in a module that you didn't expect.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi
i just want to configure my adapter such that i can update information to Access db. but i got this error from the OleDbdataAdapter>> Could not determine which columns uniquely identify the rows for....
i already spent the past few hours finding online solutions but to no avail, mainly because the forum dicussions stopped halfway and the language is not the same as mine.
just to check with you:
since i can already get the selected data out from db using parameterized query, does that mean that if i can update successfully, my updates will return to the EXACT table fields it came from?
please, please help me to get this part going....
it's urgent!
i really appreciate any help!
thanks in advance!
-- modified at 5:20 Monday 29th August, 2005
|
|
|
|