Search:
Type: Posts; User: angedelamort
Search:
Search took 0.03 seconds.
-
March 25th, 2010, 09:58 AM
you can also use a Dictionary<int, int> and create a method to get the values in the proper order if you need it.
-
March 22nd, 2010, 07:51 AM
Just as a tip, it's usually not a good idea to use exception for handling normal behaviors in the code (like finding the end of file). An exception is supposed to be exceptional. Would be better this...
-
March 21st, 2010, 06:12 AM
For having used both extensively, I would suggest without any doubt QT. It's not just a library with widgets but also contains tons of other stuff. IMO, you would get what you want way faster with...
-
March 20th, 2010, 09:33 PM
I think you should start doing some tutorial using Blend and Silverlight for writing web services in C#. After that, you only need to connect your web services and the interface (from Dreamweaver)...
-
February 12th, 2010, 09:44 AM
The solution of HanneSThEGreaT is really nice and easy, but it's not robust since it's base on string that can easily change in the designer. Probably using the "tabPageObject.Name" property could be...
-
January 30th, 2010, 09:45 PM
Not really, a property is exactly like a method. The advantage is if you change the internal object, the properties and methods signature doesn't need to change. Usually property and memver variable...
-
January 30th, 2010, 08:32 PM
Hahaha, looks like posting made me thought about the problem. I'm under XNA and I'm making an editor. I just remember I had to put the attribute STAThread. So, after comparing the 2 program.cs, I...
-
January 30th, 2010, 08:24 PM
Hello,
I've come across a really weird problem. I was trying to see the groups in my application, but it didn't seems to work at run-time. So, I stated to develop my control in a test application....
-
December 8th, 2009, 03:35 PM
Arjay gave the proper answer, but I would suggest you to look at the DataGridView. You can make a log window similar to visual studio (like the Error List). By using a BindingList with the DataSource...
-
November 15th, 2009, 12:40 AM
Hello,
I've come across a weird problem. I've tried a lot of possibilities and still doesn't have the result I want. So, to make it simple, I've got 3 values I want to bind together using...
-
October 7th, 2009, 08:02 AM
Looks like I made a mistake with my search, and I didn't have the reference "System.Drawing.Design". But after trying your idea, it doesn't change anything to the problem. I've also tried to inherit...
-
October 6th, 2009, 08:29 AM
ColorEditor doesn't exist. I've did some seach, but it seems that only TypeConverter exist for the type Color. And if we read the doc about the ctor of the EditorAttribute:
we cannot put a...
-
October 5th, 2009, 05:34 PM
Hello,
I've got a weird problem with my code. I've created an UITypeEditor:
public class ColorPickerEditor : UITypeEditor {...}
and use it properly:
...
-
It depends on how you load your data. If you have no control, doing what Shuja Ali is a good option. On the other hand, if you have more control (or can refactor it), you could just add a variable...
-
Here an alternative for your "switch" case problem. Instead of doing it "C++ like", why don't you use C# attributes?
// this class already exist, but is shown as example
public class...
-
After some try and error, I found out the method:
type.GetGenericArguments()
Hope it helps someone in the future...
-
Hello,
instead of trying to explain my question, here a simple example.
List<int> list = new List<int>();
Type listType = list.GetType();
Type listItemType = listType.GetTypeMagicly();...
-
March 24th, 2008, 12:40 PM
If you want really fast access, without doing IO operation all the time (like you do in your solution), I would suggest that you parse only your file once and put it in a dictionary or a similar...
-
March 18th, 2008, 08:24 AM
I'm trying to abstract the name of the property. The reason is that if a certain attribute is defined for this property, I want to use it. Also, I don't want people to use "strings" when creating a...
-
March 17th, 2008, 11:23 AM
My goal is really simple, I want to be able to build a string at "compile time".
example:
string str = "SELECT * FROM " +
Stringize(typeof(Foo)) + " WHERE " +
...
-
March 17th, 2008, 09:17 AM
Hello,
I was wondering is it was possible to get the PropertyInfo directly from the code? What I mean is that I don't want to have a string base method call. To be clearer, I will show an example...
-
February 24th, 2008, 07:16 PM
Never mind, After writing this post it gives me an idea to test. I found out by testing that you can add the suffix "Attribute" and it will automaticly bind it...
-
February 24th, 2008, 07:15 PM
Hello,
I'm wondering how .Net is implementing the "alias" of an attribute?
// using DisplayNameAttribute class.
[DisplayName("My Name!")
public String Foo
{ get; set; }
-
February 7th, 2008, 02:49 PM
I'm not sure to understand what you want, but if you check the default generated file program.cs in the main, there is a line like that
Application.Run(new Form1());
So, what you could do is...
-
December 5th, 2007, 10:46 AM
Ok, I found out that the problem occurs when I was tracing only. It seems that when the throw was trying to jump, instead of going directly to the next catch, it was going in that weird callstack.
|
Click Here to Expand Forum to Full Width
|