|
datagridname[datagridname.CurrentCell.Rowindex,0]
Mazy
No sig. available now.
|
|
|
|
|
The ShowNewFolderButton property doesn't seem to do anything. The New Folder button is displayed no matter what.
Does anyone know why?
Gary Kirkham
A working Program is one that has only unobserved bugs
I thought I wanted a career, turns out I just wanted paychecks
|
|
|
|
|
I googled it and it appears to be a Win2K bug
Gary Kirkham
A working Program is one that has only unobserved bugs
I thought I wanted a career, turns out I just wanted paychecks
|
|
|
|
|
String comparison
Is there any way so that all the below conditions give me true results.
String val = “Hello”
Now comparing val it with the following code.
1 “Hello “ //Note white space at the end of Hello.
2 “ Hello” //Note white space at the beginning of Hello.
3 “Hello “ //Note two white spaces left at the end.
4 “ Hello “ //Note white space both at thebegining and end of Hello.
5 “hello” //Note the caps change.
6 “HEllo” //Note the caps change.
7 "HeLLo " //Note one white space at the beggin and two at the end and also with caps change.
|
|
|
|
|
if (StringOne.Trim().Lower() == StringTwo.Trim().Lower())
will sort all of these cases.
--Colin Mackay--
|
|
|
|
|
String.Trim is good to use, but as I told him before (no one listens), he should use String.Compare . This optionally takes case-sensitivety into account, as well as specific CultureInfo , which is necessary to use when worrying about globalized applitions. If you're not globalizing anything (and are 100% sure you never will), using what you wrote would work. Of course, to say that something in this field is 100% absolute will most likely lead to a hole in one's foot!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I would use a regular expression.
|
|
|
|
|
That's the worst possible idea - it's too expensive to compile and run and doesn't take culture into account. String.Compare does. All he needs to do is trim the string (String.Trim ) and then use String.Compare .
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Thanks thanks a lot.It worked fine
|
|
|
|
|
Could someone please point me in the right direction.
I have an windows application that I am writting for the schools bookstore. They wish the application to start when Windows starts up (IE: like McAffe would). I have searched through the articles here and on google and found nothing on this. Although to be fair it may be my not entering the right search string.
If any one could point me in the right direction I would appreciate it.
Joe
|
|
|
|
|
The registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run is one place to do this. Placing an app in the Startup folder would also do it.
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
What do you think that Start->Programs->Startup folder is for? Just put a shortcut to your application in there, or add a registry key to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run to start it for the current user of the system (each user has their own person hive), or use HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run for all users of the machine. Be careful using the registry editor (regedit.exe) because anything you screw up could have disasterous results to applications or all of Windows.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Thank you for your help. As a student finishing up his degree and carrying 18 hours in his final semester it is useful to have a board like this to help out when you have a brain freeze.
Of course it would be more helpful if some people didn't go so far out of their way to stroke their own ego by making others feel stupid (IE: What do you think....is fo?), when they ask a simple question. But I guess it was my own fault for asking a question.
Thanks again for all your help.
Joe
|
|
|
|
|
If you want the app to run when a user logs in then the suggestions already provided are the best way to do it.
If you want the program to start on startup regardless of whether or not a user is logged in then you need to install the program as a windows service. There was a great article on how to do this on osnews just the other day. Below is a link
www.osnews.com[^]
Jared
jparsons@jparsons.org
www.prism.gatech.edu/~gte477n
|
|
|
|
|
Hey.
I am having a problem playing mp3 files from my application.
I use the lame.exe to convert to mp3 from wav.
I use directX to play it.
In WinAmp3 it sounds perfect, but in my (and directX SDK sample) application it flickers and it is inpossible to hear annything but scrambeling noise.
First time I tried it out, I got an error message, something like "d:\...dx...ampifier.cpp", I then reinstalled directX and now it sounds
like scrambeling noise.
Why???
In advance THANKS
Thomas
PS: Sorry about my english
|
|
|
|
|
Something might be wrong with the code - which you didn't post, so there's no way to help you. Please try posting some sample code - not the entire application.
It might also be better to post this in the Microsoft public newsgroups at news://msnews.microsoft.com[^] for the applicable DirectX newsgroup. This seems more like a problem with DirectX than a programming question if the samples aren't even working correctly.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I think I found the problem.
The encoding param I used in lame.exe was
"-b 32 --resample 22.05 -m m \"....
I changed them to
"-f \"....
and now it works

|
|
|
|
|
hi
wot is the best way to get the days of current week or any week in year when developing C# and asp.net application. i m using the calendar control.
thank you for your help.
do it man
|
|
|
|
|
DateTime.DayOfWeek property.
Mazy
No sig. available now.
|
|
|
|
|
how can we get the seven days a whole week of particular date.not a particular day of week.
thank you
do it man
|
|
|
|
|
I can't understand you,could you give an example about what you want?
Mazy
No sig. available now.
|
|
|
|
|
Get the CultureInfo for the language/culture for which you want the names and use the DateTimeFormat property:
CultureInfo culture = Thread.CurrentCulture;
string[] days = culture.DateTimeFormat.DayNames;
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
i want to get the 7 dates of week. like if today is the 6 jan in calendar control 2nd day of current week. i want to get all the 7 dates from monday to sunday from(5-01-04 to 11-01-04)how can i get thoes dates from calender control.did u get my point or not.
thank you.
do it man
|
|
|
|
|
First of all, Tuesday, January 6th, 2004 is not the 2nd day of the week in the en-US culture - nor in many other cultures - it is the 3rd. This all comes down to culture-specific information. Use the following to get what the day of week is for the specific culture:
CultureInfo culture = Thread.CurrentCulture;
int dayOfWeek = (int)culture.Calendar.GetDayOfWeek(DateTime.Now); An enum like DayOfWeek can be cast to an int . In this case, the DayOfWeek members correspond to the number for the week, i.e. Sunday = 0, Monday = 1, Tuesday = 2, etc. You should add 1 to this value since most people think in base 1, not base 0.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Thank you very much for your help
could u give me some help that how can i create a Year View calendar in ASP.net in which i can show the user all the 12 month of a year and can navigate through diff years.
Thank you once again for your help.
do it man
|
|
|
|