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

45 Posted Topics

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
185
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
115
Member Avatar for sidd.
Member Avatar for Geekitygeek
-1
148
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
140
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
97
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
273
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
396
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
299
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
112
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
235
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
155
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
106
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
119
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
191
Member Avatar for jennwenn25

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

Member Avatar for mikiurban
0
118
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
136
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
143
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
150
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
155
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
150
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
162
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
106
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
263
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
169
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
418
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
127
Member Avatar for RunTimeError

Actually, it's not up to the programmer, it's up to whoever approves the code :) There are an unlimited degrees of "how much is too much" in either direction. If your boss/teacher doesn't think it's separated enough, then it isn't. Your next supervisor will most likely be different. It boils …

Member Avatar for mikiurban
0
315
Member Avatar for kool.net

Are these for a web page? You can look at RegularExpressionValidator and RequiredFieldValidator too

Member Avatar for avirag
0
143
Member Avatar for MattyRobot
Member Avatar for MattyRobot
0
96
Member Avatar for juster21

You mean trim each cell like "change all of these cells to have only 2 decimal points" (like change 14.05001 to 14.05)? And do you want to make it permament, or only show the first two decimals? Hiding the extra digits will let you get more accurate results later (if …

Member Avatar for mikiurban
0
86
Member Avatar for sumit21amig

According to some quick google searches (google makes me look so smart!) in "ECMA-334: 14.2.2 Operator overloading" there is a line that reads "User-defined operator declarations cannot modify the syntax, precedence, or associativity of an operator." So, if I understand that correctly (I'm not done with my Red Bull, so …

Member Avatar for Geekitygeek
0
137
Member Avatar for Mitja Bonca

Adding [code]comboBox1.DisplayMember = "Name"; comboBox1.ValueMember = "Filter";[/code] should show what you want to see, then later you should be able to [code] Directory.GetFiles(comboBox1.SelectedValue);[/code] (or something similar) later.

Member Avatar for DdoubleD
0
102
Member Avatar for snakay

What type of exception is it? What does the message of the Exception read?

Member Avatar for snakay
0
114
Member Avatar for needhelp//

Are you having problems figuring out what the text is, or actually getting it into the DB? How far have you gotten so far? If you can post a sample of your code and where you think it's breaking (and what you have already attempted) we can help better.

Member Avatar for needhelp//
0
123
Member Avatar for SAINTJAB

The column in your database that holds the filename might be a char data type column (or wchar, etc), if you change it to varchar (or nvarchar, etc) then it will let you use variable length strings and not give you all those extra zeros. The other choice (off the …

Member Avatar for sknake
0
553
Member Avatar for th3learner
Member Avatar for Sky Diploma
0
160
Member Avatar for Epi23

My C++ is a little rusty, and FBody said (but might have got lost in there) is you probably meant to write this:[code]if (type=="algebra")[/code] The string you are comparing it to needs to be in quotes, and "==" means "equals" and "=" means "assignment". IIRC [code]if (type="algebra")[/code] would always return …

Member Avatar for Epi23
0
6K
Member Avatar for StaticX

Try[code]// call the function cout << "Your number doubled is: " << number->doubleNumber(input) << endl;[/code]

Member Avatar for mikiurban
0
109
Member Avatar for raigs

do you need a space between "-options" and the email address? Like: [code]system(("sendmail -options " + EMAIL_TEXT));[/code]

Member Avatar for mikiurban
0
211
Member Avatar for NT.

sknake is correct that you can define peer-to-peer both ways, connectionless and connected. [U]Connectionless P2P[/U] SNMP is a popular connectionless protocol, it is used by a lot of servers and network service boxes (routers, printers, etc) to broadcast their statuses, errors, etc for others on the network to hear. These …

Member Avatar for mikiurban
0
2K
Member Avatar for zemly

This is the best thread ever. You guys are so helpful! BTW, can you help me? I am having trouble writing a new operating system that works on desktops, cell phones, watches, the internet and ATM machines. It needs multimedia and social networking, and run Windows, Mac and Linux apps …

Member Avatar for mikiurban
-4
450

The End.