Posts
 
Reputation
Joined
Last Seen
Ranked #94
Strength to Increase Rep
+13
Strength to Decrease Rep
-3
94% Quality Score
Upvotes Received
309
Posts with Upvotes
254
Upvoting Members
97
Downvotes Received
19
Posts with Downvotes
18
Downvoting Members
10
122 Commented Posts
~449.29K People Reached
About Me

After many years of aimlessly wondering the job market in a daze I stumbled across a study from home course in VB.NET. Since then I have discovered a passion for coding and subsequently graduated from Canterbury Christchurch University with a 2:1 Bsc…

Interests
Music, Gaming, Cycling, Gadgets and more Gaming :)
PC Specs
-PC (never fast enough)-OS: Windows (in its many interesting and quirk-filled flavours)Most recently,…
Favorite Tags

698 Posted Topics

Member Avatar for zambetta

As mentioned above, the List<T> is easier to use; it dynamically resizes and offers more functionality. Ive seen a number of discussions about which is quicker but never seen a difinitive answer.

Member Avatar for adajames
0
1K
Member Avatar for imso
Member Avatar for Konevlad21
-1
1K
Member Avatar for H. B. Duran

Finally, some sensible findings; I firmly believe that a non-violent person will not suddenly become a rage demon and go out on a killing spree because they grew up playing violent video games. I, for one, love a good round of head stomping, gut ripping, blood bathing mayhem in a …

Member Avatar for Naheedmir
2
3K
Member Avatar for phoenix_dwarf

Is it essental to use a single label? Labels don't have support for multicoloured text, so you can either create a custom user control or override the paint event to draw the *'s in different colours yourself. It would be easier to have different labels that you simply set to …

Member Avatar for Sairoj
0
2K
Member Avatar for phoenix_dwarf

Alternatively you can use: [CODE]Fileupload1.PostedFile.FileName;[/CODE] remember to mark the thread as solved if you have found an answer :)

Member Avatar for Ibrahim_16
1
4K
Member Avatar for avirag
Member Avatar for JOSheaIV
4
809
Member Avatar for Geekitygeek

It is a common design in data handling applications to move from form to form to show the user different information. I have seen any number of different attempts at this on the boards so i thought I'd throw together a short snippet to show a cleaner OO way to …

Member Avatar for jacss1x
1
3K
Member Avatar for DaveTran

I second what ketsuekiame said. If there is no code to run after the if(!isFinished) block then use return to exit the method. If there is code that has to run after the if block regardless of isFinished then add a second condition check. That way you will only move …

Member Avatar for Chris_33
1
2K
Member Avatar for vinaya

The original post was in 2008 and was marked as solved, the last poster resurected it in 2009; Do you really think they are still waiting for an answer to this question?? Please try not to ressurect old threads.

Member Avatar for ddanbe
0
11K
Member Avatar for thilinam

Hard to say wthout code, but do you have a method called 'btnLogin_Click' that is accesible?

Member Avatar for mtyide
0
1K
Member Avatar for chathuD

[URL="http://msdn.microsoft.com/en-us/library/system.io.file.move.aspx"]File.Move[/URL] only accepts a single string as the source filename. You need to call File.Move once for each string in the array filePaths rather than trying to pass it all of the strings at once.

Member Avatar for lucysome
-1
816
Member Avatar for crazyboy

from [URL="http://www.febooti.com/products/filetweak/online-help/file-last-accessed-date.html"]febooti[/URL]: For improved file system performance Last Access time update in switched off in Windows Vista by default. Thus, Last Access time attribute is set upon creating file and not changed afterwards even if file is modified. However, it is possible to enable Last Access time updates if necessary. …

Member Avatar for aryan123
1
390
Member Avatar for Geekitygeek

Hi, I have tried googling and searching for this but just find endless information about why software/hardware based encryption is the better option; what I need to know is whether there are any problems using BOTH. We want our offsite backups have to be as secure as possible. We previously …

Member Avatar for Geekitygeek
0
410
Member Avatar for sivamoni

If you just want to display the webpage as it appears in your browser then the WebBrowser control is the easiest way to go. You jsut set the URL and it works like any other webbrowser, but its a control embedded in your program.

Member Avatar for nathanmannar
0
2K
Member Avatar for Geekitygeek

Hi, I have written some software, one aspect of which is a TCP client. It sends messages to a designated address and port and receives a number of messages in response. This is all working perfectly on some PCs, but on others, it loses connection. I have done some digging …

Member Avatar for Ketsuekiame
0
2K
Member Avatar for S2009

He cant mark it as solved, he isnt the OP and he has ressurected a year dead thread to say thank you...with all these zombie threads rising i have an intense desire for a shotgun...or a lawn mower :)

Member Avatar for ddanbe
0
293
Member Avatar for Doctor Inferno
Member Avatar for kobalt

