topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday November 6, 2025, 12:29 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 4 5 6 7 8 [9] 10 11 12 13 14 ... 122next
201
I'm downloading the Amazon Web Services SDK, but if there's a quick and dirty way of getting what I want, I'd rather not have to delve into all of that.
202
Does anyone know of a free class or control I can use that abstracts away the nitty-gritty details of the search implementation and will simply allow me to search for eBook titles on Amazon.com? Ideally, user could enter a search string in my program (e.g., "Kyrathaba Rising"), and the program would then search Amazon.com for that title.
203
SOLVED.

Thanks, all.
204
Aha. I already had 2.0.  I just went to the Application tab under Project Properties and specified 2.0 instead of 4.5.
205
Is it possible to install 2.0 alongside 4.5 and then tell Visual Studio Express which version to use in a given project?
206
Is there a relatively painless way to downgrade,  or would I have to manually uninstall 4.5, download 2.0, and install it?
207
I'm trying to collaborate with a friend on an idea for an app. Im building on a Win 7 machine using C# on top of .Net 4.5. He's running WinXP and gets a Not a valid win32 app message when he tries to run my program. Even when I use the x86 build configuration. I think it's because .Net 4.5 is for Vista forward (per Stackoverflow.com). Any solution so he can run my progs?
208
Living Room / Re: Sci-fi novel now available from DC member kyrathaba!
« Last post by kyrathaba on June 22, 2014, 10:01 AM »
Thanks, rgdot!
209
Living Room / Re: Sci-fi novel now available from DC member kyrathaba!
« Last post by kyrathaba on June 22, 2014, 09:24 AM »
Mm, well, it should propagate to authorscave.com/brd/ soon.
210
Living Room / Re: Sci-fi novel now available from DC member kyrathaba!
« Last post by kyrathaba on June 22, 2014, 09:16 AM »
Wanted to let everyone know that "Kyrathaba Rising" won book of the month on Book Review Depot, a 1,200-member book review group:

https://www.facebook.com/groups/BookReviewDepot/permalink/295659287274823/?comment_id=295663907274361&notif_t=group_comment_reply
211
Developer's Corner / Re: Need help with some string manip in C#
« Last post by kyrathaba on June 21, 2014, 10:02 PM »
Yeah, I installed Regulator, but I really need to do some studying of regexes.
212
Developer's Corner / Re: Need help with some string manip in C#
« Last post by kyrathaba on June 21, 2014, 07:13 PM »
That looks workable,  Ren. But any regex would need to capture and replace whitespace before,  among and after the numbers: "9. 07" becomes "9.07", and " 7   6 . 04" becomes "76.04"
213
Developer's Corner / Re: Need help with some string manip in C#
« Last post by kyrathaba on June 21, 2014, 06:59 PM »
For my purposes, an improperly formatted decimal number is any substring which, when any interleaved whitespace or other non-decimal, non alphanumeric characters are removed, forms a decimal number.

"abc3.-04xta" becomes "abc3.04xta"

"abc6/. 7?8xta" becomes "abc6.78xta"
214
Developer's Corner / Need help with some string manip in C#
« Last post by kyrathaba on June 21, 2014, 05:54 PM »
Maybe someone can help me with this. I'm needing C# code that reliably does the following: given a string of characters, it returns a substring of characters. If the substring has an improperly formatted decimal number, that is the returned substring. Otherwise it returns a zero-length string.

So, as examples, it would detect the following in string "abc3. 04xta": -> returns "3. 04"

And for this string: "3bcd4 0.  25z10": returns "4 0.  25"

What I'm ultimately wanting is for the code to do a string.replace( ) that fixes the misformatting:

"abc3. 04xtra" becomes "abc3.04xtra", and "3bcd4 0.  25z10" becomes "3bcd40.25z10".

I know regular expressions is probably the way to go, but I'm having trouble getting my head around them.

The method I'd like would either return the poorly formatted "decimal number" substring; or, optionally,
it could fix the formatting in that substring and replace all occurrences in the larger string.

The end result is that it would turn this sentence...

"The bread was $3 .49, and it had always been $2 .15 before."

...into the following...

"The bread was $3.49, and it had always been $2.15 before."
217
Good idea. I'll look into it.
218
Four methods in static class MyForms.cs
(1) center and size a form
(2) center a control on a form
(3) center a control horizontally only on a form
(4) change the font and font style of a control

Sample project included as attachment.

See this link: https://www.donationcoder.com/forum/index.php?topic=38081
219
I'm posting a slightly modified version of the project that adds a demonstration of creating a nested subdirectory and writing a file to it. This version does everything the project in the OP does, plus this extra functionality. See attachment.
220
^ Fixed a couple typos in my previous post.
221
The attached zip file can be extracted and then the project can be run with Visual Studio (Express or higher editions).
The text file just lists the method signature for the six methods of the static class, and comments them.
As demonstrated in the project, use a "using" statement to reference my namespace.

Demonstrates:
(1) converting file size (number of bytes) to string description, e.g., "7.405 Kb"
(2) reading a file into an array of type byte
(3) writing string data to a filepath
(4) returning number of files in given directory matching a given pattern
(5) returning total size of those pattern-matched files, in bytes
(6) obtaining the directory of the currently executing assembly for a C# console application

See this link: https://www.donationcoder.com/forum/index.php?topic=38081
222
Living Room / Re: What books are you reading?
« Last post by kyrathaba on May 31, 2014, 09:17 PM »
Prof. Rob Miles' "C# Yellow Book"
223
Living Room / Re: What books are you reading?
« Last post by kyrathaba on May 30, 2014, 10:04 PM »
An Intro to GCC Compilers, by Brian Gough
224
Living Room / Re: Programmers: What size monitors do you guys prefer?
« Last post by kyrathaba on May 20, 2014, 10:48 PM »
Really nice, Deozaan :)
225
N.A.N.Y. 2014 / Re: N.A.N.Y. 2014 Submission: Kyrathaba's Sudoku
« Last post by kyrathaba on May 01, 2014, 06:16 PM »
Thanks, TRJ :)
Pages: prev1 ... 4 5 6 7 8 [9] 10 11 12 13 14 ... 122next