-
Began Watching Is there a function in c# that returns x times of given char or string. Or
Is there a function in c# that returns x times of given char or string. Or I must code it? Thank you Saanvi sharma -
Gave Reputation to tinstaafl in LINQ GroupBy - VB.NET
According to your description it looks to me that your collection will contain objects that may have more than one name associated with each specific id. If this is the … -
Replied To a Post in LINQ GroupBy - VB.NET
I'm not gonna give a neg. rep. point, not even discuss what does lambda syntax look like in any specific language. Just that if this is a vb.net thread it's … -
Replied To a Post in LINQ GroupBy - VB.NET
Six thousand rows doesn't seem so much, unless having constant calls to the function. Imports System.Linq Public Class Properties Private Sub Properties_Load(sender As Object, e As EventArgs) Handles MyBase.Load Try … -
Replied To a Post in LINQ GroupBy - VB.NET
@ddanbe why don't express lambda expressions in VB.NET instead of c#? -
Replied To a Post in LINQ GroupBy - VB.NET
Do you mean somewhat like this?: Imports System.Linq Public Class Properties Private Sub Properties_Load(sender As Object, e As EventArgs) Handles MyBase.Load Try Dim A1() As A = {New A(1, "name1", … -
Began Watching LINQ GroupBy - VB.NET
Hi All, I have a collection of huge records (6000+) wherein the object in the collections has got 50+ properties, so ideally it is not a good idea to run … -
Replied To a Post in getting value or output result of an system calculator in vb.net textbox
Sorry, the original file was not attached. -
Replied To a Post in getting value or output result of an system calculator in vb.net textbox
Perhaps you'd like to emply 'mates8.dll' (in the attached file there is an example). There needs to be a reference to the dll and the imports statement. Then, you may … -
Began Watching getting value or output result of an system calculator in vb.net textbox
i have started system calculater in vb.net using process.start() method but i want to retrive it s value in textbox , how can i do that -
Replied To a Post in How to Update and Add Item in database from Listview
@Shark `purinvid` seems to be the table's key, so if it does not exist `result`will be 0 out from `executeScalar`and the row will be added. In the other case the … -
Replied To a Post in User Login Codes using VB and Access..
Of course I suppose the student data has been entered correctly, but I can't see the need for entering a third field: status. If you want to assure the password … -
Began Watching User Login Codes using VB and Access..
Hello, I wrote some codes for student login. the codes checks for the "username", "password" as well as their type of "status", from the database. once this input are met, … -
Replied To a Post in Is it possible to get the source path
More specifically you need a [File System MiniFilter](https://docs.microsoft.com/es-es/windows-hardware/drivers/ifs/file-system-minifilter-drivers) which is far less complicated -although still complicated. It has a function or routine [FltGetFileNameInformation](https://msdn.microsoft.com/en-us/library/windows/hardware/ff543032(v=vs.85).aspx) (also [FltGetFileNameInformationUnsafe](https://msdn.microsoft.com/en-us/library/windows/hardware/ff543035(v=vs.85).aspx) to retrieve the file name. -
Replied To a Post in How to Update and Add Item in database from Listview
The code had severall errors. Maybe this other way you can make it work: Dim sql = "select Count(*) from pur_invdet where purinvid=@purinvid" Dim cmd = New OleDb.OleDbCommand(sql, cn) cmd.Parameters.AddWithValue("@purinvid", … -
Replied To a Post in How to Update and Add Item in database from Listview
You are setting just one parameter in the Update statement while adding later 3 parameters. Can't you include the execute `cmd.executeNonQuery`s inside a try - catch to see if there … -
Replied To a Post in How to Update and Add Item in database from Listview
Change lines #21 and 22 into the following to see how many registers are really updated: dim n as int32 = cmd.ExecuteNonQuery() 'n=The number of rows affected' MsgBox("Updated "+n.tostring+" rows") … -
Began Watching How to Update and Add Item in database from Listview
I use the this code. showing "Update" msg but not update and if i add an item then show "Update" not "save" Please help me..... Private Sub Button14_Click(ByVal sender As … -
Replied To a Post in Cant print using PrinttoPrinter command
Searching seems as there is an issue in CrystalReports. Can't you divide, as a workaround, the report in two or three so each one has less than 2^15=32768 pages? -
Began Watching Cant print using PrinttoPrinter command
Cant print crystal report viewers records after 32767 page ... im using crystalreportviewer.printtoprinter command -
Replied To a Post in How to show particular data (display member) in listview...
Thanks to you again for your confidence. -
Replied To a Post in How to show particular data (display member) in listview...
Well, both tables must be read. You may code something like: Public Sub Displayitem() Dim cmd As New OleDb.OleDbCommand("SELECT * FROM pur_inv,inv_type WHERE pur_inv.invtypid=inv_type.invtypid ORDER BY purinvdt", cn) Dim dr … -
Replied To a Post in How to show particular data (display member) in listview...
Then change invtypid by invtyp: Public Sub Displayitem() ListView1.Items.Clear() Dim cmd As New OleDb.OleDbCommand("SELECT * FROM pur_inv ORDER BY purinvdt", cn) Dim dr As OleDb.OleDbDataReader = cmd.ExecuteReader() Do While dr.Read() … -
Replied To a Post in How to show particular data (display member) in listview...
Of course, if not present, you should add a reference to `System.Linq`. -
Replied To a Post in How to show particular data (display member) in listview...
If you mean to select a concrete id, you could do the following. When `invtypid` is -1, all the ids will be shown (on load event); when > -1 that … -
Replied To a Post in How to show particular data (display member) in listview...
I can't see anything wrong with the code you are sharing. So, what's the problem? Can you explain a bit further? -
Began Watching How to show particular data (display member) in listview...
Hello Teachers I create a project in vb.net 2010 with access database. I want to show data in listview. It Is show in listview but a problem I entry **Id … -
Replied To a Post in Is it possible to get the source path
Just a file system filter driver [Here](https://docs.microsoft.com/en-us/windows-hardware/drivers/ifs/file-system-filter-drivers) would do the job. -
Began Watching Is it possible to get the source path
Hi DW. I would like to know if its possible to get the source path of a file copied/moved to a folder I set a FileSystemWatcher? What I mean is … -
Replied To a Post in VB.NET - TCP IMAGE TRANSFER
You may send the image as plain text [Click Here](https://social.msdn.microsoft.com/Forums/vstudio/en-US/b0da124b-976b-4502-b38d-e33ad845be6b/how-to-save-images-to-text-file-as-charactersbinary-or-whatever-and-retrieve-them-back-to-picture?forum=vbgeneral) -
Began Watching VB.NET - TCP IMAGE TRANSFER
hi im having some trouble transfering images over tcp. i currently have a function set up to transfer text but would like to know how i would do this for … -
Replied To a Post in How can I use alt+del to delete listview item ...
Thank you for your confidence. -
Replied To a Post in How can I use alt+del to delete listview item ...
Sorry, I thought your code was for WPF. So, it should be: Public Sub listView1_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles ListView1.KeyDown If e.Modifiers = Keys.Alt AndAlso _ e.KeyCode = … -
Replied To a Post in How can I use alt+del to delete listview item ...
I would code this way: Public Sub listView1_KeyDown(sender As Object, e As System.Windows.Input.KeyEventArgs) Handles ListView1.KeyDown If e.Key = Key.System AndAlso _ e.SystemKey = Key.Delete Then If ListView1.SelectedItems.Count Then Dim item … -
Replied To a Post in How can I use alt+del to delete listview item ...
Are you talking about a ListView, a container of images? Or perhaps are you refering to a listbox filled with items? -
Began Watching How can I use alt+del to delete listview item ...
how can I use Alt+Del to Delete listview item ... Now I just select the row and press del key delete the item, But I want to delete item by … -
Replied To a Post in Drag and Drop between DGV's - how to determine the source DGV?
For example: Enum mouseDwn none = 0 srcIsNum1 srcIsNum2 End Enum Dim IsMouseDown As mouseDwn = mouseDwn.none Private Sub DataGridView1_CellMouseDown(sender As Object, e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseDown IsMouseDown = mouseDwn.srcIsNum1 … -
Replied To a Post in Drag and Drop between DGV's - how to determine the source DGV?
On the mouse down event for each source, while initiating the drag, you may set a flag `IsMouseDown` with a value indicating which is the source. If the mouse down … -
Replied To a Post in Update data from database to another in vb.net
If product names are really the same in both datagridview, i.e., no need to add rows: Dim us As New Globalization.CultureInfo("en-US") Function parseN(value As String, ByRef result As Double) As … -
Began Watching Update data from database to another in vb.net
Hi Maam and Sir. I need your expertise on vb.net. I have two data grid with database on their own. I want to copy/update the data from one database to … -
Replied To a Post in create sql table from listbox selected item/'Incorrect syntax near '3142'.'
That's a good new. Anyway, running several times the application seems that easily there may be duplicated table names, but I imagine you already have consider it. -
Replied To a Post in datagrid calculations
Let's imagine population is done so there is code, product, units, price, discount and amount. Probably you'll need to calculate the amount by clicking the 'update amount' button: Private Sub … -
Replied To a Post in datagrid calculations
How do you populate your datagrid? -
Began Watching datagrid calculations
how can i auto sum the values in datagrid cells of the same row in vb.net -
Replied To a Post in Code Breaks at If subCtrl.GetType Is GetType(System.Windows.Forms.RadioBut
Set the code in this other way and see if it still throws an exception: For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls If ctrl.GetType Is GetType(Windows.Forms.Panel) Then Select Case ctrl.GetType … -
Began Watching Code Breaks at If subCtrl.GetType Is GetType(System.Windows.Forms.RadioBut
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then For Each subCtrl As Control In ctrl.Controls If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then MsgBox(subCtrl.Text) End If If subCtrl.GetType Is … -
Replied To a Post in make scanner device connect with vb.net
That's all ? -
Replied To a Post in make scanner device connect with vb.net
Do you mean how to input scanned bar codes? If yes, see for example: [here](https://www.codeproject.com/Articles/296533/Using-a-bar-code-scanner-in-NET) -
Began Watching make scanner device connect with vb.net
INGGRIS How to connect device scanner with visual basic, its analogy I made button scan in vb and typing button scan in press scanner live and walk .. how? Help … -
Replied To a Post in sql query to fill listview
I'm not very sure of what you're trying, but perhaps: SELECT Format([expr1],"# %") AS expr2, count(totvisit)/count(totrem) AS expr1 FROM ( SELECT DISTINCT remid FROM remtable WHERE remtable.pacid = 94) AS …
The End.