When you use Regex you can use Named Groups to return values found within your pattern. I created an example app for you to look through. The form had 3 textboxes. One for input which contains the sample data you posted here, one is an optional search box to find …

Member Avatar for jemware.waseem
0
213
Member Avatar for AngelicOne

This doesnt check if the Item is Checked, it checks if the Selected item has the text value "Others". You need to check for both if you only want the code to run when the "Others" item is checked: [CODE] If (checkedListBox1.SelectedItem.ToString() == "Others" && checkedListBox1.SelectItem.Checked) { //do something } …

Member Avatar for 3004426279
0
5K
Member Avatar for Indianblues

or you could use the numericupdown control :) The code here is worth checking for the future if you need to validate string entries, but for numeric values the NumericUpDown control is much better. You can type directly into it if you dont want to use the arrows, you can …

Member Avatar for Michael27
0
517
Member Avatar for nmakkena

Actually nareitz what LizR did was the correct response. If you check the [URL="http://www.daniweb.com/forums/announcement61-2.html"]forum policy[/URL] it clearly states that users should attempt to solve the problem themselves before posting. We are here to help troubleshoot, not to do all the work. You may be right that they know how to …

Member Avatar for maordany
0
344
Member Avatar for lloydy76

Firstly, you should place code inside [noparse][code][/code][/noparse] tags. Secondly, you cant place the operator in a variable. The compiler reads in the operator when it builds your app. It has no way of knowing what the operator would be so it cant build correclty. Why did you want to avoid …

Member Avatar for samsylvestertty
0
6K
Member Avatar for sam1

As ddanbe pointed out, the problem is that you are calling the property from a new instance of your form. This is a very common mistake and is a result of not fully understanding the class/object paradigm. You have a Form class that outlines the controls and behaviours of your …

Member Avatar for roemerito
1
2K
Member Avatar for AngelicOne

The errorProvider only has one icon which is displayed against all controls which have an error text set so you couldnt show a tick for some controls and a cross for others withthe same errorProvider. One option would be to have two errorProviders. Use one to show errors and the …

Member Avatar for Rash1988
0
193
Member Avatar for komino

Totally agree with diamonddrake on this one. This is a very simple problem if you break it down. The policy here at daniweb is to help those who try first. IF your new to coding, the first step should be to figure out the steps you need to accomplish. This …

Member Avatar for Texada
0
1K
Member Avatar for panpwintlay

Any time you are having troubles with iterations like this (especially nested) your first step should be to run through it step by step and track each variable at each stage: [CODE] num = 9: i j i%j output 3 2 1 3 3 3 0 3 4 3 3 …

Member Avatar for Momerath
-1
1K
Member Avatar for Piya27

In excel, you have the option to control the iterative calculation; by default it will only apply the circular reference 100 times or until the values change by no more than 0.001. You could emulate this behaviour with a while loop but there may be better way to approach it …

Member Avatar for nidhikhetarpal
0
188
Member Avatar for DIPY

[QUOTE=bokac1984;1100673] Here is part of my code, but what happens is that when I click on this checkbox nothing happens, my textboxes stay unchanged, like I didnt do anything. I have no idea what I am doing wrong. ReadOnly property, I am not sure I follow you.[/QUOTE] Have you created …

Member Avatar for hirenpatel53
0
3K
Member Avatar for Barbarrosa

another alternative is to read/write files through [URL="http://msdn.microsoft.com/en-us/library/system.io.filestream.aspx"]filestreams[/URL]. Filestreams dont create a file lock so they wont tie up your files, saving you the hastle of manually calling the grabage collector :)

Member Avatar for DanOrtega
0
1K
Member Avatar for LELE7

Did you want to store the name of the column (doCarrier.ColumnName) or did you mean to use the columns value? What type is doCarrier in your code?

Member Avatar for Rishikesh7
0
926
Member Avatar for Bijaya123

What you describe is a [URL="http://msdn.microsoft.com/en-us/library/ff650316.aspx"]Singleton[/URL]; An object which can only have a single instance of itself. Check the info in the link to see how a singleton can be implemented. I only point this out for completeness, you can acheive the same result much more simply in your scenario …

Member Avatar for kakaworld2012
0
1K
Member Avatar for markthien

You dont add rows to the datagridview, you add them to the underlying source then refresh the datagridview. Find the code you used to populate the datagridview and call it again isntead of call Rows.Add()

Member Avatar for LP...
0
4K
Member Avatar for govnah

There are two dominant ways to do this, and which is better depends on what you need. More precisely, it depends wether the size of your result set is going to be smaller than the set of possible values. For example, if you want 10 random numbers between 1 and …

Member Avatar for Momerath
0
2K
Member Avatar for cumadhu

Whilst that was definitely a very well worded response (kudos). This thread has been dead for almost 5 years, i'm not sure the OP is still waiting ;)

