-
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 . -
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? -
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 … -
Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)
What I get with the variated code:  -
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" … -
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 … -
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 … -
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 … -
Replied To a Post in Login Attempt Not Work Please Help Me...............
...also it may be a static variable. -
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 … -
Replied To a Post in Login Attempt Not Work Please Help Me...............
What's the message? In which line? -
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 … -
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 … -
Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)
You are welcome. -
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 … -
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)` -
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 … -
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. -
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. -
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 … -
Replied To a Post in set icon for nodes in XMLTreeView via XML-File (vb.net)
     In Visual Studio explorer right click over the application name and add a new element: a xml file. Paste the … -
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 … -
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. -
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 … -
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 … -
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 … -
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. -
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). -
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. -
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 … -
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:  -
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. -
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 … -
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, … -
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. … -
Replied To a Post in Probability and Coin Tossing
Your welcome. -
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'. -
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", … -
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 … -
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 … -
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) … -
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 … -
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 … -
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 … -
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 … -
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 … -
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 … -
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 … -
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 … -
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.