- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 128
- Posts with Upvotes
- 109
- Upvoting Members
- 33
- Downvotes Received
- 12
- Posts with Downvotes
- 10
- Downvoting Members
- 7
amateur programmer, self taught with some experience in C#, Flash, VB.net, and java script.
- Interests
- I spend all my free time creating Flash animations, web pages in ASP, creating Images in photoshop or…
- PC Specs
- Intel Pentium 4 3.66 ghz 2gb DDR memory dvd+-rw drive 256mb GforceMX 5200 Graphire Wacom tablet 22"…
374 Posted Topics
I am working on a combination productivity and source/version control app. One of the features i would like to add might sound crazy, but I would like to substitute the User's windows Desktop folder with the project files "Working Directory" That way, until the the software is exited, or the … | |
Re: [QUOTE] # if (ctrControl.Controls.Count > 0) # { # //Call itself to get all other controls in other containers # ClearForm(ctrControl); # } [/QUOTE] That's clever. Gets all the child controls. | |
Re: It's different on a per language basis, but in most languages: Braces {} are generally for object notation and grouping. they define an object. Such as when you use them to define a class, enum, stuct ect. Or for enclosing a memeber or code group, such as a method or … | |
Re: [CODE]System.IO.File.Move(path, path2);[/CODE] might want to do some error checking too. but that's it. | |
Re: Using resources can be easily updated if you use an "languages" dll and have your app check for update versions from a webserver. but the XML approach isn't a bad one, just its important for speed that you don't access the file every time you need the information. Disk access … | |
 I'm working on an a windows phone project where I need to support fully transparent backgrounds in my controls to overlay ontop of dynamic image. I want to use this "new item" path I created to show how many updates an item has. I attached an image showing … | |
