Jump to content
Xtreme .Net Talk

GMMorris

Avatar/Signature
  • Posts

    65
  • Joined

  • Last visited

Everything posted by GMMorris

  1. Hi, I have a datagrid whihc is bound to a dataview, and some of the columns in the data view contain int values which I use as keys for other verbal values (for example 1 = "Expnce", 2="Income"). The problem I have is that when I bind the dataview to the datagrid the column displays the number values (0,1,etc..) and I need to mask these integer values and display the verbal values- how can I do this? Thanks
  2. Hi, I've encountered a really strange thing. I have this code: m_sFilename = Dict.ChildKeys["Filename"].ToString(); which basicaly places the value of the string object stored in the Dict.ChildKeys hashtable into the string variable m_sFilename. The problem is, the expression Dict.ChildKeys["Filename"] returns null, and so m_sFilename now contains an empty string. The thing is, that I then tried explicitly telling the interpreter that the "ChildKeys" property returns a hashtable (see code below) and now it returns the correct value of the object stored in the hashtable. m_sFilename = ((System.Collections.Hashtable)(Dict.ChildKeys))["Filename"].ToString(); Any ideas why this would happen? I can leave my Sourcecode like in the lower code example, but that isn't as readable and is ugly. Any ideas?
  3. Hi, Have any of you come accross any controls/forms which are styled after the MacOS? Any controls you guys find would be much appreciated :) Thanks
  4. Hi, There is a line at the top of an XML file I'm trying to read, do any of you know what it means? <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> Thanks
  5. Hi, I'm writing a piece of software for licanse managment, and I have reached a "wall" many other before me have: Even if I make the serial number date dependent (the key is invalid after a specific date) the user can always change the date in the OS to trick the installation software. So I was wondering- is there a way to determine the date without the OS? I'm assuming there isn't, so I was wodering- does the processor have some kind of "Timer" or something that the user can't access but changes to count the time, so I can compare the time which has passed between two points in time? Meaning, a counter of some sort which isn't OS dependent but can help me determine what the length of time between the time of the software's installation and Now() is? Thanks, any other ideas of how cI can secure keys would be helpful.
  6. Hi, I'm trying to read an XML file using XmlTextReader, but I've encountered a problem: When ever the reader reaches this tag: <!DOCTYPE plist PUBLIC "-//{[color=Red]websitename[/color]}//DTD PLIST 1.0//EN" "http://www.{[color=Red]websitename[/color]}.com/DTDs/PL-1.0.dtd"> it tries to connect to the web to perform some validation (I'm guessing here) action. Have any of you encountered this before? I don't want it connecting to the web whenever I parse this XML file :confused: Thanks
  7. Thanks man, i'll take a look :D
  8. Has no one ever tried to implement something of this kind?
  9. Hi, I'm developing an ASP.Net tree view control, and I've been studying this one, to get ideas. I've noticed that this tree knows how to load data to display the tree's subdirectories, but does so without post back. What ways are there to do this? Please specify as many as ways as possible, and a link to a gooc source or example would be especialy appreciated :) Thanks guys
  10. Hi, I've been using MCI for a small audio player, but I'm having some trouble with the volume control. I've been setting thge values between 0 and 100, but it hasn't been acting corectly. When the volume was set to 100, the sound wasn't as loud as it should be, meaning it was just to faint, so I figured it must be a diferent ratio, so I tried a 0-1000 ratio, but then it started acting up in a wierd way, making the values somewhat non linear, so that 500 would play louder than 700, but 700 would be fainter than 800, and sometimes it would even turn out different at different time. I just can't figure it out... Any ideas? Thanks
  11. Hi guys, I haven't been around in a while... so busy.. you know how it is... :D Any way, I posted this here because there isn't a SPS forum, and my question isn't ASP.Net related, so- I want to render a block of HTML (A graphic frame or border) around a particular webpartzone. I want this render to take place around any webpartzone with a specific title. Meaning it will render this HTML around (before and after, in the actual HTML) the webpart zone, if it's title equals a particular value. Any one know how I can do this?
  12. Thanks :D I appreciate it
  13. Hi, anyone know GOOD freelance sites for programming in .Net (C# & ASP.Net). Sites like devlance.com or guru.com?
  14. MS don't want to support development for Unix, Linux and Mac. Hence they aren't making multi-platform binaries.
  15. Hi, I need to write a "Bot" which will be given a URL and will scan the entire site for specific content (no, its not for a search engine :D). The problem is, I don't know even where to start. Any ideas? Know existing code which could help me? Thanks
  16. Thanks, but I'm looking for proffesional software or opensource C# software. But thanks anyway.
  17. I can't rememeber the URLs but I found two articles which allowed me to do thjis: 1) On the CodeProject site I used an article which was titled "Reading ID3 tags in MP3 files" or something of that nature 2) On the official MSDN site there is a good tutorial on using the WMP SDK to read WMA tags, and surprisingly enough I rememebr I found it read MP3 data too. Good luck
  18. Anyone know a good program for making a sort of "Library" for source code on a PC? I used to use Artifact Desktop, but I found it very uncomfortable, and it didn't really suit my needs. Any thing?
  19. Thanks, Wraith, after I posted the question I found a another solution which is specific to my application, but solved my problem well, without having to check what the extension was. Thanks anyway though, its a nice class to hang on to :D
  20. Hi, Is there a way for me to recognise an MP3, WMA or Ogg file without it having an extention? By somekind of header perhaps?
  21. Hi, is there a way I can open an audio file using mci (mcuSendString) which is actually a file stream? What I mean is, I know I can open a file using the code: mciSendString("open \"c:\file.mp3\" alais song"); but what I want is to open a file, with an alias, using a file stream which I have open in a c# application. is there a way to do this? I know that using normal files is simpler because it is just MCI command line, and not an actual file, but I could realy use a way to play music through MCI using a file stream. Thanks
  22. cool, I didn't realise that. Thanks.
  23. I know that :D I'm trying to understand why they didn't support a designer in the first place.
  24. Hi, I have recently migrated from windows forms to web forms, even though I'm I'm most definatly no new to web design and development. My question is so- Is there a way for me to generate dynamic graphics on the server (or any other way) in an ASP.Net application? I mean in WinForms I had GDI+, with which I could dynamicaly draw things. Is there an equivilent in Web?
  25. Can anyone tell me what MS's reason for leaving out the designer option for web controls is? I mean, why not have a designer?
×
×
  • Create New...