Forum: C# 5 Hours Ago |
| Replies: 4 Views: 75 I would learn both if I were you. I programmed in C/C++ for several years, and I will tell you that once I started coding in C#, I really don't like looking at C/C++ code anymore, but I can and do... |
Forum: C# 6 Hours Ago |
| Replies: 1 Views: 64 All I did was look at this post and I hear sirens outside--just kidding. :D I can't wait to hear about everyone's experience once 7 has been out there a while...
Out of curiosity, unless it is... |
Forum: C# 6 Hours Ago |
| Replies: 12 Views: 131 I think Crystal Reports is the most popular/versatile for the $price$ too. As far as the overhead it produces, that would be easy enough for you to determine. Just build one project with and one... |
Forum: C# 6 Hours Ago |
| Replies: 1 Views: 90 Overview:
Oddly enough, MS never created a TreeViewDrowDown or equivalent. What I mean, is a control that looks and acts like a ComboBox, but contains a TreeView instead of just a list when in the... |
Forum: C# 12 Hours Ago |
| Replies: 9 Views: 133 Be sure to read the above consideration. However, I got bored and made modifications to allow you to access any open form, but it will only work with one instance of each of your forms (eg. not two... |
Forum: C# 13 Hours Ago |
| Replies: 9 Views: 133 An MDIParent container paradigm has only one MDI parent, but you are using the MdiParent property for each successive form, which leaves the MdiParent property reference "dangling" if you close one... |
Forum: C# 14 Hours Ago |
| Replies: 9 Views: 133 I don't see anything right away that would prevent you from accessing that property. Can you zip up and attach your project? |
Forum: C# 15 Hours Ago |
| Replies: 9 Views: 133 Not sure what you mean. Are you still casting your form3.MdiParent to get your form1 reference? eg:
// in form3...
Form1 form1 = (Form1)form3.MdiParent; |
Forum: C# 18 Hours Ago |
| Replies: 9 Views: 243 I found the following suggestion on the MySql website: "just add "Use Procedure Bodies=false" in your connection-string"...
You may wish to refer to this website as you continue, but feel free to... |
Forum: C# 18 Hours Ago |
| Replies: 9 Views: 133 In form1, you have defined a get property setter to retrieve the string value, which you can do from form3. However, if you want to set the value of the textbox control on form1 from form3, you need... |
Forum: C# 21 Hours Ago |
| Replies: 12 Views: 131 Hey Roy. I'm a little new to using the report controls shipped with VS, but they make life so much easier I think. Anyway, I want to see what recommendations others might make for you.
In the... |
Forum: C# 21 Hours Ago |
| Replies: 5 Views: 155 You are most welcome...Cheers! |
Forum: C# 21 Hours Ago |
| Replies: 1 Views: 85 It's really a simple concept once you get a grasp on why you want to do this. Although you might have already considered this, I would expand the design to ensure that the presentation layer is also... |
Forum: C# 22 Hours Ago |
| Replies: 1 Views: 112 This is a pretty good article as far as comparing Windows Forms to WPF at a high level: DECIDING WHEN TO ADOPT WINDOWS PRESENTATION FOUNDATION... |
Forum: C# 23 Hours Ago |
| Replies: 9 Views: 259 Not sure what you mean, but here is the for/next index version with the arrays accessed by index:
public static void ProcessArrays2(params object[] v)
{
// for each... |
Forum: C# 23 Hours Ago |
| Replies: 8 Views: 165 OK, I'll be looking for the attachment in the thread per your PM. |
Forum: C# 1 Day Ago |
| Replies: 8 Views: 165 Hey there, I'm still not sure what you are asking because I asked a couple of different questions, and I'm not sure which one you accepted as your issue.:D Select a choice:
A) Are you trying to... |
Forum: C# 1 Day Ago |
| Replies: 5 Views: 155 Create a public method in your Form1 to access the control's text, then from the child form, just up-cast your MdiParent to Form1 and access the method:
// defined in Form1, or the... |
Forum: C# 1 Day Ago |
| Replies: 6 Views: 189 Not a problem. Please mark thread as solved if your question has been answered--thanks. |
Forum: C# 1 Day Ago |
| Replies: 6 Views: 189 The most simplest would be how you indicated you were thinking of doing it, but that limits your design to predefined usernames you evaluate in your if statements (at least as I understood you to... |
Forum: C# 1 Day Ago |
| Replies: 5 Views: 164 In the above link (and code excerpts below):
the author uses the WM_COPYDATA message to broadcast and listen, but you should be able to define WM_USER +0x?? if that is your wish; but, he also... |
Forum: C# 1 Day Ago |
| Replies: 5 Views: 164 See if this article meets your needs: alternative to .NET Remoting based on low-level Windows Messaging... (http://www.codeproject.com/KB/dotnet/XDMessaging.aspx) |
Forum: C# 1 Day Ago |
| Replies: 9 Views: 243 Do you have access to the server? Have you tried google'ing "MySql cannot connect 10061"? Here is the first hit I got from that search: Can't connect to MySql (10061)...... |
Forum: C# 1 Day Ago |
| Replies: 8 Views: 165 I cannot tell from your last line whether you have already solved your problem. If so, please mark the thread as solved. If not, I will try to determine more clearly what it is you are asking...
... |
Forum: C# 2 Days Ago |
| Replies: 6 Views: 189 Are you asking how to find particular menu items, and then enable/disable menu items? Or, is your question more general about how to design user permissions into the menu design? |
Forum: C# 2 Days Ago |
| Replies: 8 Views: 165 Very secret...OK :cool: Here is an example of getting a count of records meeting a specific ID in a where clause:
using (OleDbConnection conn = new OleDbConnection(connStr))
... |
Forum: C# 2 Days Ago |
| Replies: 5 Views: 153 Try this for your functions.dll: Register .NET assembly... (http://social.msdn.microsoft.com/forums/en-US/vbinterop/thread/d6c1b56b-5951-437f-ad13-8cdc6676fe75/) |
Forum: C# 2 Days Ago |
| Replies: 5 Views: 153 In the above scenario, have you tried running the app with "C:\" in your PATH environment settings?
It's not clear to me how your app is able to find and load the plugin.dll, but not the other.... |
Forum: C# 2 Days Ago |
| Replies: 8 Views: 181 You might want to take a look at this thread: http://www.daniweb.com/forums/thread215125.html
It's a little lengthy, but if you don't find what you need in there at least it might help to explain... |
Forum: C# 2 Days Ago |
| Replies: 8 Views: 181 Here is a good link to get you started: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keydown.aspx |
Forum: C# 3 Days Ago |
| Replies: 6 Views: 154 I suppose the main thing you are giving up is streamlined maintenance and scalability since you will need to manually copy and paste (or perhaps remove) segments of code anytime the size of the... |
Forum: C# 3 Days Ago |
| Replies: 6 Views: 210 To obtain the size of your list: properties.Count. To access a member of Property named pos in a loop:
for (int i=0; i<properties.Count; i++)
{
if (player1pos == properties[i].pos)
{... |
Forum: C# 3 Days Ago |
| Replies: 8 Views: 244 Hi Roy. If you pass in just the filename (no path), the file will be created in the same folder as where your application is running, which is the current working directory. The only caveat to this... |
Forum: C# 3 Days Ago |
| Replies: 1 Views: 120 Check the command text/query pass into the SqlCommand, which is what it is complaining about, but error doesn't show until you execute the command with ExecuteNonQuery:
//
//... |
Forum: C# 3 Days Ago |
| Replies: 3 Views: 155 Not a problem! Please mark as solved--thanks! |
Forum: C# 3 Days Ago |
| Replies: 3 Views: 155 Problem is that in your string ("22.925507, 0.0000000, 0.0000000, "), the Split has created a last item equal to a " " (space char), which the Convert.ToDouble(" ") yields the exception.
To... |
Forum: C# 3 Days Ago |
| Replies: 9 Views: 259 Sorry, I got distracted before I could correct the last post... This should work:
public static void Test()
{
int[] intAry = { 1, 2, 3 };
string[]... |
Forum: C# 3 Days Ago |
| Replies: 9 Views: 259 adatapost pretty much gave you the way to do this. Here is an example of manipulating the variable arguments of object should you pass a variable number of arrays:
void methodName(params... |
Forum: C# 3 Days Ago |
| Replies: 3 Views: 1,922 Follow the link yang gave you above. I would:
1) create two date parameter fields for the begin and end dates, then
2) use the Record Selection Formula Editor to create a "Comparisons" selection... |
Forum: C# 3 Days Ago |
| Replies: 9 Views: 243 When does this error happen? Are you catching the MySqlException?
private static string BuildConnectionStr(string server, string db, string user, string pwd)
{
... |