- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 17
- Posts with Upvotes
- 12
- Upvoting Members
- 8
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Disclaimer: all my suggestions are untested and based upon my poor memory, glorified past experiences, wishful thinking and most often by the other voices in my head. My goal is to point out simple gotcha typos and pointing people in a good direction.…
Re: (I think this is more of a C# question, where the OP is trying to view a webpage, and cause it to post back, rather than an ASP.Net question where he is trying to run a website.) If the suggestion above doesn't work, you might need to post the form … | |
Re: Short answer: Visual Studio deletes all code used to create that button and display it on the form, but doesn't delete any functions assigned to its events. Long answer: There are several benefits of Visual Studio not deleting the event functions for a control. One is if you wanted to … | |
Re: Maybe a Filewriter.Flush() between each WriteLine()? Also, you might not need the Seek(), try taking that out and see if it works. | |
Re: A quick way is to put the dataset into a dataview, then put the dataview on the form. The dataview has a property "rowfilter" that you can set, such as [icode]myDataView.RowFilter = "CustomerId = 10";[/icode] and only rows with that match the filter will appear on the form. | |
Re: In line 4, you have [code]SQLString = "INSERT INTO Items(Naam) VALUES('" + Item.Replace("'", Item) + ");";[/code] should it be [code]SQLString = "INSERT INTO Items(Naam) VALUES('" + Item.Replace("'", "''") + ");";[/code] like you have later in the code? | |
Re: If you are trying to figure out how to combine data from multiple tables into a single datagrid, there are two ways to do it: change your query string or manipulate the data within C#. If you are trying to show one column with all the names from the two … | |
Re: To add to what dickersonka said, I would create a ExecuteReaderInThread() function, similar to your ExecuteScalarInThread() function, that returns a data reader. If you put the check in there (just like you have one in ExecuteScalarInThread()), you should be fine. | |
Re: Another way is to determine the angle of a line from the center of the screen to your mouse, then rotate your image that much. Don't forget to check the mouse position constantly, either using a timer (like every x seconds) or every time the mouse moves. | |
Re: Reading is easy, you just access it like you defined it:[code]// it's been a while for me, but try one of these filenamestr = blah[0,0]; filenamestr = blah[0][0];[/code] Changing the data is much harder. I *think* (but like I said, not sure) those values are not locked in, so you … | |
Re: I haven't done specific research into this, but in my experience the only things that get sent back to the server are form data. This will be any form inputs (text boxes, etc.) and the Viewstate (which is just a form variable of controls with viewstate enabled anyway.) This means … | |
Re: Whenever I need to pass info between dialogs, I make public properties on the 2nd dialog. For example, if I had a dialog with a textbox that I preset the text, then let the user change, I would add this to my 2nd dialog (assuming the textbox ID was "myTextBox") … | |
Re: Yikes, this is not a very easy task. Getting the image is easy, identifying pieces of an image is not. Unless you have a very long time to dedicate, I would not attempt this from scratch. If you do, I would research "Visual Pattern Recognition" (or "Image Pattern Recognition", same … | |
Re: You might try something like [code] string() foldernames = System.IO.Directory.GetFiles("C:\\Program Files\\Java\\jdk*.*"); if (foldernames.Length > 0) label1.Text = foldernames[0]; [/code](it might be "[icode]string foldernames() = ...[/icode]", i forget string array declarations in C# right now :P) | |
Re: I would change two things. Testing should have a couple other, unrelated things show up later, but this will get you a liitle closer I think. 1) Change the order you check for numbers: test for the higher numbers first, then the lower numbers later. Like this: [code] if (n … | |
Re: It might be easier to create your program for everyone, and when it loads, check to see if the current user is a pro account. If he/she is, then display the message, otherwise exit. Just put the check before the main form appears, so nothing pops on the screen if … | |
Re: As a suggestion, I would try to move your OleDbCommandBuilder way up to the top, and use it to Fill() your dataset before you do any work, and use it again when you want to Update(). | |
Re: Line 44 [code]if (convMeth = 2)[/code] should be [code]if (convMeth == 2)[/code] | |
Re: Unless someone here has specific knowledge of common errors reading Outlook, you should wrap all of that with a try/catch block, and examine the exception that is caught. You should get a better idea of that the problem is. [code]try{ ... all your code ... } catch (Exception ex) { … | |
Re: In your main loop, like when you call [icode]count();[/icode] you need to include parameters to match your function definition [icode]int count (int I, int N)[/icode] So either you need to remove the parameters in the definition (make [icode]int count ()[/icode] or include them when you call the function ([code]int x … | |
Re: Don't forget you can actually program in C++ and .Net at the same time :) There is no reason to switch between VB, C++ or C# just to make a GUI. | |
Re: Or you can use Integer.Parse() (or Double.Parse(), etc) at that line where you add all the numbers. Maybe add some exception around it, too, .Parse() is pretty picky and throws exceptions when it doesn't get what it wants. | |
Re: In line 6, you are comparing your newly created integers, which are both 0. You need to either assign them the values from the text box before the comparison, or compare the textbox values themselves (I suggest the assignment). You should also be having a problem assigning the textbox values … | |
Re: I think you need another fgets() between lines 8 and 9, otherwise you are just comparing the same line twice, for different strings. | |
Re: In your product class, overload the ToString() function and have it return name. Something (but probably not exactly, because I'm typing this from memory) like [code]public override string ToString() { return name; }[/code] | |
Re: I think you will need to make more than one, based on these: [QUOTE]You will create a set of either collections or arrays (your choice but use just one or the other--don't mix them) scoped at the form/module level. These structures... [/QUOTE] As for your second question, an array isn't … | |
Re: AFAIK Normal Windows development (e.g. what you get with normal Visual Studio installations) does not handle multiple key presses, not including modifier keys (ctrl, alt, and shift.) The problem is Windows supports two types of key press events: KeyDown/Up and Repeat. Key up and down is great, but if you … | |
Re: The easy way to see if any .Net Frameworks are installed is too look at the \WINDOWS\Microsoft.NET\Framework folder. Any versions that are installed will appear as folders inside (such as v1.0.3705, v2.0.50727, v3.0, etc.) If that Microsoft.Net folder doesn't exist, then no version is installed. As a side note, if … | |
Re: Create a couple more variables ("minimum" and "maximum" for example) and initialize them to the first value in the array. Then during this loop: [code]for (a = 0; a < testNum; ++a) cout<<testScore[a]<<" ";[/code] keep comparing them with testScore[a] to see if they are the lowest or highest numbers. I … | |
Re: As a side note, the process you are launching is probably in the same current working directory as the program itself. So if your program is in C:\Program Files\MyCoolApp, when you execute "flvmeta input.flv output.flv" it might think those files are in the same folder. You may need to set … |