1,857 Posted Topics
Re: If you're using a database you'll probably have to learn SQL or atleast enough to formulate your query. If it's in an array, including LINQ gives you a number of handy functions. Things like contains, min, max etc. | |
Re: If you include LINQ(using System.Linq;), it includes an 'Average' method for integer arrays to find the average of every element in the array. You can also extract specific elements that match specific criteria. This [link](http://www.dotnetperls.com/linq) gives a fairly good explanation. | |
| |
Re: Use the room ID if it equals 999, or any number that will never get assigned, the room is open otherwise it's booked | |
Re: try using Delete.Enabled=false. It'll still be visible but it'll be grayed out and can't be used. | |
Re: I'm sure it could be done but it seems needlessly complicated. Have you considered using a combobox and putting the names in a droplist. That way reading the selected item is easy. | |
Re: Here's a [link](http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1885&lngWId=10) to some code | |
Re: Try removing line 5 in the login form. frmAsset is already showing you shouldn't need to initialize a new one. | |
Re: Paint, which comes standard in all windows, as far as I know, will do what you want. | |
Re: try something like: dim substart,subend as Integer dim originalstring,newstring,searchstring as string 'Set search term searchstring = "showDisableIcon" 'find the start of the string you want to extract substart= originalstring.indexof(searchstring) 'find the end of the string you want to extract subend= originalstring.indexof(';', substart) 'newstring should contain the string your looking for. … | |
Re: Did some playing around and found putting the search into a separate function increased the speed by a factor of approximately 4(i.e. on my machine original code was 1200-1300, the new code 300-400) //Approx: 1050 milliseconds DateTime dt = DateTime.Now; String str = " hello hello.. ,0"; int index = … | |
Re: Writing the file with your own extension is the easy part, just use the extension in the filename.. Associating the file with your program is a little more difficult, this [link](http://www.codeproject.com/Articles/18594/File-Association-in-VB-NET) is pretty good at explaining what's involved. | |
Re: You seem to have an extra console.writeline statement that's printing 'line' an extra time. Also you're printing to the console for every increment of j. If 'Sodoku_Gri.GetLength(1)' equals 2 then each line of the file will print 2 times. Can't see a reason for that loop to be in there. … | |
Re: In excel math between cells is handled by functions. Any regular math can easily be done, adding, subtracting, multiplying, dividing, between individual cells and/or range of cells. More complicated math can also be accomplished but the learning curve goes up lol. | |
Re: It probably is printing out the conversion but the next cout is done right after and overwriting it. You could try putting a linefeed in there. | |
Re: You're on the right track. MainMenu can't have any control that will steal the focus. Setting Enabled property to false works. Also, setting all the tabstop properties to false will work. | |
Re: If I'm not mistaken when you're using double.parse the whole string must represent a double, anything else and it crashes. By putting the inputbox right in the parse statment you can't validate the string returned from the inputbox unless you program an error trap. | |
Re: There is a GotFocus event for forms. in your code window click the line that says events for your main form in the droplist at the top. Gotfocus should then be in the events droplist on the right. | |
Re: richtextbox.savefile will save the contents to a rich text file. I can't remember the exact parameters. Print should be able to be done by the print dialog, or once it's saved through Word. | |
Re: If you use the Microsoft Office Spreadsheet control you can open the spreadsheet right in your app. | |
Re: Also there doesn't appear to be any login info there. | |
Re: You could also use something like Google Drive. This will allow local copies and updates to all copies when changes are made. | |
Re: Is your file named 'CV' or is it 'CV.docx'? You have to use the complete filename. The system uses the extension in the filename to determine which program to run. | |
Re: The coding will depend on the controller your using in the robot. If you're building it from a kit, then the kit should come with instructions to program it. If you're building from scratch, then you have to figure out what kind of controller and research it to see which … | |
Re: Instead of assigning all the text from the textbox to the variable Word, use the split function with a space as the delimiter, then loop through the resulting array of words assigning each one to your variable Word. Put the results back into the array then use the join function … | |
Re: Have you tried looping through your code to see if it is in fact doing what you suspect? A lot of times just checking your variables at run time and making sure they have the right data can be helpful. | |
Re: For color make your label's forecolor equal the richtextbox's forecolor. Do the same with the Font property and it will include Bold,Italic,Underline,Strikethrough,etc. | |
Re: try the code at this [link](http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=8826&lngWId=10). I tried the file download method with both a www address and an IP address and it didn't make any difference. | |
Re: The way I read it is, for every 2 seconds of time elapsed the output increases by 3 volts. However the voltage won't increase until 2 full seconds have elapsed. If this is correct then: (INT(input_time/2)X2)X1.5=voltage_output | |
Re: You could accomplish that by making, any variable you want to share, global. This way any object in your app can access it. This [link](http://www.dotnetperls.com/global-variable) gives a pretty example of how to do that. | |
Re: Probably the old school way, use the timer and switch the foreground color between what you're using now and the background color and back again. When it's the background color the text is still there but invisible. | |
Re: Your conversion code seems to be sound. The only anomaly i can see is that depending on which radio button is checked, only the metric tbox's are enabled or disabled. Perhaps commenting out all the statements enabling or diabling the tbox's, and then seeing how that impacts your problem, might … | |
Re: Have you tried using one of the many boot disks available that will work on a usb stick, and totally erase the partition(s) and start right from scratch? | |
Re: First off inputbox returns a string and your trying to put it into an integer, which might work if the string represents an integer. When it doesn't you get a mismatch. Changing LQ_Value to a string then converting its value to an integer later would work. A simple conditional statment … | |
Re: If I'm not mistaken, when you kill the java applet the associated java.exe should die with it. | |
Re: Just a heads up for you this isn't really a tutor site. This is more for helping with specific problems within code that's already written. If you google( or bing, or yahoo, or whatever) 'C# tutorials' you should be able to find quite a few resources that are better designed … | |
Re: actually if your scrolling the info you only need to display whatever will fit in the label; you keep adding character(s)on one end and subtracting character(s) from the other end, the number of characters and the speed with which you add and subtract will determine the speed of the scrolling. | |
Re: Do away with the for-next loop. Move the code inside the loop to a subroutine. Give the subroutine 1 parameter the number of the image to show. When starting the show pass 0 to the subroutine. In the Next button code use the value of lblcounter.text + 1, after verifying … | |
Re: there are several things to consider. Are you using one cable or going through a switch? If it's one cable a regular ethernet cable won't work, it has to be a crossover. On the other hand a switch will handle the crossover so 2 ethernet cables will work. Is your … | |
Re: if you did want to make your existing logic work try this: foreach (int element in departments) { total[element] += hours[element] * salary[element]; } | |
Re: It looks like your doing this inside the form load event. Perhaps the textbox isn't fully loaded yet. Perhaps creating the textbox in runtime would ensure it get's fully loaded first. | |
Re: In line 22, 'CID' is an int perhaps using 'txtnum.Text' instead will fix it. | |
Re: If these variable assignments are in a local sub, they're getting re-initialized each time you run the sub. Try making them global, move them to the top of your main class before any subs or functions. | |
Re: You might need to reset the cmos and then re-configure it. | |
Re: Here's another method: Dim Replacements() As String = {"_n_", "_o_", "_p_", "_q_", "_r_"} Private Sub ReplaceText() For i = 0 To 4 If TextBox1.Text.Contains(Str(i + 1)) Then TextBox1.Text = TextBox1.Text.Replace(Str(i + 1), Replacements(i)) End If Next End Sub Just add any other values you want in 'replacements' and change the … | |
Re: Just a thought if the grade calculations were done in the database then it would just be a matter of pulling the relevant fields and poutting them in a report. | |
Re: A point of interest. In my VS2010 it says I can create a new project as a windows service. Perhaps you can recreate your app directly as a service, and put your own timing and scheduling in it? | |
Re: It looks to me that your putting the info into textbox but your reading the info from textbox3. |
The End.