Re: You have 3 options, use a gsm modem and pay a phone company for its service, pay for a sms gateway in which the company that you pay for that will give you api examples. or the most practical is to send emails to the SMSEmail gateways, the only problem … | |
Re: you need to be connected to the net via a GSM modem. many cell phones support this feature. keep in mind though. its not free. never is. those networks are owned by phone companies. so although you can write apps that interact with their systems. ultimately you are a customer. … | |
Re: That soundplayer class in the system.media namespace is basically an interlop class that calls this very api. There's nothing wrong with using it. The reason it doesn't work appears to be the command strings. But the link ange1ofD4rkness posted is a great code snippet and if you search the DaniWeb … | |
I needed a 5 minute countdown for a project I was working on so I hacked this up, It does nothing more and nothing less. Figured I would post it while I was here to save someone else the trouble. (Not that it's in anyway difficult to do.) | |
Re: Don't you love those people who obviously just joined the forum for the single purpose of asking a complicated question in a manner that makes it seem just a simple as "which way is the bathroom?" Reminds me of when I first started programming. Once you get into the mindset. … | |
Re: Sounds like homework :) lol. This is so easy. rig up your mouse down and mouse up events and create class variables of type Point. Then get the mouse coordinates with the event arguments on mouse down, save it to the first. then on mouse up get the mouse coordinates … | |
A couple of months ago I had wanted to keep a form active as long as it was visible, I couldn't find any help with this, a couple of forums led me into the dirt, as everything they suggested failed. I decided against the feature, but not before I found … | |
Re: static methods are used when you will need to access a method from many different classes or forms, you wouldn't want to create an object every time you needed that method. and you certainly wouldn't want to retype or copy and paste the same method into every class you needed … | |
Re: If the items in the list box get hightlight when you hit the keys this sounds like that form isn't getting your keydowns, but the listbox is because its focused. In the designer, click on the form's title bar to select it, then in the property inspector set the form's … | |
Re: Welcome my friend to the most complicated question you may have ever asked. but I am here to show you the way! First off, all drawing in GDI+ is done based on pixels... now that means nothing to a printer, because of a little concept called pixel density! better known … | |
Re: That is a pretty good article adatapost, but keep in mind. The problem with "registering" a hot key using those functions, is that there is only 1 windows message for a hotkey that is passed to your application. that is to say if you register 10 different hotkeys, they will … | |
This simple static class contains a static method called sOnline that accepts a username as a string param. it make a call to an old yahoo api that will determine if a Y! user is online. This only returns true if the user is not using stealth, this will return … | |
Re: directX will play wav files too, and since all your methods do the same thing... you could just have 1 method, playSound, and it would play any sound that your system has a codec for. also, where do you declare the variable "music" in these methods? They are initialized, but … | |
Re: Cosmos isn't currently ready for anything real. They just offer you a working project system to encourage people to donate money or help with the project. It doesn't really let you do anything substantial yet. | |
Re: No there is no way to make the browser load the pictures in lower quality as the pictures are just transferred over the network as binary files that the browser then displays. but if you write a tcp request and download the HTML of the page first and use regular … | |
Re: SetForgroundWindow doesn't work the way you think, it used to in older versions of windows, but in xp service pack 3 and newer it just flashes the window on the taskbar unless the parent application of the window already has focus. This was added to keep windows from poping up … | |
Re: baeltazor, I see you are accustom to the .net baby sitter as much as I am. :). C and C++ people don't tend to use foreach loops often when the migrate to .net because its only possible in programming languages that use virtual machines like .net's CLR. But it actually … | |
Re: the problem with finding new and interesting ways to hide your data is that in attempts to thwart virus attacks and unwanted software Microsoft has limited the access to many areas of the registry and hard-disk. So that keeps you from getting too creative. there is NO guaranteed way. If … | |
I am working on an application where I am presented a string that has some information, its always in the same order, but not always the same length with no special separators, here is an example "May 30 10:08 am ARRIVAL AT UNIT WILMINGTON DE 19850" I need to be … | |
I am working on a little USPS tracking class, very simple calls web api returns xml, parses the xml to an object, passes that object back via an event. for some reason I can't seem to get the XML to parse correctly. I there are an unknown amount of a … | |
I have an object that i use in a generic list, i need to expose a property in that object that will return the index position of the object in the list plus one. example Items in list myobject1 myobject2 myobject3 myobject2.indexValue would equal 1 any idea how I can … | |
Re: Its more likely that you have an assembly loaded that relies on the older version of that dll. Don't forget that your project references are important, but many dlls make references of their own that you don't see. | |
I have hit a slump, my line sorting text program runs out of memory when sorting large files, the answer is using an external merge sort. basically it breaks the file into chunks, sorts them, then loads chunks of the chunks, and sorts them, then some how comes up with … | |
Re: [QUOTE=cipher_nemo;1057454]Here's an even simpler example. You did unnecessary steps that can be avoided, even though yours is a good example. :) Note: "Control" is the name of the object you want to move, so link it up in the Designer area first. [code] private Point pointMouse = new Point(); private … | |
Re: Its exactly the same. The only problem is that people are behind routers, firewalls, and other systems that make a direct connection more difficult. So what you end up having to do is create a server somewhere that is directly connected to the internet, that way all the clients can … | |
Re: One thing about choosing the method of sending email is what will be sending the mail. Its important that if this is a mail application, and you intend to allow the end user to modify the serer settings to match their own info, or you intend to use this for … | |
Re: This is more complicated than you would think, Are you invalidating the entire control surface? or just what may have changed? are your picturebox's userdrawn with a transparent background? or just regular pictureboxes? are you drawing directly to the surface of the panel using its paint event? or are you … | |
Re: you just aren't removing the item from the original collection. this is what you need to do, modify the code that adds the new items to the listview to store a reference to the myObject instance in its Tag property. then on your code that removes the item from the … | |
Re: [URL="http://social.msdn.microsoft.com/forums/en-US/winforms/thread/68cc6e07-295d-4df2-b74f-0421a6378b47/"]http://social.msdn.microsoft.com/forums/en-US/winforms/thread/68cc6e07-295d-4df2-b74f-0421a6378b47/[/URL] This information seems hand, for files, but just for sake of working code, there is a codeproject example that has a demo app with source code of how to drag a url shortcut to the desktop from you application found here [URL="http://www.codeproject.com/KB/cs/draginternetshortcut.aspx"]http://www.codeproject.com/KB/cs/draginternetshortcut.aspx[/URL] I wish I had more, I have … | |
Re: There is a dozen ways you could go about this, if you want it to be really smooth, then you might want to do your UI in directX, openGL, or XNA. But if you don't want to learn advanced drawing techniques and you just want an animation that moves a … | |
Re: I've been playing around with different browsers, I'm a big fan of FireFox because it works well on older machines, and scrolls smoother than IE 7 and 8. With the exception of the tab bar placement The interface is very usable. Seems to work fine. I could imagine that if … | |
Re: using hide is a good method. But, if you create all your controls from a different form, then dynamically add them to the new form's control collection. The first form will have references to all the controls. Make sure that when you close the new form that you remove all … | |
I have hacked up this gorgeous files system tree view that looks like the windows 7 explorer sidebar. Its starts as one control, and that control lives in another control that makes up an "segment" whom are created and added to a host that handles scrolling ect. I have the … | |
Re: The reason your loop eats up the proc is because you are running an infinite loop with While(true) you should be using some kind of reachable goal While(somevalue == true) that way you can break the loop by reaching a goal. If you throw a Thread.Sleep(500) in the loop, you … | |
When using a background thread to do some lengthy possibly blocking processes, its necessary to invoke any gui update calls onto the gui thread. In all my reading I have come to the conclusion that most programmers feel that it is and should be up to the gui code to … | |
Re: C# It's cleaner, its less typing, less room for typos, easier to find your place. plus, Script#, the micro .net framework, Cosmos and dozens of other great programming tools are based on C#, not VB. | |
A project I am working needed a question style message box, but I wanted that contemporary look of Vista and Seven. I set out to see how it was accomplished, turns out there are some special APIs that exist in Vista and Seven that don't exist in XP that accomplish … | |
Re: The Listview control has an event called "AfterLabelEdit" This event will fire after you change the text with beginedit. it will fire this event and you can validate/update the changes then | |
Re: by "copy" do you simply mean take the text from the treeview (treeview? huh, title says listbox) and have it be displayed in a textbox or listbox. Strings are Reference type, so "copying" the information is substantially more complicated than assigning a reference to the text property of a textbox. … | |
Re: When the program opens you need to save its current directory to a string, then append the resource folder name and song file name. this method will return the directory that your application was open from. [CODE] private string GetAssemblyPath() { System.Reflection.Assembly exe = System.Reflection.Assembly.GetEntryAssembly(); return System.IO.Path.GetDirectoryName(exe.Location); } [/CODE] then … | |
Re: I think its the concept your are struggling with, its just as important to know how code works, as it is to know how to use it. Before you jump into something complicated it helps to write some pseudo code showing the steps involved in a process before you ever … | |
I can't seem to remember what it's called, nor can I articulate a concise explanation to even begin searching the net. (I tried) Does anyone know what that list of Icons like my computer/mydocuments ect that appear to the left in windows XP open and save dialog boxes? I know … | |
Re: There may be leading or trailing whitespace in the textboxes, that would mean that the string passed to the ToInt32 method could be "3546 "; this would cause an error. try using [ICODE]Convert.ToInt32(textbox.Text.[B]Trim()[/B]);[/ICODE] this will make sure there is no whitespace, also ddanbe has a pretty good code snippet in … | |
Re: monotouch is it. and that still requires mac os x There is no way to write iphone/ipod/ipad software on a windows pc. |
The End.