- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 18
- Posts with Upvotes
- 17
- Upvoting Members
- 13
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
Re: any suggestions will be much appreciated | |
Re: Hi, Great post, However, Over the past years I have learnt not to use a catch that catches Generic exceptions. Catching the right exceptions and then handling those exceptions properly is the best practice. eg. [CODE]Catch SqlEx as SqlException[/CODE] or even [CODE]Catch OleDbEx as OleDbException[/CODE] for a list of the … | |
Re: well alternatively you can use a while loop :P the while loop condition checks if the file exists then within the while loop put a try catch and then try delete the file, if its still locked the exception will catch it, and will constantly try and delete it till … | |
Re: can you just use [CODE]thread.sleep(5000)[/CODE]. or something like that? | |
Re: As far as I understand it. The values set in the ValueMember is the value being returned after selecting something in the listbox. as you said, the If it displays employees, it doesnt mean the value is the employee names, more rather the employee IDs. So when binding the data, … | |
Re: As far as I know, ComboBox Indexes are 0 based. So you might want to change your conditions to something like [CODE]If ComboBox1.SelectedIndex < 1 Then MessageBox.Show("You Should Select A Name & Age", "Error") ElseIf ComboBox2.SelectedIndex < 1 Then MessageBox.Show("You Should Select A Name & Age", "Error") TextBox1.Text = "Your … | |
Re: And a user can overload the .toString() method to take the object in question an display it as you want. | |
Re: You could consider using a Masked Textbox. And then setting each masked textbox accordingly your currency mask would something like this [CODE]$0000.00[/CODE] you can put however many zeros infront/behind. 0 means only numbers are allowed to be inputted. and of course the period separates the dollars from the cents Using … | |
Re: I like using the c# keyword [B]using[/B] [U]example[/U] [CODE] using(DataTable ConfDT = new DataTable()) { //some code } //ConfDT is automatically disposed here [/CODE] | |
Re: If i understand this correctly, there are different ways of doing this. [U]Approach one[/U] In the DoctorSchedule new Contructor, you can say that it requires DoctorAppointment variable and then when click save you can access the DoctorAppointment fields direclty. Not sure if that is the best way of doing it. … | |
Re: You are going to have to add a NotifyIcon to your form, and then set the BalloonTipText/Title and display it when needed [CODE]Dim NotifyIcon1 = New NotifyIcon() NotifyIcon1.Visible = True 'You might want to do this on the form load event and hide it on form closing. NotifyIcon1.Icon = New … | |
Re: well using [CODE]TimeSpan ts = new TimeSpan()[/CODE] it only accepts ints, so you are going to have to convert your floats/doubles to ints | |
Re: I agree with MikeyIsMe, use the MouseClick event. But then again, not knowing what the OP wants.. | |
Hi, I have a WCF Webservice, and I have an asp.net application that uses this web service. I Have them both running on the same machine, but get a time out. Is there something I have to specify myself in the web.config? I am fairly new in WCF, as this … | |
Re: while debugging did you get data back from the server? In other words does the bold code below return anything [CODE]dgGuitars.DataSource = [B]dbcomm.ExecuteReader()[/B][/CODE] also maybe consider adding [CODE][B]user id[/B] & [B]password[/B][/CODE] to you connection string? | |
Hi, First of all I would like to know if this is possible, I have a feeling it is. so if this is, How/What would be the best way to do this? Will I have to download 3rd party libraries? Thanx | |
Re: creating an AV is very hard and long work.. rather join one of the open source projects at sourceforge... where there are plenty of prjoects to help | |
Howzit, I need some advice on how to go about doing this little side project. Theres a website that uses xml feeds to populate the whole page (i dont care if thats good or bad), I can access these feeds when I'm logged in, but as soon as I'm logged … | |
Re: plz add some more info... like should it get the best match to the wmax and vmax? or just iterate down the list and work from the top down, adding until it reaches the wmax/vmax | |
Re: first of all, never use the automatic GUI generator... as it is very hard to read/re-use/edit... always create your GUIs yourself... it may take a lil longer but is much more worth the trouble at the end. note:sorry for the hate and off topic, just it'll help alot later on | |
Hi i have a program that transforms my xml files with the stylesheets i applied and saves them as html file. i also used cooktop to create my stylesheet as well as to see the result... my problem is, that when i transform it, i have a <hr />tag, the … | |
Re: void textBox1_TextChanged(object sender, EventArgs e) { String provider=textbox2.Text.ToString(); int code=provider.GetHashCode() textbox2.Text = provider.ToString(); } | |
Hello I would like to develop GPS software for my mobile phone... it has a built in GPS, just i cant get software which is either free of charge or exactly what i need.. i know i have to use java.... but exactly where do i start with this? all … | |
Re: this seems like a nice "get to learn the logic" application... it'll be a quick and easy one with experience, show some code and ill help... ill be doing one any1 which works, but you need to show some of your own effort. the logic you mentioned above is ok, … | |
Re: just so you know.... 11111 = 1F... 1111 = 0F... so whats the problem then? | |
Re: post what the error is first of all... but looking at that... you're comparing a string (text) to a variable (A or a) [CODE]if (text == A || text == a) { newtext == r }[/CODE] so instead add quotes ("") around the A and a.. which will compare the … | |
Re: as far as i can see from the code... try making these two statements global [CODE]char myChar; BufferedReader s = new BufferedReader(new InputStreamReader(System.in));[/CODE] as you define them only locally to the isVowel method block | |
Re: [B][CODE] else Response.Write("Seat is booked");[/CODE][/B] move the else a bit up.... and judging from your code... it'll never be 0...cause just before you test it against 1... you give it the value 1... which i dont know why, unless you using it for debuggin | |
ive created an application which multiple users will be using on an intranet... now if i had to make changes to the app(fixes/bugs/etc) after deployment.... what would be the way to go without the user clicking a button to update... the new version would be put on the server, where … |