1,857 Posted Topics
Re: Window's Moviemaker will also do basic stuff like that. Can't remember what formats it'll save in, but converting should be relatively easy once the basic video is done. | |
Re: In C# you have the Convert class which uses specific conversions to many different type of data. Here's the MSDN library article on it [Click Here](http://msdn.microsoft.com/en-us/library/system.convert(v=vs.110).aspx) | |
Re: what code are you using? Here's a [link](http://msdn.microsoft.com/en-us/library/office/ff197608.aspx) that may help. | |
Re: I think the best you can do is to minimize it. Here's a [link](http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/56723844-d189-4718-bca4-b7bf64d6fca6/) with a post and code which might help. | |
Re: Probably want you want to do is tie all the picture boxes together handled by the same mouseover event. This post has an excellent sample code on doing just that, but with the click event. It should be easily adaptable. | |
![]() | Re: One thing that might help is loading the list `getStars` before you call the function and either making it public or passing it to the function. Also instead of creating all those variables in the for loop, calling the random function directly might gain some speed(i.e.` Height = random.Next(1, 10),Width … |
Re: Here's an [article](http://msdn.microsoft.com/en-US/library/ms235379(v=vs.100).aspx) that discusses what you want to do and includes samples. It looks like to do what you want you'll have to learn 'regular expressions', probably not everything but you should be able to decode the samples and create your own. You wanted help with the code. But … | |
Re: Are you doing a stand alone vb6 program with an excel control in the form, or are you using VBA in excel itself? | |
Re: Lines 155 $ 156 use Convert.ToInt32 | |
Re: Try this [link](http://msdn.microsoft.com/en-US/library/system.io.file(v=VS.80).aspx). This one deals with working with files. Use this info to delete the files in the directory you want to keep. Use the other info you got to delete any subdirectories and their files in that directory. | |
Re: the `columns` property of the listview should allow you to do what you want. | |
Re: It doesn't appear it can. I would suggest though that, unless there's a specific feature in a combobox you absolutley need, a listview control would work. It can display multiple columns and you can select a full row with the fullrowselect property. | |
Re: Pass the control as a parameter when you call the function in the class, then return the control after you changed whatever properties you want to change. Something like `Ruby1=class1.Myfunction(Ruby1)`. The function would look like: `public static label MyFunction(label NewRuby1)` and `return NewRuby1;` I know that there are other ways … | |
Re: Your code is sound. If `fo1 = ""` then nothing will be written to the file, otherwise the value of fo1 will be written to the file. On a side note the `My.Computer.FileSystem.WriteAllText` will create a file that doesn't exist automatically, no need to create one explicitly. | |
Re: we'll have to see the actual code to give a definitive answer. But basically a for loop has known limits and automatic incrementation, or decrementation, until the limit is reached. A while loop relies on a condition, or conditions, to be met before ending the loop, and doesn't usually rely … | |
Re: It's because of the way `Datediff` treats week calculations there's a pretty good example and explanation [here](http://msdn.microsoft.com/en-us/library/b5xbyt6f%28v=VS.90%29.aspx). | |
Re: One thing you could try is using VBA, which comes with office, and the tesseract library. However, from my reading of the docs tesseract itself is a commandline program, so you'll have to either run it from the program, or find a .net wrapper which will allow you to use … | |
Re: You might want to make `TableView` global or pass it to the sub doing to the email. Since you want the information in the body of the email, I would suggest putting the information into a formatted string, or converting it to html format. | |
Re: where is dt inititalized? You can easily do it. It's the same as putting it at the front of your code. But if dt can't be read then it won't work. There's a pretty good post on global variables [here](http://www.daniweb.com/software-development/vbnet/threads/275433/how-to-declare-a-global-variable-and-access-its-value-anywhere) | |
Re: Is the time and date set right in the bios? If it keeps getting reset in the bios you could be having RTC battery problems. | |
Re: what code have you got, and what part doesn't work right? | |
Re: Use the webbrowser control in the toolbox. In the form load event call the Navigate(String) method of ther wbbrowser control, where string is your URL. | |
Re: In the design tab, double click the listbox. That'll start a sub routine stub for the `SelectedIndexChanged` event. When you make a selection in the listbox this event will fire and you can display your messagebox there. For instance: private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { MessageBox.Show(listBox1.Text); } | |
Re: You could also create your own type using structure, and create an array of that type | |
Re: A good place to start is [here](http://msdn.microsoft.com/en-US/library/system.windows.forms.treeview%28v=vs.110%29.aspx). Then once you have your code started and you run into trouble let us know and we'll be happy to help you. | |
Re: There's a fairly good example on using the timer class [here.](http://msdn.microsoft.com/en-us/library/vstudio/system.windows.forms.timer%28v=vs.110%29.aspx). Unless you need a lot of precision it might be easier to just use the elapsed time, take a datetime snapshot at the start and a datetime snapshot at the end, and compare the two. | |
Re: almost any type of scheduling software and/or macro software will probably do what you want. | |
Re: try this in place of line 7-16 if (fam6.Contains(textBox1)) { textBox2.Text = value1 + "\r\n" + "\r\n"; textBox2.AppendText("The system found your search phrase and has displayed it above." + "\r\n"); textBox2.AppendText("We compared your search to 6 items."); } else { if (textBox1.Text.Length == (0)) { textBox2.Text = "You did not … | |
Re: One possible way, could be to have another picturebox loaded with a picture of an 'x', then just show it at the coordinates you want. | |
Re: If the amount of your memory is marginal, and you can't add any more, try using a leaner browser, some people have had success with firefox or chrome. I would also suggest a leaner AV. Norton is notorious for being a heavy user of resources. One thing you could look … | |
Re: I'm assumng that you want the value of the last child, in a branch, to be added to it's parent, instead of being put in a new node. Perhaps replacing line 40 with the following will work: if (xnode(HasChildrenNodes) addTreeNode(xNode, tNode); else xmlNode.value = xmlNode.value + " " + xNode.value; | |
Re: basically it looks like you'll have to build one. There are several turotials around that can help you with that. Perhaps if you had a specific problem with it there might be a way around it. | |
Re: I would suggest that it looks like you're modifying a new student list, then printing out the old one. Make the junior class list and the senior class list global. Try using the global lists in promotestudents instead of making local ones. Also if you promote the student to senior … | |
Re: Your pseudo code seem ok, but I would suggest you look at using the controls collection and event handlers to handle the changes, msdn has some good articles on that. This will simplify your code greatly and maybe expand your expertise :) | |
Re: the [msdn library](http://msdn.microsoft.com/en-us/library/aa289500(v=vs.71).aspx) even has an article that deals specifically with buttons. | |
Re: This might be an easier way: public partial class Form3 : Form { static FileStream hr = new FileStream("C:\\test.txt", FileMode.Append, FileAccess.Write, FileShare.ReadWrite); StreamWriter file1 = new StreamWriter(hr); DateTime dt; public Form3() { InitializeComponent(); file1.AutoFlush = true; } private void timer1_Tick(object sender, EventArgs e) { dt=DateTime.Now; if (dt.Millisecond == 0 & … | |
Re: Also using accessing the streamreader through the file class and using .readalllines and iterating through the resulting array might be faster that reading the file one line at a time. | |
Re: I googled this,c# quad tree tutorial, and came up with this [link](http://www.codeproject.com/Articles/30535/A-Simple-QuadTree-Implementation-in-C), and that's just the first one. | |
Re: You could try something like this: change line 5 dim Flag as boolean Dim ts,ts1 As TimeSpan change line 10 ts = enddate.Subtract(startdate) ts1 = enddate1.Subtract(startdate) Flag = True change line 21 Timer1.Stop() If Flag = True Then ts=ts1 Flag = False Timer1.Start() EndIf | |
Re: I got an error trying to load the design file, however it looks like all your doing is using a series of controla to show a digit. Putting more controls on your form should be easy, however your might want to think of a naming convention for the controls(i.e. Digit1Seg1, … | |
Re: try calling blinkLabel from the timer2 tick event. blinkLabel isn't returning a value so I can't see `timer2.Tick += blinkLabel;` working | |
Re: There doesn't appear to be anything very tricky or hard. Your best bet is read some tutorials and try to come up with some code. If you get stuck and can't make it work rioght, show us your code and we will be more than happy to help you. | |
In a recent discussion these code snippets were developed to replace Convert.ToInt32 and Convert.ToDouble. The person I was helping had a very large number of conversions to do. In our tests, using these 2 routines we were able to do over 1 million conversions in less than half the time. … | |
Re: You'll have to show us what code you're using. | |
Re: in fact something like: while (num>=20) { cout << "Invalid number. Enter another one in range." << endl; cin >> num; } Gets rid of the if statement all together. Also if I read your code right you don't need the for loop at all just the 'square' and 'cube' … | |
Re: some motherboards have a jumper to force the network boot. Sounds like this is what's happening, especially if the puter came from a large business. | |
Re: Probably a form, maybe a dialog form, with several textboxes lablelled with the various pieces of information you'll need to make the connection string(i.e. server, login, name of the database, etc.). Of course you'll have to validate each piece of info to make sure it's in the right format. | |
![]() | Re: you could always call netstat. that'll give you the ip of every machine connected to yours, and also the stat of that connection. |
Re: The only method I could find was to cheat and use the VB.net 'Val(string) as double' function. The only caveat is it returns a double so I had to change getnum2 to a double. The good news, approximately 50% increase in speed. Not sure why that code is that much … |
The End.