|
|
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
|
|
|
|
|
Do you fetch the primary key from the table? Do you have a primary key?
---
b { font-weight: normal; }
|
|
|
|
|
oh yes, i forgot to mention about the error i got in Access. i've a field named IDno and this field is added to each and every of my tables.
is it ok or correct to let all tables have IDno as pk? i thought it's ok so i tried.. i let table1 have IDno as pk. but then when i tried to let IDno be pk in table2, it gives me error regarding duplicate pk so im stuck now...
if i dont use IDno, i donno what is best used as primary key in table2 and the rest of my tables.
there's a button on the toolbar called Index Name, so i typed "PrimaryKey" and selected "IDno", hoping that through this way, perhaps table2 can have IDno as pk. does this way make IDno a pk? i doubt so..
i doubt so because if IDno is made to be a pk in my table now, how come i still get the same error as before i tried typing "PrimaryKey" and selecting "IDno" in Index Name?
the error is: Could not determine which columns uniquely identify the rows for "table2". for table1, things are fine, i used OleDbAdapter and generated all the statements successfully. but doing this table2 gives me error, i just want to use OleDbAdapter to build update and delete functions too. i donno why it failed. it succeeded in generating Select and Insert statements...
so what's wrong? i really have no idea what's wrong.
please help.
i really need some guidance.
thanks!
-- modified at 3:08 Tuesday 30th August, 2005
|
|
|
|
|
Hi guys & girls,
I would like to know if there is any API which handles RTP & RTCP in C# like the JMF in Java? I have to develop a small RTP & RTCP Client in C# for a university project and as I'm allowed to use already existing code (In fact I have to use it, if there exists any), I would like to know if there is any? I didn't really found anything in google, but maybe I just searched for the wrong words.
I hope anyone can help me.
greetings
Stampede
|
|
|
|
|
Hi
I m also working on same type of project in c#.
If you know how to make RTCP Packet and send it to participents of session?
Please send me code or link here or saurabh.patel@quadinfotech.com
Thanks
|
|
|
|
|
hi all
u forget me as usual any way
i need some 1 who deal with datagrid befor tell me how can i sort data by specific column in datagridview
watting for ur replay
|
|
|
|
|
Hi All, i Have a problem in C#. Description is as follows
I play a .wav file in C#, but i want that its output should go to input Device (i.e Microphone) instead of output device(speaker). In simple i want to record the file which i play
Can i do that in C#?
Muhammad Imran
|
|
|
|