• Member Avatar for xrjf
    xrjf

    Began Watching Removing Item From Listbox And Updating Subtotal

    how can i update my Amount text . whenever i remove items in my list box .. i desperately need this for my project .
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in retrieve data from table with session as criteria

    Do you get any error message? Enclose in a `try/catch`. Variable `bFound` is what for?
  • Member Avatar for xrjf
    xrjf

    Began Watching retrieve data from table with session as criteria

    Hi guys, i have a login page where i created a session trainer after login. the session is the mail address of the trainer. now from another apsx page, i …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    What I get with the variated code: ![treeView3.PNG](/attachments/large/3/70f4dbd4627c370df1f133d563ae1824.PNG "align-center")
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    1) Perhaps it can't find the executables because you didn' t employ your's xml: <?xml version="1.0" encoding="utf-8" ?> <Nodes> <Node Text="Programme" Icon="BlaBlub.ico"> <Node Text="Test" Icon="C:\MyProgramm\Icons\icon2.ico"> <Programm Path="C:\Program Files (x86)\Microsoft Visual" …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    Yes, get the `AddNode()` from my last code, because seems to me the `AddNode()` is not working properly Private Sub AddNode(ByVal inXmlNode As XmlNode, ByVal inTreeNode As TreeNode) Dim i …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Saving items from listview to some columns in datagridview database Table

    One thing you may do is try to define exactly what do you mean by a complete solution and try by yourself to accomplish that target. Then you may share …
  • Member Avatar for xrjf
    xrjf

    Began Watching Saving items from listview to some columns in datagridview database Table

    Hello Everyone, This website has really helped me as a newbie, thank you. But I really need help with some thing. I created a database table in vb.net using SQL …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Login Attempt Not Work Please Help Me...............

    ...also it may be a static variable.
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Login Attempt Not Work Please Help Me...............

    The number does not increment because the error counter in `erorcunt` is defined locally, so each time there is a try for username and password `erorcunt` value is 0 and …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Login Attempt Not Work Please Help Me...............

    What's the message? In which line?
  • Member Avatar for xrjf
    xrjf

    Began Watching Login Attempt Not Work Please Help Me...............

    Hello Only one time count the msg ok result. but after that when I type wrong username and password coding not work. please help me ......... Try Dim erorcunt As …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in DataGridView Formating

    I hope it makes sense to you: Private Sub Dgv_Formate(ByVal e As DataGridViewCellFormattingEventArgs, _ ByVal Stat As String, _ ByVal processDate As Date, _ ByVal Extra_Days As Boolean) Try Dim …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    You are welcome.
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    I pass to you all the code again to be sure you can get it well. Imports System.Xml Imports System.Reflection Imports System.IO Imports System.Text Imports System.Text.RegularExpressions Public Class treeViewLoadXml Dim …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    Yes, sorry, you must remove baseStream so the instruction in line #11 will be `dom.Load(_rStream)`
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    Then copy the xml file to the executable's folder and replace what now is commented by the uncommented: ' Get Xml's file stream. 'Dim _assembly As [Assembly] = [Assembly].GetExecutingAssembly ''Dim …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    You may perfectly change the xml file outside VS. But whenever you want to distribute or use the executable you'll have to compile first, that's all.
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    Each time you compile in VS, the xml file is embedded into the .exe file.
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    I am not very sure if I have understood. The xml file can be modified inside or outside VS, but because it's embedded it goes 'inside' the .exe file. This …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    ![xmlembed1.PNG](/attachments/large/3/52639665d3fb067a39d7a9f0f3a50b4e.PNG "align-center") ![xmlembed1.PNG](/attachments/small/3/52639665d3fb067a39d7a9f0f3a50b4e.PNG "align-left") ![xmlembed2.PNG](/attachments/small/3/2a6ac470be9bb573cdfce03228a5c1b4.PNG "align-left") ![xmlembed4.PNG](/attachments/large/3/48cf866c32b49b6c40cda484dd844b90.PNG "align-center") ![xmlembed5.PNG](/attachments/large/3/073ca9cc1e2d2dd6ff5ec9a73e5fcedc.PNG "align-center") In Visual Studio explorer right click over the application name and add a new element: a xml file. Paste the …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in ASP.NET VB code for check and insert in a table

    I hope this helps: Dim rdr As SqlDataReader = cmd.ExecuteReader Dim bFound As Boolean = False If rdr.Read() Then Dim category As String = rdr("categoryname") If txtcontent = category Then …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in ASP.NET VB code for check and insert in a table

    You should close first `rdr.close()` before the insert into command.
  • Member Avatar for xrjf
    xrjf

    Began Watching ASP.NET VB code for check and insert in a table

    Hello , i kinda need some help here. The below code is to check if a category already exists before adding it to the table category. If ever i insert …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    Perhaps a better approximation may be this 'simpler' code: Imports System.Xml Imports System.Reflection Imports System.IO Imports System.Text Imports System.Text.RegularExpressions Public Class treeViewLoadXml Dim imgLst As New ImageList Dim vImgPath(-1) As …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    If the xml is the following: <?xml version="1.0" encoding="utf-8" ?> <Nodes> <Node Text="Programme" Icon="C:\Users\Public\Pictures\treeView1.bmp"> <Node Text="Test" Icon="C:\Users\Public\Pictures\treeView2.bmp"> <Programm Path="devenv.exe">Visual Studio</Programm> <Programm Path="EXCEL.EXE">Excel</Programm> </Node> <Node Text="andere" Icon="C:\Users\Public\Pictures\treeView2.bmp"> <Programm Path="VB6.EXE">VB.NET</Programm> </Node> <Node …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Select item from combo box and calculate data of that item from list box to

    I am sorry, I can do the work in my own style but you may adopt what you please of the former, of course.
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    If you need to resize the images before embedding them into the ImageList control you may take a look [here](https://social.msdn.microsoft.com/Forums/en-US/46905872-4334-43c3-9e72-9ad815811f0e/resize-images-to-proper-aspect-ratio-in-imagelist-for-listviews?forum=Vsexpressvcs).
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)

    First you should copy the images to an ImageList [Click Here](https://msdn.microsoft.com/es-es/library/system.windows.forms.imagelist(v=vs.110).aspx)instance and assign to the `TreeView.ImageList` property.
  • Member Avatar for xrjf
    xrjf

    Began Watching set icon for nodes in XMLTreeView via XML-File (vb.net)

    Hello, I´m not a professional in vb.net, but i try to make a tool for my colleague and me. I got a XMLTreeView on my form and i load a …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Select item from combo box and calculate data of that item from list box to

    Another good election for Font Type is 'Lucida Sans Typewriter', also monospace/fixed witdth. Like here: ![multiColumnListBox3.PNG](/attachments/large/3/203b6c496f7348b6edffb9204531ba78.PNG "align-center")
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Select item from combo box and calculate data of that item from list box to

    Note almost all the strings have been replaced by StringBuilder.
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Select item from combo box and calculate data of that item from list box to

    Setting the form's font to 'Courier New' is best because the letter width is fixed, this is the same for all characters. Imports System.Text Public Class multiColumnListbox Dim vCars() As …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Probability and Coin Tossing

    I take it in this way: a play will finish always with a winner A or B. In state TT both next options H or T, player B is winner, …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Probability and Coin Tossing

    Yes, it's clear that once in state TT player B will always win, while in state TH player A will win only in case of H, i.e., half the time. …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Probability and Coin Tossing

    Your welcome.
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Select item from combo box and calculate data of that item from list box to

    Be sure to set ListBox1.MultiColumn property to 'True'.
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Select item from combo box and calculate data of that item from list box to

    As a start you may do something like the following: Imports System.Text Public Class multiColumnListbox Private Sub multiColumnListbox_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load ListBox1.Items.Add(New car("X1", "BMW", "140", "276", …
  • Member Avatar for xrjf
    xrjf

    Began Watching Select item from combo box and calculate data of that item from list box to

    Hello Everyone, Can someone please offer me some help here as I have spent 3 days trying to resolve this problem I am having trouble while selecting one item from …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Probability and Coin Tossing

    Well, I'm just trying to clarify my ideas of the problem and I think I have progressed: just that, nothing else. So a last thought: If first toss is H-c2-c3 …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Probability and Coin Tossing

    If player A plays THH then player B choose is TTH. If first toss is T-c2-c3 let's see what happens depending on c2, c3 and the next toss c4. T(H=c2) …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Probability and Coin Tossing

    Splitting up `btnStart_Click()` as shown surprisingly the probability for both players tends to 1/8. Now, the difference is in that when a player wins `res()` is not initialized again. Private …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Probability and Coin Tossing

    Sorry, I was wrong `Case CheckWin(4,res)` is right. Any way, I can't see why player B after several hits approches a probability p=7/40, when one could expect p=1/8=1/2 x 1/2 …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Probability and Coin Tossing

    The unique problem is a typo in line#42 where it says `Case CheckWin(4, res)` it should say `Case CheckWin(3, res)`, because button3 is the first button for player B, isn't …
  • Member Avatar for xrjf
    xrjf

    Edited Datagridview selection applying a Regex pattern

    Suppose we need to populate and filter a Datagrid with the data coming from an Access table. It could be of course a table from Sql Server also. Form dataGridSelect …
  • Member Avatar for xrjf
    xrjf

    Created Datagridview selection applying a Regex pattern

    Suppose we need to populate and filter a Datagrid with the data coming from an Access table. It could be of course a table from Sql Server also. Form dataGridSelect …
  • Member Avatar for xrjf
    xrjf

    Began Watching Datagridview selection applying a Regex pattern

    Suppose we need to populate and filter a Datagrid with the data coming from an Access table. It could be of course a table from Sql Server also. Form dataGridSelect …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Probability and Coin Tossing

    Defining more than one instance has probability non-zero to repeat an earlier seed from a previous instance. Let's say there are 100 diferent possible seeds, every 200 tosses -more or …
  • Member Avatar for xrjf
    xrjf

    Replied To a Post in Probability and Coin Tossing

    I think the non random result is due to the fact that the random is defined inside a sub procedure and not a class level. The only way to create …
  • Member Avatar for xrjf
    xrjf

    Began Watching Probability and Coin Tossing

    Here's an interesting little scenario. You get challenged to a game of coin toss. Both players pick a sequence of coin toss results (heads or tails). The coin is repeatedly …

The End.