1,857 Posted Topics

Member Avatar for diya45

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.

Member Avatar for tinstaafl
0
286
Member Avatar for tony75

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.

Member Avatar for tony75
0
1K
Member Avatar for diya45
Member Avatar for samsylvestertty
0
110
Member Avatar for diya45

Use the room ID if it equals 999, or any number that will never get assigned, the room is open otherwise it's booked

Member Avatar for samsylvestertty
0
206
Member Avatar for diya45

try using Delete.Enabled=false. It'll still be visible but it'll be grayed out and can't be used.

Member Avatar for tinstaafl
0
104
Member Avatar for peepas

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.

Member Avatar for tinstaafl
0
206
Member Avatar for leonard.salas.5

Here's a [link](http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1885&lngWId=10) to some code

Member Avatar for Reverend Jim
1
186
Member Avatar for hustk53

Try removing line 5 in the login form. frmAsset is already showing you shouldn't need to initialize a new one.

Member Avatar for tinstaafl
0
174
Member Avatar for bobyx
Member Avatar for tinstaafl
0
41
Member Avatar for visweswaran28

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

Member Avatar for tinstaafl
0
171
Member Avatar for Darth Vader

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 = …

Member Avatar for mwatson81
0
275
Member Avatar for Programmer629

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.

Member Avatar for Reverend Jim
0
211
Member Avatar for mIND.dEcEpToR

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

Member Avatar for tinstaafl
0
207
Member Avatar for marius2010
Re: VBA

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.

Member Avatar for tinstaafl
0
122
Member Avatar for munchlaxxx

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.

Member Avatar for Gonbe
0
2K
Member Avatar for Depreciated

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.

Member Avatar for Depreciated
0
735
Member Avatar for msnyder0019

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.

Member Avatar for tinstaafl
0
137
Member Avatar for rahulswr

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.

Member Avatar for tinstaafl
0
139
Member Avatar for ponkhiraj

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.

Member Avatar for tinstaafl
0
656
Member Avatar for ImZick
Member Avatar for ImZick
0
2K
Member Avatar for Rachna0309
Member Avatar for WDrago

You could also use something like Google Drive. This will allow local copies and updates to all copies when changes are made.

Member Avatar for TnTinMN
0
123
Member Avatar for manoj323

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.

Member Avatar for tinstaafl
0
274
Member Avatar for visweswaran28
Member Avatar for chieria

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 …

Member Avatar for tinstaafl
0
46
Member Avatar for shawnjohn

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 …

Member Avatar for tinstaafl
0
160
Member Avatar for jeansantos

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.

Member Avatar for jeansantos
0
133
Member Avatar for ram_kumar8970
Member Avatar for yousafc#

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.

Member Avatar for yousafc#
0
178
Member Avatar for joshl_1995

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.

Member Avatar for joshl_1995
0
2K
Member Avatar for GeneClaude

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

Member Avatar for Ancient Dragon
0
465
Member Avatar for howard.teoh.7

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.

Member Avatar for tinstaafl
0
122
Member Avatar for mohsinjaved11

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.

Member Avatar for tinstaafl
0
285
Member Avatar for ComputerFirstAde

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 …

Member Avatar for tinstaafl
0
153
Member Avatar for MasterHacker110

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?

Member Avatar for tinstaafl
0
312
Member Avatar for Bile

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 …

Member Avatar for jhai_salvador
0
142
Member Avatar for renzlo
Member Avatar for renzlo
0
303
Member Avatar for marlin.hankin

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 …

Member Avatar for tinstaafl
0
110
Member Avatar for ponkhiraj

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.

Member Avatar for tinstaafl
0
188
Member Avatar for yousafc#

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 …

Member Avatar for tinstaafl
0
123
Member Avatar for kikiey

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 …

Member Avatar for john.knapp
0
466
Member Avatar for boltfarms

if you did want to make your existing logic work try this: foreach (int element in departments) { total[element] += hours[element] * salary[element]; }

Member Avatar for tinstaafl
0
240
Member Avatar for yous

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.

Member Avatar for tinstaafl
0
1K
Member Avatar for Neethaa
Member Avatar for Reverend Jim
0
599
Member Avatar for Brick Wall

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.

Member Avatar for Momerath
0
111
Member Avatar for jemz
Member Avatar for ponkhiraj

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 …

Member Avatar for Reverend Jim
0
557
Member Avatar for pratik65

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.

Member Avatar for Dili1234
0
1K
Member Avatar for Xeta

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?

Member Avatar for tinstaafl
0
281
Member Avatar for lymwale.pablo
Member Avatar for tinstaafl
0
686

The End.