Okay, to start this off, I'm just going to say that this is all because I'm sure I have OCD to some degree.
It has to do with how Firefox now organizes downloads, which it doesn't. I don't mind the new look of it, but I'm missing how it kept all the active downloads at the top, and would move all completed downloads to the bottom of the list. And would notify me when a download failed, and placed it at the bottom of the active downloads....
User Profile
Collapse
-
Help with Firefox (Possible Add-On)
-
Tyler Wiebe started a topic Should I use a constructor or an event, or something entirely different?in C SharpShould I use a constructor or an event, or something entirely different?
I'm wondering what is better in terms of speed and memory usage.
The way the example is used.
...Code:public static void Main() { ExampleClass CLASS = new ExampleClass(); CLASS.AddItem(); CLASS[0].SetValue("TEST"); if (CLASS.HasChanged) { System.Console.WriteLine("Some data -
C# Registered HotKey Down / Up event
I'm wondering how I can handle a registered hot key in a way other then when it's pressed.
The following will continually fire the HotKeyPressed event if the hot key is held down.
...Code:public partial class Form1 : System.Windows.Forms.Form { [System.Runtime.InteropServices.DllImport("user32.dll")] private static extern bool RegisterHotKey(System.IntPtr hWnd, int id, int -
Well I think I've found a temporary solution to my problem.
...Code:public partial class Form1 : System.Windows.Forms.Form { public System.Windows.Forms.NotifyIcon MyIcon { get; set; } public System.Windows.Forms.NotifyIcon OtherIcon { get; set; } public bool BalloonWaiting { get; set; } public bool UseDefaultMethod { get; set; } -
C# Prevent multiple delayed NofityIcon BalloonTips overflow.
I've come across a slight problem that I'm not sure how to fix.
First I'll let you know that this is mainly because of one of my applications that has a notify icon, and it's connected to my iTunes, and when ever iTunes changes songs, my application gets notified, and then shows a balloon tip about the current song playing in iTunes.
The problem is, if I step away from my computer, and another notify icon other than... -
Screen Resolution outside of WFA and WPF
Is there any way for me to get the screen resolution other than:
System.Windows. Forms.Screen.Pr imaryScreen.Bou nds
:: or ::
double Top = System.Windows. SystemParameter s.VirtualScreen Top;
double Left = System.Windows. SystemParameter s.VirtualScreen Left;
double Width = System.Windows. SystemParameter s.VirtualScreen Width;
double Height = System.Windows. SystemParameter s.VirtualScreen Height;... -
I should have mentioned that the code I'm using in to rotate the image between conversion is exactly that.
I'm having no problem converting the icon to a bitmap, rotating it 15 degrees, and then converting it back to an icon every 40 milliseconds for 2:34 minutes, but after that I get one of those two errors, which from the fact that I've rotated it many times during a time span of 2:34 minutes, I don't understand what is causing this...Leave a comment:
-
Well, thanks for the replies, and RhysW is correct, I am not trying to open a file. And yes, now that I think about it, saying Notepad may not have been the best example.
Anyway, this morning I wrote a simple quick function that can do what I want, however it's not exactly what I was asking for, but it gets the job done with no problems.
...Code:public class Process { #region ConstructorsLeave a comment:
-
Convert, Rotate And Convert Again Error
I'm trying to rotate a System.Drawing. Icon, but first I need to convert it to a System.Drawing. Bitmap, then rotate it, and then convert it back to a System.Drawing. Icon, which is being looped, which works fine... for 2:34 minutes.
I'm using this to convert the System.Drawing. Icon to a System.Drawing. Bitmap
...Code:public static System.Drawing.Bitmap ToBitmap(System.Drawing.Icon Icon) { -
On process count change event?
I'm wondering if there is any event that my application can use to tell if a different process starts.
More specifically, I want to know when another process, let's say Notepad, appears in the System.Diagnost ics.Process.Get Processes(), and possibly when it disappears.
I'm mostly interested when the process appears, but when it disappears would be nice to.
Any information about this would be much appre... -
Album Art, Track Duration, And An Error?
Okay, I'm using the following to get information from mp3 files
...Code:public Track(string Location) { if (System.IO.File.Exists(Location)) { System.IO.FileStream FileStream = System.IO.File.OpenRead(Location); System.IO.BinaryReader ByteStream = new System.IO.BinaryReader(FileStream); FileStream.Seek(-128, -
Well it's been a few days since I asked this question, but the day after I did, I thought of my solution, which from what I'm aware was something like the IXmlSerializabl e class. I just made a function that used a stream reader/writer to save to, and read from, a file, and it works fine, so thanks for your help anyway.Leave a comment:
-
How do I serialize the following class.
I need to serialize a list of the following class.
...Code:public class Track { internal Track() { } public Track(string Artist, string Album, string Title) { this.Artist = Artist; this.Album = Album; this.Title = Title; } public string Artist { get; internal set; } public -
Tyler Wiebe replied to Get Files from folder and sub folders that contains a restricted folder or file.in C SharpOkay, I hadn't had a chance to reply yet, but it turns out that giving it administrator privileges doesn't help, the only reason it was working for a bit was because I accidentally set it to search only the top directory and not all of the directories.Leave a comment:
-
Tyler Wiebe replied to Get Files from folder and sub folders that contains a restricted folder or file.in C SharpThank you, I'm assuming it worked since it's actually running longer then 1 second. I'm still going through all the files, but it's moved about 250 files that it wasn't before.
Thanks you again.Leave a comment:
-
Tyler Wiebe started a topic Get Files from folder and sub folders that contains a restricted folder or file.in C SharpGet Files from folder and sub folders that contains a restricted folder or file.
Okay, I need to get every audio file on a hard drive, and move them to a single location sorted by the first letter of the artists name, artists name, album, and song title.
I have the code to do that, and it worked on one of the hard drives I'm organizing files from, but the other two contain secured folders and files, and I get an exception when I try and get access to them, and my program justs stops and won't continue.
... -
Integer to Word
This is just something I created since I couldn't find anything to do it.
It converts an integer (Example: 1495954485) to the word representation of that number (Example: one billion four hundred ninety five million nine hundred fifty four thousand four hundred eighty five).
...Code:public class Integer { #region Functions /// <summary> /// Returns -
Speech Recognition Exceptions
Okay, I keep getting an exception, and I can figure out what it means, or what's causing it.
The exception is: '' rule reference not defined in this grammar.
I've tried finding an answer, but I wasn't able to find anything useful, so I'm hoping someone here may know the answer. I'd give you the code, but it's eight different classes, that intertwines with about another ten classes, so in other words, it's a lot of code.... -
I just got back to my computer and thought a bit about what you said before, and I got an idea of how I could achieve my goal, it's different then your suggestion that I now see, but if you're suggestion is right, it should have the same result, but sadly, I'm not understanding it, so I'm just use my idea. And if you wouldn't mind, tell me what you think of it.
First, I made it so it would store the BackgroundPath so it wouldn't need...Leave a comment:
-
Thanks for your reply, and you're right about it being for an XNA game, and it is for a the PC, but I was hoping to make it for the Xbox 360 eventually, but if this is the case, I guess it'll stay a PC game.
But about your response of how to cut off the sides of the rounded progress bar, I'm sorry, but I'm sadly not understanding what you mean.
And do you have any opinion on question number three? It's no big deal, but it's rather...Leave a comment:
No activity results to display
Show More
Leave a comment: