1,857 Posted Topics
Re: add a timer control(timer1). set the interval property to 1000. put your code, from the for loop, inside the timer1 tick event. to start the timer call timer1.start, to stop it call timer1.stop. | |
Re: I think what you want to do, is called `remoting` in .net. Here's the [MSDN article](http://msdn.microsoft.com/en-us/library/system.runtime.remoting.remotingservices.aspx) on `remoting` | |
Re: try it again but this time delete the partition and create a new one. This option is in the setup. | |
Re: Doesn't the background image property automatically tile the image if it's too small. | |
Re: Your code doesn't look to bad. However I don't see any `select case` statement. If you mean the query statement with select in it, what error do you get? On another matter you might want to take a look at this [post](http://www.daniweb.com/software-development/vbnet/threads/443463/why-doesnt-this-code-work) about handling multiple controls with one handler( control … | |
Re: I'm thinking that perhaps you're coding and the set up of your properties might be out. With accept and cancel assigned on the modal form and `this.Close();` in the click event of the cancel button, just the modal form closes, not the parent. when testing this I also set the … | |
Re: I suggest you read this [article](http://msdn.microsoft.com/en-us/library/aa231154%28v=VS.60%29.aspx) about the timer control. It discusses millisecond accuracy. To blink the label, just use the label change event to swap the forecolor and backcolor everytime the label changes. | |
Re: Those pics don't show enough. Copy and paste your code in here, and we'll have a better idea. | |
Re: Maybe the problem isn't the match but the code once there is a match. What you submitted doesn't show any code. | |
Re: It really will depend on the minimum PC configuration you want it to run on. The more resources you add, expecially images, the more overhead your software will have. Unless you really need hi def content, lower resolutions will allow more images bofore it starts to signifiacntly slow it down. … | |
Re: What version are you using? In my VS2010 that is the standard look of the tab control. | |
Re: In the crystal report control is a DisplayRectangle proerty and the DrawToBitmap method, it appears that with both of these you can get the picture from your database and draw it on the report. Searching the [MSDN library](http://msdn.microsoft.com/en-us/library/microsoft.reporting.winforms%28v=vs.100%29.aspx) can probably give more info. | |
Re: Learn C++, like any programming language is a journey of discover, and like any journey your satisfaction with the results will be dependant on the effort you've put into reaching your destination. | |
Re: I think it's more a matter of the logic of your program. In the simple example you gave it probably wouldn't matter. Consider this though: if x=1 then x=y else if x>0 then x<>y else if x>0 then x=y*-1 endif endif endif If x=1 then x=y endif If x>0 and … | |
Re: Yes, in the chart control is an option for 3D. Here is the [MSDN article](http://msdn.microsoft.com/en-us/library/dd456632%28v=vs.100%29.aspx), that dicusses charts, including 3D. | |
Re: basically if you have series of conditions that rely on different values of the same variable then a case construct is simnpler to code than a series of if-else statements. | |
Re: Just a look at some code for Qbasic. While alot of the statements and functions are similar there are enough differences in syntax and structure you can expect to have to transpose by hand the QB code line by line to the VB code. It might be simpler to break … | |
Re: Once you have the pictureboxes loaded with the images, check out this [post](http://www.daniweb.com/software-development/vbnet/threads/443463/why-doesnt-this-code-work). TnTinMN's answer contains a very easy to understand sample on how to handle the click event of an array of controls. One routine to control them all lol As for displaying the info for the images, pull … | |
Re: delete lines 10 & 120 & 129. This removes the blocks from printing out the names, etc.. In looking at your code it looks like you want to list the students by name and number them as well. I redid the code to do that as your code printed out … | |
Re: Here's the [MSDN article on the Shell Function](http://msdn.microsoft.com/en-us/library/aa242087%28v=VS.60%29.aspx). Which should do what you want. basically Shell(""path""), and yes the double quotes are on purpose. :) If I remember correctly the App object applies to the vb project and the path property is read-only and poins to the directory that the … | |
Re: What you want to do is somewhat difficult with the native functions in VB6. Using the windows api functions however are much more flexible. Here's an example to open a text file just by passing the path to the file. You should be able to adapt it to your needs. … | |
Re: I think what you'll need is a metadata api. One of, if not, the best is [Freeimage](http://freeimage.sourceforge.net/index.html) | |
Re: Might not be what you want, but , you could just ask whoever logs into the cloud what their connection type is. Or even if they want the ability to pause the connection. | |
Re: Here's the appropriate article in [MSDN on the DateAndTime](http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.dateandtime.aspx) class. Through class you can access any or all parts of the date. | |
Re: Here's the [MSDN Article on the Calendar Class](http://msdn.microsoft.com/en-us/library/system.windows.controls.calendar.aspx). It's very configurable. It should be able to do what you want. | |
![]() | Re: is it in your resource settings? if so try `My.Resources.` |
Re: One way is to disable/enable the network adapter(s). Here's a few posts to look at that should give you some idea: [Click Here](http://www.daniweb.com/software-development/vbnet/threads/279379/working-with-localareaconnection), [Click Here](http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/35497/script-to-control-network-connections) [Click Here](http://www.codeproject.com/Questions/151446/How-to-disable-or-enable-a-network-adapter) | |
Re: It looks like what you want is to extend List<T>. I've tried this and it works for me: // add this to be able to access the extension using MyExtensions; namespace MyExtensions { public static class My_Extensions { public static int GetData(this List<Npc> sender, short id) { for (int i … | |
Re: If I understand your code right you need something like this: Dim rcount As Integer = dgvUserDetails.Rows.Count For Each row As DataGridViewRow In dgvUserDetails.Rows If Not row.IsNewRow Then VNO = Me.dgvUserDetails.Rows(e.RowIndex).Cells(1).Value sql = "Select ID from datafile where VNO = " & VNO & "" If rs.State = 1 Then … | |
Re: The base drivers for the windows installation you're trying use are for a different system, therefore windows needs them replaced with the base drivers for your system. I've never tried it with Win7, but you should be able to to an install as an upgrade, that will keep your existing … | |
Re: Here's a bit of code that will parse the string in the pattern you mentioned and put each set of numbers in a list: Dim Str As String = "[1-5][8-10][10-20][21-31]" Dim StartTime As New List(Of Integer) Dim EndTime As New List(Of Integer) Dim ST, ET As String Dim TmpStr As … | |
Re: If you view the [PrintDocument class in MSDN](http://msdn.microsoft.com/en-us/library/vstudio/system.drawing.printing.printdocument%28v=vs.110%29.aspx) it should give you the info you need | |
Re: Try changing line 64 to `Dim pname As String = ""` | |
Re: When you first open VS2010 VC++ Express. The page that opens is called the start page. Here you can easily find out more on what is possible to do with VS. I know that a lot of the code will be beneath your knowledge level, but, it's a great way … | |
Re: instead of `picDestination.Image = dest_bm;`, try `dest_bm.Save(@"path to save")`. 'path to save' is the path to where you want to save the image. | |
Re: How are you storing the data? | |
Re: Im general the best work around was to eliminate the Y2K problem, by using 4 digit years | |
Re: You shouldn't need both the `process.start` and the `shell` commands. That may be why your file is opening and you're getting the error. One is throwing the exeception and the other is succeeding. This may seem weird on the surface but the `File Not Found` means something different to each … | |
Re: If you google `video authoring library mfc` you'll find plenty of options. | |
| |
Re: Change the format of your date string before you pass it to the query(i.e. `TempDateString = Format(dtphours.text, "yyyy/mm/dd"`). | |
Re: Try this: Imports System.IO Module Module1 Sub Main() Dim array As String() = File.ReadAllLines("file.txt") 'Dim line As String this is unnecessary for-each dims the variable automatically For Each line In array Dim length As Integer = line.Length 'have a textbox on the form and set multiline to true 'this line … | |
Re: Try this adnewrow("Acct_Code") = TxtAcctCode.Text DACodeMaster.UpdateCommand = CBCodeMaster.GetUpdateCommand() DACodeMaster.Update(DTCodeMaster) | |
Re: > Variable Name is used before it has been asigned a value. try changing line 3 to `Dim Name As String = ""` this will initialize the `Name` variable. > 'I want to store all the lvAccountManager Column 1 a string called "Name" Line 12 - `Name = Name & … | |
Re: Have you tried the `GridView.UpdateRow` Method("Use the UpdateRow method to programmatically update the record at the specified index in the data source.")? The MSDN article is [here](http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.updaterow.aspx) | |
Re: It sounds like the ImageList Component is what you need, "The Windows Forms ImageList component is used to store images, which can then be displayed by controls. An image list allows you to write code for a single, consistent catalog of images. ". The msdn article giving details is [here](http://msdn.microsoft.com/en-us/library/yf5cywb3.aspx) | |
Re: In your answer you didn't mention anything about enabling sharing on the printer. This is a vital step and very easy to do. As mentioned previuosly, this option is in the context menu for the printer. | |
Re: When you used PowerISO was it to install the same files? The problem you had with it is probably normal, the live boots need a certain format to boot. It might be worth another re-format of the usb stick to see if PowerISO will boot the same files. Just a … | |
Re: Have you checked the format of the relevant date strings? If the formats don't agree the search function won't recognize the same date. You might be better off casting each one to a `date` type to compare them. |
The End.