467 Posted Topics

Member Avatar for PrabuT

Your problem is in **Private fmtString As String = "{0,-50},{2,8},{3,8},{4,8},{5,8}"**. It should be Private fmtString As String = "{0,-50},{1,8},{2,8},{3,8},{4,8}" Hope it can help you.

Member Avatar for Santanu.Das
0
697
Member Avatar for toomutch

Yes ! **dgv.selectionchanged** is the correct event you selected. You did right, but you didn't check the conditions for dgv.SelectedRows.Count. The codes should be Private Sub DGV_SelectionChanged(sender As Object, e As System.EventArgs) Handles DGV.SelectionChanged If DGV.SelectedRows.Count > 0 Then Action_Button.Enabled = True Else Action_Button.Enabled = False End If End Sub …

Member Avatar for Santanu.Das
0
180
Member Avatar for LukeJWhitworth

Follow this [tutorial](https://www.daniweb.com/software-development/vbnet/code/444231/printing-text-with-word-wrap) in vb.net forum of Daniweb, which can give you a proper way of thinking.

Member Avatar for Santanu.Das
0
810
Member Avatar for jonathan.paul.7543

You can use a flag for Booking/Non-booking, like True/False. Make your querry on that flag.

Member Avatar for David_50
0
1K
Member Avatar for Papa_Don

Hi Don, Are the digits unique for each folder name? If there is an only one folder that you mension **1504 - FPbs Meriden**, no other folder is there which uses **1504** like **1504 - XXXXXXXX**, you can do it for that particular folder. If you have another one which …

Member Avatar for cgeier
0
336
Member Avatar for <M/>

I am an Indian. My mother tongue is Bengali. But I can speak and understand several Indian languages, like Hindi, Telegu, Marathi, Oria. In middle of my school life I learned Sanskrit. One of the ancient language in world. Every indian languages are derived from Sanskrit. Now for my job …

Member Avatar for iamthwee
0
500
Member Avatar for naz1234

Yes you can change New Power value after changing Old Power Value programmatically. To change of a cell value on changing of other cell value you must use **DataGridView CellEndEdit or CellValueChanged** event. To change cell value the codes are Private Sub DataGridView1_CellEndEdit(sender As Object, e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit …

Member Avatar for naz1234
0
5K
Member Avatar for CodingSource

Your problem is in construction of For Loop. Removing Loops must be ran from highest listitem count to lowest by steping -1. Whatever may be the object is a ListBox, ComboBox, DataGridView or ListView. Always remember that, in for loop the upper limits must be fixed. You can not change …

Member Avatar for zizo.ahmed.779
0
3K
Member Avatar for Papa_Don

I have seen your entire codifications, it is a long code blocks. It is most time consumeable work to give any perfect suggession. But, from my point of view you need to use some object variabls, some loops to complete your lengthy simple codes withen some code lines(like the code …

Member Avatar for Santanu.Das
0
969
Member Avatar for dashawk
Member Avatar for Santanu.Das
0
5K
Member Avatar for Papa_Don

Referrencing from then link [you posted](https://www.daniweb.com/software-development/vbnet/threads/489626/remove-end-of-report-line-and-format-unix-text), you can do it as you did to insert each and every line to the text file. Place the codes to insert your characters at the end. For i As Integer = readtxt.GetLowerBound(0) To readtxt.GetUpperBound(0) - 2 'Appending the line to the text file …

Member Avatar for cgeier
0
501
Member Avatar for MasterHamster

Don't copy paste from others, only read and try to realize what he/she wants to do and grow a conception about that matter in yourself. Well, as you say you are a bigginer in vb.net, so I just want to point out the wrongs in your posting. 1) In SQL …

Member Avatar for Santanu.Das
0
238
Member Avatar for Hawk123

Using Object Type variable you can do this dynamically. Please [read this](https://www.daniweb.com/software-development/vbnet/threads/485768/retrieving-all-tables-in-ms-access#post2125438), which can give you a way to solve your problem. Thanx.

Member Avatar for Santanu.Das
0
194
Member Avatar for jez9
Re: Time

From my opinion, **MaskedTextBox** control should give you more flexibility to input the time values like start time and end time. Take two MaskedTextBox controls, one for start time and second one for present/end time. In property window change two properties of each MaskedTextBox control. **Changable Property Values** 1) Set …

Member Avatar for jez9
0
169
Member Avatar for Alessandrorenzi

In vb6 to call a sub procedure no need parenthesis. simply call it as Call ProcedureName Param1, Param2, Param3 It can help you.

Member Avatar for Santanu.Das
0
77
Member Avatar for mcroni

Hi, I do not know your database structure and you did not describe it. From the previous experiance I can say you that go through the purchased products table searching by ProductID and BatchNo and check the condition on BatchExpDate for expiary. Hope it can give you a way.

Member Avatar for Santanu.Das
0
64
Member Avatar for Nandomo
Member Avatar for Spark_2

> Me.DataGridView1.Rows.Add(...) To access an object of a Form from another, you must call the Form Name first i.e. **<FormName>.<ObjectName>.<PropertyName>=<Value>**. So your syntax should be`<YourFormName>.DataGridView1.Rows.Add(...)`.

Member Avatar for Spark_2
0
4K
Member Avatar for savedlema
Member Avatar for Santanu.Das
0
654
Member Avatar for benghoi

How far am I right, you are using a Typed Datasource to search the newest entry you did. Opened datasource never read the newly inserted or updated data. To do you must close and re-open the datasource. From my point of view use untyped Datasource to search as you did …

Member Avatar for Santanu.Das
0
245
Member Avatar for Satyam_1

Yes,You can do this after necessary changes in the row. just store the CurrentRowIndex value of the selected datagridview row then in button click event after saving the data to the database you can change the color of that row. Declare a formlaval variable ro hold the datagridview selected row …

Member Avatar for Satyam_1
0
4K
Member Avatar for 2384443

There are many discussions about this matter. Please, Read them. [https://www.daniweb.com/software-development/vbnet/threads/473687/vb-net-sms-application](https://www.daniweb.com/software-development/vbnet/threads/473687/vb-net-sms-application) [https://www.daniweb.com/software-development/vbnet/threads/472982/can-i-send-sms-from-vb-net-with-zte-usb-modem](https://www.daniweb.com/software-development/vbnet/threads/472982/can-i-send-sms-from-vb-net-with-zte-usb-modem)

Member Avatar for Santanu.Das
0
216
Member Avatar for jez9
Member Avatar for Santanu.Das

Hello members, Presently I do my projects with vb.net. I am not familier with Python. I want to learn python. Would you help me to learn python? I know nothing about python and I donot understand where from I will start.

Member Avatar for vegaseat
0
274
Member Avatar for Santanu.Das

What is difference between MySQl & MSSQL database storage limitation. More descriptively, If I make databases using the above-mentioned database systems. How much data I can store in each of them, i.e. 1GB, 2GB, 10GB, 100Gb. What is the limitation?

Member Avatar for Santanu.Das
0
160
Member Avatar for jez9

> i used ms access For Access just copy and paste your database to your destination folder by using FileSystemObject programmatically. If you use MSSQL or MySQL you must make a procedure to get a backup of your database.

Member Avatar for Santanu.Das
0
462
Member Avatar for altjen

From my opinion there is a problem in construction of connection string. Please see here.[http://www.connectionstrings.com/mysql/](http://www.connectionstrings.com/mysql/)

Member Avatar for altjen
0
685
Member Avatar for Nova6112

MS SQlSERVER creates two files, .mdf and .log. So if you want to attach your datafile in your package, you must select that two files. At the time of installation, the package only copies the files at their destination. You can face a problem to open the database by SqlServer. …

Member Avatar for JerryFJustic
0
132
Member Avatar for OMER AHMED
Member Avatar for Papa_Don

oussama_1 is right. Take a label control to display the string or working percentage and take a progress bar to visualize the working percentage. Aalabel control has Text Property to display any text. But you must set 3 to 4 properties of a progressbar to get the proper visualization. **ProgressBar …

Member Avatar for §AE§
0
3K
Member Avatar for sumas

Welcome sumas. Members are here not to do your home work they are to help you. Please post your codes how far you did.

Member Avatar for djjeavons
0
2K
Member Avatar for M.I.Sahil

Make sure path of the datasource at design time and after installation of your application. It is must to maintain the equal path at design time and after installation. In deployment wizard set the path where your database will reside. You can set it for every added files.

Member Avatar for M.I.Sahil
0
454
Member Avatar for altjen

It is possible to create your database into **"C:\ProgramData"**. To do this you must check the radiobutton **Show hidden files, folder, and drives** in the **View Tab** of Folder Options window. You can transfer anyfile to C:\ProgramData folder.

Member Avatar for Mr.M
0
302
Member Avatar for jez9

> Dim sql = "SELECT * FROM TBLORDERS WHERE nod='" & lvorder.Items(0).SubItems(1).Text & "'" >Dim cmd = New OleDbCommand(sql, con) >Dim dr As OleDbDataReader = cmd.ExecuteReader Why are you using these lines? And your thinkig is in wrong direction. Go through the Items of the ListView. Every time check if …

Member Avatar for jez9
0
1K
Member Avatar for Hari om

What do you mean by **change Conection String** ? Please describe it. If you have some codes please post them.

Member Avatar for Reverend Jim
0
101
Member Avatar for Erick_3

It should be Dim SQL As String = "SELECT ('RQ' & Format(MAX(ID),000)) FROM ReqItemList WHERE ReqItem ='" & inputin & "'"

Member Avatar for Reverend Jim
0
231
Member Avatar for Kristiani

@jez9: Lot of thanks for your try to help others. But made some mistake at the bottom, where you tried to insert a new row into the table. You could never open same Command object twice for different work. You need some modification in your codes. Here you have shown …

Member Avatar for jez9
0
2K
Member Avatar for Pompy

When cnt=20, clicking Button1 you can face an exception, because the upper bound of the array is 19. So you can disable the button1 or use a checking a condition for cnt=20 to prevent extra input. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click if cnt<=19 …

Member Avatar for Santanu.Das
0
184
Member Avatar for sdtechi

In mathematics Factorial of x=x * (x-1) * (x-2) * (x-3)................(x-(x-2)) * (x-(x-1)) If x=3 the Factorial of 3=3 * (3-1) * (3-2)=3 * 2 * 1=6 You can represent it by any one Symbols of L or !. So, 3!=3 * 2 * 1=6

Member Avatar for Santanu.Das
0
151
Member Avatar for RobertHDD

> i should get happygeek to put you's two idiots of the month What's your voice @happygeek. As a member doesn't expect this type of word.

Member Avatar for happygeek
0
196
Member Avatar for Vb.Netter

From my opinion your SQL Statement should be SqlTimes.UpdateCommand = "UPDATE Members SET [Agegrade]='" & savetim1 & "' where [Fullname]='" & athletename & "'"

Member Avatar for Santanu.Das
0
320
Member Avatar for OMER AHMED

From my opinion, use ListView HitTest() method to get the information at the position on which item you downed your mouse or outside the label area..

Member Avatar for Minimalist
0
273
Member Avatar for sganandhsg
Member Avatar for OMER AHMED

These type of error could be shown if you try to paste codes in the Form Class copying from other form class without designing first.

Member Avatar for Santanu.Das
0
290
Member Avatar for GianiD

Please [read](https://www.daniweb.com/software-development/vbnet/threads/485201/dataset-contents-not-displayed-on-printpreview-on-second-click#post2123707) this post carefully. You can get more resources from here about printing in tabuler format.

Member Avatar for Santanu.Das
0
147
Member Avatar for Papa_Don

take the array you declared i.e **IntArr()** as a dynamic array and do you jobs. The codes are as like 'declare the variables Dim IntArr() As String Dim i As Integer = 0 'Redimentioning the array ReDim IntArr(i) For Each tb As Control In Me.Controls If TypeOf tb Is TextBox …

Member Avatar for Minimalist
0
704
Member Avatar for bonzo2008

Firstly, the syntax at line 2 & 3 are wrong. It synax would be For lngIndex2 = 0 To ListView1.ListItems.Count-1 lngTot2 = lngTot2 + Val(ListView1.Items(lngIndex2).SubItems(5).Text) Next More consizely, it should be For lngIndex2 = 0 To ListView1.ListItems.Count-1 lngTot2 += Val(ListView1.Items(lngIndex2).SubItems(5).Text) Next To show your result the code is Text10.Text = …

Member Avatar for bonzo2008
0
158
Member Avatar for petercat

PictureBox is the Parent Control of the Label, So I think that no need to use the methods **PictureBox1.SendToBack()** and **.BringToFront()**. Remove them. Your problem is in calculation of the location of the label. Simply store the location in a point variable. If you want to display at same position …

Member Avatar for Santanu.Das
0
484
Member Avatar for kenea
Member Avatar for kenea

> If idno.Text = "" Or proflname.Text = "" Or proffname.Text = "" Or _ > profmi.Text = "" Or subcode.Text = "" Or teachuser.Text = "" Or teachpass.Text = "" Then Why did you want with that blank Condition chacking? There is no codes to execute after satisfying these …

Member Avatar for Mr.M
0
314

The End.