Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
17
Posts with Upvotes
12
Upvoting Members
8
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
4 Commented Posts
0 Endorsements
Ranked #746
~22.3K People Reached
About Me

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.…

Favorite Forums
Favorite Tags
Member Avatar for fatihunal

(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 …

Member Avatar for PccenTR
0
3K
Member Avatar for Carrots

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 …

Member Avatar for marketingmaniac
0
182
Member Avatar for Learning78

Maybe a Filewriter.Flush() between each WriteLine()? Also, you might not need the Seek(), try taking that out and see if it works.

Member Avatar for Legjendat
0
1K
Member Avatar for 21KristianN

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.

Member Avatar for 21KristianN
0
112
Member Avatar for sidd.
Member Avatar for Geekitygeek
-1
145
Member Avatar for Calaesto

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?

Member Avatar for mikiurban
0
137
Member Avatar for Calaesto

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 …

Member Avatar for mikiurban
0
92
Member Avatar for vuyiswamb

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.

Member Avatar for vuyiswamb
0
2K
Member Avatar for iammfa

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.

Member Avatar for mrnutty
0
270
Member Avatar for Soundgarden

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 …

Member Avatar for Soundgarden
0
392
Member Avatar for roraa

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 …

Member Avatar for mikiurban
0
294
Member Avatar for hjdoran

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") …

Member Avatar for mikiurban
0
110
Member Avatar for sathya8819

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 …

Member Avatar for sathya8819
0
233
Member Avatar for Jaydenn

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)

Member Avatar for sanch01r
0
152
Member Avatar for alexa868

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 …

Member Avatar for alexa868
0
104
Member Avatar for miclo

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 …

Member Avatar for mikiurban
0
117
Member Avatar for shellthor

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().

Member Avatar for mikiurban
0
187
Member Avatar for jennwenn25

Line 44 [code]if (convMeth = 2)[/code] should be [code]if (convMeth == 2)[/code]

Member Avatar for mikiurban
0
115
Member Avatar for Rishi_Hamza

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) { …

Member Avatar for mikiurban
0
134
Member Avatar for mitchstokes225

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 …

Member Avatar for mikiurban
0
134
Member Avatar for Silvershaft

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.

Member Avatar for thines01
0
146
Member Avatar for JRabbit2307

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.

Member Avatar for jbennet
0
152
Member Avatar for songweaver

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 …

Member Avatar for songweaver
0
147
Member Avatar for newbie_to_c

I think you need another fgets() between lines 8 and 9, otherwise you are just comparing the same line twice, for different strings.

Member Avatar for newbie_to_c
0
159
Member Avatar for mejohnm

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]

Member Avatar for mejohnm
0
103
Member Avatar for bcohenllc

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 …

Member Avatar for kplcjl
0
256
Member Avatar for kadamora

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 …

Member Avatar for mikiurban
0
167
Member Avatar for nccsbim071

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 …

Member Avatar for nccsbim071
0
391
Member Avatar for nateysmith

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 …

Member Avatar for nateysmith
0
2K
Member Avatar for help-me-please

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 …

Member Avatar for mikiurban
0
124