Member Avatar for elninoisback
-1
264
Member Avatar for Qusto

While you did the right thing in posting the seperate questions as seperate threads, you should have given each post a relevant title. Posting three different questions is just gonna make it really difficult to follow the progress of each question. I would seriously recommend changing the titles.

Member Avatar for MastAvalons
1
122
Member Avatar for tomprice0189

I wouldnt say its the best solution. Check out [URL="http://www.daniweb.com/code/snippet298708.html"]my tutorial on interform control access[/URL] for a more OO approach :) Even better would be to create an event handler in your form class that detects the new frame event in the camera class and updates its own picturebox. Is …

Member Avatar for SANJAY26
0
1K
Member Avatar for VidyaYadav

If you want to repalce the file if it exists, rather than deleting it then copying it, try changing it to this: [CODE]File.Copy(sourceFileName, destFileName, true); [/CODE] The boolean at the end sets whether files can be replaced. By setting it to true it should overwrite the file if it already …

Member Avatar for technext
0
682
Member Avatar for zaxxon216

there is plenty of info online if you google for it, check out the minimax algorythm as a starting point :)

Member Avatar for disa15031992
0
252
Member Avatar for sknake

I agree that it probably isnt the 'first' abuser of the downvote system. But i didnt see a moan in there...just an observation. I've given up looking at the downvotes, if i see a post thats noteworthy i give rep. As nice as the system could be, until it is …

Member Avatar for pseudorandom21
2
964
Member Avatar for kat-spn

Spot on, almost word for word what i was about to say. Although your sample code is probably better commented than mine would have been ;)

Member Avatar for Chaitanya Dhote
0
955
Member Avatar for csckid

If you wish to change values on your [B]instance[/B] of Form1 from Form2, then Form2 will need to be given a handle to that instance. The following code shows how to pass and store a handle in Form2's constructor: [CODE] public partial class Form1 : Form { public Form1() { …

Member Avatar for samee1985
0
3K
Member Avatar for judithSampathwa

You can set it in the designer by rightclicking the datagridview and Selecting Edit Columns. Then select the column you want and on the right you can alter its read-only property. In code you can use [iCODE]dataGridView1.Columns["ColumnName"].ReadOnly = true;[/iCODE]

Member Avatar for DeathEater
0
157
Member Avatar for Zany..!

Also, if you include an '&' in the buttons text property, the following letter will become an accelerator and respond to Alt+Key combinations. eg; if you create a button with the text property set to "Re&Bind Data", the buttons text will appear as "Re[U]B[/U]ind Data" and if you press Alt …

Member Avatar for rules_ky
0
564
Member Avatar for The Dude

^ Should stop watchin me at night < Loves to dance all night but doesnt quite know the ABC's V Secretly wants to dance all night as well

Member Avatar for codeorder
2
685
Member Avatar for rahulvom

As Lusipher pointed out, passing data between your layers is similar to passingit between forms. You need to instantiate an instance of each class and access methods in that class. Each layer should expose public methods that the layer above will use. So your data access layer will have internal …

Member Avatar for amit tapas
0
164
Member Avatar for chetanbasuray

I would second whats already been said, as a project for an educational course a full antivirus is a pretty big task. You could probably write a cut down application that implements the key behaviours and concepts without being a complete solution. Either way, just hit up google with "How …

Member Avatar for omkarpardeshi
0
101
Member Avatar for Nerathas

When you say you want to find the second largest divisor, are you taking the number itself to be the first? I'm assuming you are, but if not i'll show you the changes you need :) [CODE] class Program { static void Main(string[] args) { int input = 268; //you …

Member Avatar for ddanbe
0
2K
Member Avatar for emclondon

I'd recommend you look to change the datetimepickers min and max values in your forms Load event. You can't implement your logic in the designer, but you once the form loads you can get todays date and set the values as appropriate. Have a look at [URL="http://msdn.microsoft.com/en-us/library/system.datetime.addmonths.aspx"]DateTime.AddMonths[/URL] too.

Member Avatar for mndn
0
203
Member Avatar for happyandrea

I believe the question is "Why isnt the text showing when i call 'frm.textbox6.Text = stype' ??" The answer is, frm holds a reference to a new instance of Form1, an instance that has not been displayed on the screen. Instead of Form1 frm = [B]new[/B] Form1() you need to …

Member Avatar for Mitja Bonca
0
3K
Member Avatar for Gowrishankar

There was [URL="http://www.daniweb.com/code/snippet217409.html"]a well written example of a login screen[/URL] posted on these boards very recently. As alc6379 mentioned, the policy at Daniweb is to show that you have made an effort before posting your problems. We will gladly offer you guidance and fixes to get your code working, but …

Member Avatar for afjal nathani
0
412

The End.