2,155 Posted Topics
Re: Are you using SQL or MySql? Both haev different usages to get the last id inserted into a table, which is the easiest and fastest way to go. Just get the last from a swl statement and add it to your textbox. | |
Re: You can get all of the functions on the Microsoft page - [Click Here](https://docs.microsoft.com/en-us/dotnet/api/android.bluetooth.bluetoothdevice?view=xamarin-android-sdk-9) This should get you going. | |
Re: I cannot agree more. Ultimately it is our responsability as developers to see that we secure all and any sensitive data that our applications deal with at the moment such data is received. I think the problem is as pointed out, you have been taught that 1 + 1 = … | |
Re: I must agree, many changes around if you have not been here for a while. I have not been here for around 5 years or so (returned a few times to find a different look). I remember I tried to login once and a new login system was in place … | |
Re: The message "Object not set to instance of Object" means that you are trying to use an object which has not been initialized. That is, you either set it to null, or you never set it to anything at all. The runtime throwing a NullReferenceException always means the same thing: … | |
Re: I agree with rproffitt, you need to first think what it is that your business/website offer to people and base all your research on those criteria. Search for the top 10 sites related to your industry and see what they are doing. Decide if this will fit into your profile … | |
Re: I went through your app (nice). I do however not see where you want to use the reader. Is it to load new books, students, not sure? Let me know, I'll help where possible. | |
Re: You need to use the Combobox.Listindex property to determine which customer was selected - [CODE]'After opening your recordset and connection UNDER your combo click event, the following... Dim xIndex As Integer xIndex = Combo1.ListIndex rs.AbsolutePosition = xIndex 'This will move to the correct recordset Text1.Text = rs!YourFieldNameHere 'Text is added, … | |
Re: This is a VB.NET question. I have asked the mods to move it there. As far as your question goes, try the following - [CODE]NotifyCon.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\192.168.0.125\MIKE-PC\SharingMike\Settings.accdb;Driver={Microsoft Access Driver (*.mdb, *.accdb};Persist Security Info=False" 'Add the IP address of the server...[/CODE] | |
Re: Use the following - [CODE]Private Sub Command1_Click() Dim con As ADODB.Connection Set con = New ADODB.Connection Dim rsSearch As ADODB.Recordset Set rsSearch = New ADODB.Recordset con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\MyDatabaseName.MDB;Persist Security Info=False" rsSearch.Open "SELECT * FROM MyTableName WHERE MyField LIKE " & "'" & Text1.Text & "'", con, … | |
Re: I would suggest drawing to a bitmap object, in the order required, then setting the picture box's image to that, something like this: Private Sub draw() Dim newBM As Bitmap 'the "canvas" to draw on Dim imgBG As Bitmap 'the background image Dim imgChar As Bitmap 'the character image imgBG … | |
Hi to all the old familiar faces, have not been here for a while... I have read up on tons of samples and answers (and even more on how cryptography works) but none answers my scenario. I am creating a new user from desktop app in VB.Net. User need to … | |
Re: I think your error is generated because you are trying to change an Integer value into a string - [CODE]Sub UpdateAttrib(TagNumber As Integer, BTextString As String) 'And then - Tatts(TagNumber).TextString = BTextString[/CODE] If BTextstring is NOT a number you will most definitely get an error. Also as vb5 said, you … | |
Re: Try the following - Driver={MySQL ODBC 3.51 Driver};Database=NAME_OF_MY_DATABASE;Server=\\10.0.0.111 (the server ip address)\thepcnamehere; Port=3306;Option=13; Add username and password if it is required... | |
Re: As usual, tinstaafl is spot on. Here are a few more samples... To Search a List with a Constant, Known Number of Rows This code moves down column A to the end of the list: Sub Test1() Dim x As Integer ' Set numrows = number of rows of data. … | |
Re: You need to have a few pictures, put them in a loop load under a timer event, and you will have a slide show.:) | |
Re: I'm not exactly sure, but it looks like the error is generated at the following - [CODE]Set Count = Set_Listbox.ListCount 'Try to do the following Set Count AS New Set_Listbox.ListCount 'or if that also generates an error, the following Set Count AS Set_Listbox.ListCount[/CODE] I'm not sure if this will help, … | |
Re: You will need to declare a new instance of the Audiogenie dll first - Set MyAudioGenie As New AudioGenie Now call the result from your code above... | |
Hi All, Back after a LONG break from Daniweb, love the new look! I have the following data scanned from a pdf417 and need to extract certain text to certain text fields, not sure how to go about this... Data scanned with manatee works plugin and android app using android … | |
Re: The easiest way out here is to use an object to do all the work and then show the results at the end. What I mean by this is to use public denominators to hold and calculate your results - Public xScore as Integer Private sub btnNEXTQ1_click(Byval sender as system.object, … | |
Re: Firstly, you have hijacked a 6 YEAR!! old thread. :) You need to start your own NEW thread. Your page will "eject" because you have used the .EndDoc line. That tells the printer that you are done printing. You need to add all your code for viewable print and then … | |
Re: Post the code you are using as well as the line the error occurred on. | |
Re: You can use the following then. Dim x As Integer ''Will hold the amount, must be only in numbers, otherwise use x as string... ''Do the calculation BEFORE you add the next amount to your textbox. If you were using a listbox, it would have been much easier... x = … | |
Re: Please show thye sample code, especially te part where you need the transparency. Also include your api references - BitBlt etc.. | |
Re: First of all, if you will be searching your database with a LIKE statement as you are doing now, you will have a lot of returned records... The LIKE statement works fine when you serach by names or strings etc. Id's is normally a set returned value. So, I will … | |
Re: Well I suppose that candy is the in thing until chocalate is more available than now. Funny how one never think of where stuff actually comes from, until there is a shortage. | |
**Modifications Required for VB6 Applications to Work on Vista/7** Thanks to Hassan Basri in VBForums **Application Changes** - Remove SendKeys calls and replace them with API code. - Use the HKEY_CURRENT_USER in the registry for the settings of your application. - Do not write to HKEY_LOCAL_MACHINE. - If you are … | |
Re: Welcome to Daniweb Rubberman.:) I read the book twice, loved it!!! Saw the movie, it was crap!.:) | |
Re: Which is crawling with spam....:) | |
Re: [QUOTE]if one student will enroll in one section (section galatia)den if the staff will click save button den if its done. then another student will enroll den another section (section israel) will be use. [/QUOTE] Ok, I will try and figure this out with your help please. What exactly is … | |
Re: Most definitely php. vb.net will be for desktop development. It all depends on what you want your web site to do, for data interaction, php is perfect, just some pages with script, normal html will fine as well. | |
Re: As gusano mentioned, the object was not registered properly. Find out what active x it is, copy it to your windows system32 folder (win SysWOW folder in win7), click on run from youir start menu, type in regsvr32 and the active x name and click on ok. If using win … | |
Re: You guys need to search a bit more please.:) Have a look at [URL="http://www.daniweb.com/forums/thread343880.html"]This[/URL] link that was discussed at the same time as your first post today. The basics is all there. | |
Re: Guys, we do not use "" in proper coding, but vbNullString as in - [CODE]txtBoxName.Text = vbNullString[/CODE] to clear all textboxes use - [CODE]Public Sub ClearAllText(ByVal frm As Form) Dim ctl As Control For Each ctl In frm If TypeOf ctl Is TextBox Then ctl.Text = vbNullString End If Next … | |
Re: Make use of a loop... Dim xRecords As Integer rs.MoveFirst 'change rs to whatever you have named your recordset selector For xRecords = 1 To rs.RecordCount ''Do with this record returned what you need to... rs.MoveNext Next xRecords | |
Re: I personally prefer the use of ADO. It gives you so much more control over queries than a data control. Reference MS Active X data objects 2.x under references. The code will be - [CODE]Private Sub Command1_Click() Dim con As ADODB.Connection Set con = New ADODB.Connection Dim rsSearch As ADODB.Recordset … | |
Re: Luckily I live in the most moderate of weather countries in the world - Cape Town, South Africa. We do not have Blizzards, typhoons, Hurricanes - we just have winter, spring, summer and autumn. | |
Re: This is the problem on using 3rd party controls.:) Have a look at the following attachment, which is much easier to use. You do however need to register the control on your system first for it to work. Copy the ocx file, paste it in your system 32 folder. Use … | |
Re: You will add it to a module (.bas) Please open your own thread, we will help from there. This thread is 4 years old. | |
Re: How ar you zeb? I am only back in a blib of a second, lol Your answer is quite easy, if all the popsters read it properly - You need to create a "next" record from the last record as per your question - Auto Generate Slip No? All you … | |
Re: [CODE]"In all things perserverance is the key. Dripping water hollows out a rock not by the force of its action, but by its constancy." By Thandi[/CODE] | |
Re: What database are you using, msaccess, sql, mysql? What connection are you using, data control or ADO? | |
Re: Grid2.Cols = Grid1.Cols i = grid2.Rows Grid2.Rows = i + 1 | |
| |
Re: Ok, lets see if I can get my head around this.... :) You have 2 tables - tblsales, tblstock a call has to be made to tblstock to see how much of a unit is available. if available, sell the unit and update tblsales... get price from tblstock, how many … | |
Re: @styleest, have a look at a thread I have posted a few months ago [URL="http://www.daniweb.com/code/snippet313435.html"]HERE[/URL]. It covers most of the problems with comaptibality in XP, Vista and Win 7. Happy coding.:) Please mark this thread as solved for us, thanks.:) |
The End.