- 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
69 Posted Topics
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 … | |
Re: please do try this on your own, atleast just try and then where you get stuck, we will have a look :) | |
Re: [B]Cannot find column [reklamace.kod_reklamace]. [/B] thats your error... it cannot find that column... either remove the reklamace. from the query and try again. | |
Re: do you want to search for more than 1 field at a time? or search one field, and all relevant data with that ( this should already be happening0 | |
Re: you could declare it as private... and just create getters/setters which can be declared as public. | |
Re: well if your adding a primary key, then there shouldnt be a problem with renaming and adding new pictures, even after deleting pictures... primary keys, are suppose to be unique and in your database, if you delete lets say record 5... you wont be able to create a new record … | |
Re: your going to first need to read the contents of the text file... either using a ifstream or just a fstream(fstream is both ifstream and ofstream) lots of examples on the net... just google ifstream/fstream | |
Re: i think its possible yes, as it is possible with todays scanners... which "take a picture"(scan an image) and then translates it to words... this is possible with a moblie app, but itll need some sort of text recognition in it, which im sure there is examples out there somewhere … | |
Re: as far as i can see.... from this code [CODE] string pattern = "xmlns:.*?\".*?\"";[/CODE] the [CODE]xmlns:[/CODE] says what exactly to look for... must exactly match that... then moving on to the [CODE].*?\"[/CODE] the "." i think is some kind of append to the pattern it then says the next part … | |
Re: everything is possible... some just require more work than others... but whoever told you to use VB.net was a good choice... although using C#.net would be even better. good luck, and dont give up on the project | |
Re: upload your complete project as an attachment and ill have a look at it | |
Re: when closing the main form its like closing the app... so a suggestion would be, disable the main form close button when there are child forms open... and just enable it again when there are no child forms open... or create a global variable(a bool perhaps), that when a child … | |
Re: please add the CODE-tags to the respective areas... it makes things easier to read :) thanx | |
Re: to make things easier for us.... state the problem... | |
Re: 1st of all.... welcome.... 2nd of all we dont just give code... the point of this forum is that you 1st try to code it yourself, and then AFTER research on the internet...and a search on the forum, then you post your problem here WITH your try... from there we … | |
Re: change this code [CODE] public static getMove(int turnNumber) {[/CODE] to this maybe [CODE]public static [B][U]void[/U][/B] getMove(int turnNumber)[/CODE] note: mark as solved if this fixed it | |
Re: try this [CODE]if (turnNumber % 2 == 1)[/CODE] when using the = its like assinging a value to a variable... but what you want to do is compare the values... thats why you use double = like == if this works mark as solved. Thanx | |
Re: [url]http://www.codeguru.com/csharp/.net/net_data/datagrid/article.php/c13041[/url] [url]http://social.msdn.microsoft.com/forums/en-US/winformsdatacontrols/thread/fbe691ae-ec83-4a09-8766-0088cfcc1ea3/[/url] thers many posts out there concerning this a quick google search got me this... | |
Re: [QUOTE] int number; { number= Integer.parseInt(Dialog.input("Enter repetition?")); number= Integer.parseInt(Dialog.input("Which timestable do you want?")); for(int a =1;a<=12; a++) { System.out.println(a + " times " +number + " is " + a * number); } };[/QUOTE] just add another loop... [CODE] int number; int number2; { number2= Integer.parseInt(Dialog.input("Enter repetition?")); number= Integer.parseInt(Dialog.input("Which timestable … | |
Re: [CODE] 2 for loops with int I and K if (num[i] > num[k]) swap = num[k] num[k] = num[i] num[i] = swap [/CODE] to change the order(ascending/decending) just change the > to < or vica versa | |
Re: [QUOTE=winecoding;1164028] [CODE] for (i = 0; *(str+i); i++)[/CODE] [/quote] this is a for loop, which will start with[CODE] i = 0[/CODE], and iterate through until the condition [CODE]*(str+i)[/CODE] is met, and the iteration will move by one at a time as shown by the [CODE]i++[/CODE] note: as far as i … |
The End.