138 Posted Topics

Member Avatar for This_1

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 …

Member Avatar for xrjf
0
274
Member Avatar for Rabastan

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 …

Member Avatar for xrjf
0
321
Member Avatar for Muhammad_139

That's not possible with ClickOnce, it always installs in the application cache. You should use MSI or some other installer technology.

Member Avatar for xrjf
0
98
Member Avatar for sisay_3

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 …

Member Avatar for xrjf
0
844
Member Avatar for Rabastan

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)

Member Avatar for xrjf
0
252
Member Avatar for karthik_10

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.

Member Avatar for xrjf
-1
1K
Member Avatar for Karuna_2

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

Member Avatar for xrjf
0
704
Member Avatar for judd

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.

Member Avatar for xrjf
0
213
Member Avatar for DobyMoby

![deserialize1.PNG](/attachments/small/3/600b453fee87600432f3d2e60c91291c.PNG "align-left") ![deserialize2.PNG](/attachments/small/3/667b475f4fa41f53ec6bd5a7ef0c7813.PNG "align-left") 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. …

Member Avatar for xrjf
0
349
Member Avatar for guest_1

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; }

Member Avatar for JamesCherrill
0
329
Member Avatar for Joe_28

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.

Member Avatar for ddanbe
0
409
Member Avatar for erin_1

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 …

Member Avatar for xrjf
0
540
Member Avatar for Renga_1

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 …

Member Avatar for xrjf
0
284
Member Avatar for xrjf

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 …

Member Avatar for Xavier_5
0
2K
Member Avatar for shannon_92

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.

Member Avatar for vegaseat
-1
420
Member Avatar for xrjf

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.

Member Avatar for xrjf
0
569
Member Avatar for ddanbe

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(); }

Member Avatar for xrjf
0
1K
Member Avatar for paul1145

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

Member Avatar for xrjf
0
332
Member Avatar for savedlema

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 …

Member Avatar for xrjf
0
392
Member Avatar for jasmine.koh.562

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

Member Avatar for xrjf
0
154
Member Avatar for ddanbe

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 …

Member Avatar for xrjf
1
539
Member Avatar for ddanbe

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 …

Member Avatar for xrjf
0
2K
Member Avatar for prashant9928

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 …

Member Avatar for Reverend Jim
0
394
Member Avatar for dizzydaz

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 …

Member Avatar for xrjf
0
117
Member Avatar for PerplexedB

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.

Member Avatar for xrjf
0
462
Member Avatar for pezza

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

Member Avatar for pezza
0
4K
Member Avatar for Putri Alvionia

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

Member Avatar for xrjf
0
138
Member Avatar for Patrick_3

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 …

Member Avatar for xrjf
0
598
Member Avatar for rathiikk

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 …

Member Avatar for xrjf
0
1K
Member Avatar for virupax

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.

Member Avatar for xrjf
0
458
Member Avatar for GeekPlease

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)

Member Avatar for JorgeM
0
587
Member Avatar for intes2010

Search for "HttpWebRequest asyncronously" or [Click Here](http://msdn.microsoft.com/en-us/library/86wf6409(v=vs.71).aspx)

Member Avatar for markjames2012
0
544
Member Avatar for ogrishmania

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 …

Member Avatar for ogrishmania
0
438
Member Avatar for xrjf

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 …

0
427
Member Avatar for roshekhay

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.

Member Avatar for xrjf
0
65
Member Avatar for rishif2

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 …

Member Avatar for xrjf
0
138
Member Avatar for pbj.codez

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

Member Avatar for Assembly Guy
0
336
Member Avatar for xrjf

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 …

Member Avatar for Ancient Dragon
0
175

The End.