138 Posted Topics
Re: Nothing special to comment for the code except that it is setting port RA0 as ouput in line #5, port RA1 as input in line #6. Lines #4 and line #7 make no sense because status register is destination for arithmetic results, so to read and not to write into … | |
Re: If the buttons are in the class file ctrlAddSitesMenu: Imports System.Windows.Forms Imports System.Windows.Forms.Control Public Class ctrlAddSitesMenu Dim frm As Form 'Declares Buttons for Opening Websites Dim OpenTraker As New Button Dim OpenDynamics As New Button Dim OpenInetPortal As New Button Dim OpenFrontPortal As New Button Dim OpenLoopcare As New Button … | |
Re: That's not possible with ClickOnce, it always installs in the application cache. You should use MSI or some other installer technology. | |
Re: I'm a newbie for sql server, but I did the installation yesterday. After several errors from a .net application another pc in the home group, a list box is populated. The listbox data is retrieved from a sql server database. I had to configure windows firewall advanced settings to let … | |
Re: The color you are using is coincident or very similar to the one of the border color when the focus is on the control. When there are more than one control just one has the focus. Please, take a look to [Click Here](https://social.msdn.microsoft.com/Forums/en-US/2a9da3ca-1241-4926-b97b-deced5464194/combobox-dropdownarea-border-color?forum=vbgeneral) | |
Re: Why not host Asp.Net pages on the server and call them from vb.net through a username and password. Seems to me this question should be asked in Programming/Web development. | |
Re: I've felt free to modify a bit your code to what I thought was required: Imports System.Data Imports System.Data.OleDb Imports System.Linq Public Class TableDescription Dim conn As New OleDb.OleDbConnection Dim ds As New DataSet Dim tblName As String = "Contacts" Dim tbl As DataTable Private Sub Form1_Load(ByVal sender As System.Object, … | |
Re: By completed a database in vb.net, do you mean completed in Asp.Net? If that's not the case, first complete all the tables updates and so forth in Asp.Net. Then search the web for "web hosting with access database" to host your access database and the complete application in the Internet. | |
Re:   The following code may be a poor solution, but as far as I know controls are not serializable unless having a custom serializable class for each type of control. This is a workaround. Another possibility could be to get properties through Reflexion, but again gaining complexity. … | |
Re: Before line #26 define `int lastNum = (max+min)/2` for example. Then, substitute lines #29 to #32 by: if (strTemp == "NaN") temp = lastNum; else { temp = atoi(strTemp.c_str()); lastNum = temp; } | |
Re: I wonder why your line #15 isn't wrap like line #7 with `If Not IsDBNull...` because in case `...cells(4).value` is DBNull because of an empty input, an exception will occur. | |
Re: If, for example, you add the unordered list of names to listbox1, then you may transfer name by name to listbox2 just making sure before inserting you leave above the inserting index all names 'less than' the current one: For i As Int32 = 0 To ListBox1.Items.Count - 1 Dim … | |
Re: See if this works. Panel1 that has two controls: a label and a picturebox with an image; and Panel2 is on top of Panel1 and hidding it. Besides, form "HiddenPanel" has 2 buttons to show hidden panel1 contents in panel2, and to clear panel2. Imports System.Drawing.Imaging Public Class HiddenPanel Function … | |
Have you ever wanted to develop a math parser and evaluator? Are you in such a quandary or just have curiosity or interest in the matter? If so, you may download the complete source version 8.3.48 or later, but be warned there is almost no comment; or instead, follow versions … | |
Re: You may find the answer by inspecting in which programming language do you feel more confortable. Maybe it's no so important the language choice -most languages are sufficiently empowered-, but with which may you strive better to succeed. | |
By means of Mates8, graph coding becomes a bit easier. The web page has four textboxes so the figure gets bounded to the left, right, top and bottom; and a draw button. Additionally, a panel control will contain the image generated by the code after the button is pressed. | |
Re: If you're looking for concision, you may code something like: static void Main(string[] args) { string str = "abc,123.xyz;praise;end,file,clear"; Console.WriteLine(String.Join("\r\n", Regex.Split(str, @"(\,|\.|\;)+"))); Console.ReadLine(); } | |
Re: I was wandering if, maybe, first a total size of the files to be copied could be obtained. Then, we could make an estimation e= Kb copied/second and, why not?, the main thread could show the progress bar, for example, each second a rate: time elapsed (seconds) / e | |
Re: It depends, from my point of view and experience, on your taste and skills. I did an accounting project which employed Crystal Reports. Reading a good book or tutorial for Crystal Reports will save you many hours. The big advantage is that adding fields or totals in a report is … | |
Re: Why not use try-catch to trap and visualize errors, at least during test sessions? Once you can see the error message, the fix, almost always, will be more affordable. BTW, there is little difficulty to modify the query string by the user. See [here](https://social.msdn.microsoft.com/Forums/vstudio/en-US/01face56-99bf-4712-8aad-830f738546b4/using-vs-try-catch) and [here](http://msdn.microsoft.com/en-us/library/ms971481.aspx). | |
Re: Before getting variables into play, why not consider parentheses? As a hint, a parser could look into the most inner parentheses, calculate the enclosed expression and then focus on the next more outer parentheses. In order to calculate each enclosed parentheses expression, first one could look for ^operators, then /operators … | |
Re: Long time ago, by means of Bussiness Basic, I had this problem as "homework". It did was a headache and there was no Wikipedia nor Internet, just some colleagues comments that really did their best. Allow me to contribute with the following code: static void Main(string[] args) { System.Globalization.CultureInfo ci … | |
Re: Does that mean it can have upper case? or that pattern should not be different, as in abc.xyz? That would leave only expressions like abc.abc? But that does not make to much sense. Then could it be a pattern abc.xyz, where xyz<>abc? If so, the pattern would be: Imports System.Text.RegularExpressions … | |
Re: Having WebBrowser1 and WebBrowser2 in Form1 Public Class Form1 Dim sNav2 As String = "http://www.google.com" ' your Url goes here Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load ' Initialize WebBrowser1 document: Dim e2 As String = "" e2 = "<html><head id=""hd"">" + vbCrLf e2 += "</head>" e2 … | |
Re: Instead of drawing the box, another approach would be to load 2 images: one with the box and the other without (or whatever images you decide). Then in the OnDrawItem() just call e.Graphics.DrawImage() method to draw the box image or the no-box-image. | |
Re: Why use labels? Why not a datagrid or simply a listbox or a multiline textbox? BTW, why not enclose in a try-catch and use a name more meaningful as myvalue? I would set one cmd.CommandText (1 connection) to: "SELECT dbTeam.*,db_TeamMember.*, db_Schedule.* " + _ "WHERE (db_Schedule.db_Schedule_Start < "+...+" finish > … | |
Re: I can't verify your code, but seems it should work iterating: Konter = 1 ' intialize Do While dReader.Read() ' get in Kode a 3char string of Konter filled with zeros at the left, ' prepended by "HS" ("HS001", "HS002", "HS003" and so on): Kode = String.Format("HS{0:000}", Konter) Konter += … | |
Re: Converting method 'EvaluateIt' to 'shared' Imports System.Text Imports System.CodeDom.Compiler Imports System.Reflection Module Module1 Sub Main() Compile("return 2+3", "") End Sub Public Sub Compile(ByVal vbCode As String, ByVal argsString As String) Dim oCodeProvider As VBCodeProvider = New VBCodeProvider Dim oCParams As CompilerParameters = New CompilerParameters Dim oCResults As CompilerResults Dim oAssy … | |
Re: Who knows when a security issue may overcome, but take a look at [Click Here](http://msdn.microsoft.com/en-us/library/windows/desktop/ms723115(v=vs.85).aspx) Then, I think this other way may help: objConn = New OleDbConnection(sconn) objConn.Open() Dim AccessCommand As OleDb.OleDbCommand ' Set the sql string with 2 parameters: Dim sql As String = "UPDATE [NewItem] SET ITEM_STATUS=? WHERE … | |
Re: I'm not very sure if a PictureBox is best, depending perhaps a Panel control would do. I also think that the graph's background (axis, axis divisions, text and so on) may persist in a bitmap and employ a Graphics instance `gr = Graphics.FromImage(bmp)` to draw the rest. | |
Re: I prefer VB.Net coding although C Sharp can manage some unsafe code that VB can't. [Click Here](https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/5586314-allow-unsafe-code-and-pointers-in-vb) | |
Re: Search for "HttpWebRequest asyncronously" or [Click Here](http://msdn.microsoft.com/en-us/library/86wf6409(v=vs.71).aspx) | |
Re: I think that, if possible, the data could be read in chunks of, say, 2K rows. Each time a chunk is read, first look for duplicates inside the chunk and, then, compare to the other 2M – 2K. If a row is present in the chunk of 2K and in … | |
The days when the calculator had almost 3 thousand visits a day have gone. Since then, there have been several major versions and lots of minor versions. Somehow, I feel pleased in that the present core algorithm follows the rules of the first I read; of course, extending the simplicity … | |
Re: Take a look [here](http://en.wikipedia.org/wiki/Responsive_web_design). Seems for me, that a responsive web, summarizing, is more flexible to the different devices that can visit the web. | |
Re: At my site, if you wish you may enter hexadecimal, octal and/or binary numbers with the dot (.) by prefixing &h, &o or &b, respectively. The result may be shown in any/all of those bases, besides decimal. A bit of further explanation: *When one of the following &h, &o, &b … | |
Re: Long time since I wrote my last asm code, but I'll try to answer your questions: #69. mov dword [Guess], 5 states that a 5 will be moved to position pointed by Guess and value will occupy a double word length (32 bits). This is equivalent to 'guess = 5' … | |
Saw this thread today: http://www.daniweb.com/software-development/csharp/threads/448676/derivative-integrals You may download the (free) source code from here http://xrjunque.nom.es/precis/swdownload.aspx Need to say it's all vb.net, but you can easily have a .dll (all the 'machinery' is inside a folder: just complile as a .Net's .dll). Then, to derivate say 'cos(x)': dim strToDerivate as string … |
The End.