- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
19 Posted Topics
Re: I'd agree with LizR on this. The selected indices will be smaller than the entire list. If a list has a few hundred items and the user has selected 3, the loop becomes considerably less expensive on the indices rather than the entire list. | |
Re: Uhh... You want to put a sub query into a dataset after the dataset has ran a query? Why not just put the query1 with query2? Something like: select name, name SUM(name) As sumofname from "previous query" IN (select top "variable" from tablename where type ="variable2") Group by name | |
Re: The switch statement is similar for all languages. I'm trying not to be rude but saying "Im new to C#" and put a ; after switch() is more like "I'm new to programming altogether". If this is the case, I'd suggest reading on line about switch and other language syntax. | |
Re: First of all, why would you be having problems using ListView outside of the main form? It's probably not being accessed properly. Secondly, instance methods can access static methods/objects but not the other way around. If you're having problems with events, it's probably because the event handler methods are not … | |
Re: I think you're talking about writing a custom gina dll to authenticate a user to the Windows environment, which is what a fingerprint or smarkcard type devices do. I've not written one myself, only have read into it a little. Here's a link to assist: [URL="http://msdn.microsoft.com/en-us/library/aa380543(VS.85).aspx"]http://msdn.microsoft.com/en-us/library/aa380543(VS.85).aspx[/URL] -Nelis | |
Re: There's a few questions in there. "I want to expand i.e. show ALL options when the control gets focus" - You could put something in the paint event looping through the values and use measureString to get the width. This could get processing expensive. If the values are static after … | |
Re: If you're pulling it out of LocalMachine, it obviously had to get there some how. The Object reference not set in this case probably means that your RegistryKey object is null and that would mean that the key you're specifying to look up either doesn't exist or you do not … | |
Re: Is it just me or are you guys making this awfully difficult? Try this code: [code] public void InvMoveUp(int New_Y) { while (MainForm.PacMan.Top < New_Y) { MainForm.PacMan.Invoke(new MoveUpDelegate(MoveUp)); } } public delegate void MoveUpDelegate(); public void MoveUp() { MainForm.PacMan.Top = MainForm.PacMan.Top + 1; } [/code] | |
Re: Interesting, I'm not familiar with the .Where method. Where or what object does that exist in? | |
Re: I'm not sure how to do it in ASP .NET but you could use javascript to capture what you want (I believe Google Docs does this). You can do a google search for shortcut ctrl keys web apps and you'll find some stuff. You also want to think about the … | |
Re: I don't think there is a limitation on Rows.Add. I would verify that purchaseUnits is greater than 1 when hitting the loop. Also if you copy/pasted that code, why do you have [B]I[/B]nventoryModuleDb3DataSet at the top and [B]i[/B]nventoryModuleDb3DataSet through the rest of the code. I'm guessing it's a property but … | |
Re: Search for zooming graphics or magnify. As for the view and browsing pictures, it's not difficult to load thumbnails and what not to view them. Having an interface to view and browse the pictures would end up being limited by your imagination and time. The more cool looking you want … | |
Re: I'd debug the DialogResult to see what or how many you're getting back. It could also be that the messagebox is being displayed twice when the cell click event is fired. If that is the case, either debug the click event or add a bool to only allow the messagebox … | |
Re: Yea something is odd about your code. If that event method was generated by visual studio, why does it have System.Windows.Forms.KeyEventArgs in the parameters definition. To me this makes me think that Windows.Forms isn't in the namespace which would be odd if that code is in the form. | |
Re: I'm not sure SizeChanged would fire if the window has just lost focus. I'd try using this.Activated or put an invalidate statement in the Paint event to refresh the graph object. | |
Re: [QUOTE=LizR;785831] so as other have said open it, dont close it until you're done with it[/QUOTE] I'd not recommend this in practice. If you open it and just hold on to it, what other process is now failing because you're holding onto resources? How about doing some research to find … | |
Re: ddanbe beat me to it. I'd go with the System.DayOfWeek, however to answer the general enum question, you would only need the GeneralDates if the eFullWeekDays enum instance is outside the scope of your class or namespace. Example: [code] namespace TestA { public class Class1 { public enum Values { … | |
Re: I know this is an ugly bump but I've been trying to figure out this exact scenario with still no resolution. I've shorten up the code based off various google searches with the result as: Type oType = Type.GetTypeFromProgID("InternetExplorer.Application"); if (oType != null) { SHDocVw.InternetExplorer ie = Activator.CreateInstance(oType) as SHDocVw.InternetExplorer; … |
The End.