800 Posted Topics
Re: If the charts are table driven you can query the database and then store the data into a data table. | |
Re: If you are a student, then you shouldn't just request a project. You should show a little effor before we can offer to help you. Now, if you have ideas or code, post them. We can't do your homework for you. | |
Re: The correct sql statement would be: ("SELECT * FROM daftarpelajar WHERE '" & cbChoice.Text & "' Like '%" & txtSearch.Text & "%' ORDER by id_pelajar ", conn) | |
Re: You can get rid of the has rows, and try: [CODE] If myData IsNot Nothing Then Do While myData.Read 'Place your code here. 'Use GetValue instead of .toString Loop Else MsgBox("Empty Reader") End IF [/CODE] | |
Re: Can you please post the code that is throwing the error? | |
Re: You will have to read/write from a stream. If you use the File.IO methods, you are holding that file until the application exits. I know you might not have to worry about it from the regulars, but the anons might take advantage of the private information. You might want to … | |
Re: If you are deleteing the value from one table, you will have to also delete the value form the second table. | |
Re: If the column is a varchar, just simply store the value as you wish. If it is a numerical value, you can use decimal places to seperate the value. Example: 40.6 | |
![]() | Re: I must be totally lost, but didn't you answer you own question with the code you provided? Are you trying to link code to an external document? If so, just make the sub public and import the document on the document you wish to have the Undo. If not, you … |
Re: Is there a control on the form that the scroll bars are bound to? If not, are you expecting them to scroll the form's viewable area? | |
Re: You will have to work with the NET library. There is another post on the same subject [Here](http://www.daniweb.com/software-development/vbnet/threads/38368/get-local-ip-address) | |
Re: Just a question...Why are you declaring two connections? | |
Re: I think your problem may lie with the rowsTotal -1. Are you think of the rows as an array? | |
Re: There is a free extention for Visual Studio that does this. Open visual studio, and go to the extention manager. Go to online templates and look for Google GEO Pack 2010 | |
Re: Create an orders table to store the meta data of the order, and then store the order id in the customer table. | |
Re: You can force your delete/refresh by making the delete form modal and creating a sub procedure that will refresh the data in the parent form. | |
Re: For such a small deployment, I suggest using Click Once Deployment. You can deploy your application by publishing the application. The settings can be set in options for the desktop icon ect.. You will simply need to naviagte to the publish directory and then run the setup.exe in that directory. | |
![]() | Re: If the variable creation is in the loop, you are not disposing the bitmap before trying to create another with the same name. ![]() |
Re: [CODE]Form2.TextBox6.Text = Form2.TextBox6.Text & Form1.TextBox6.Text[/CODE] | |
Re: There is an alogorithm in a zip file [URL="http://www.dreamincode.net/forums/topic/24314-cpu-scheduling-algorithm/"]here.[/URL] | |
Re: Is SQL client required? If not, I can try to rewriting using an OLEDB client, which I am more famillar with. But this will require you to test it due to your database being local. | |
![]() | Re: Place the code in a try catch block [CODE] Try 'Your code here Catch ex As Exception MsgBox(ex.stacktrace.Tostring) End Try[/CODE] This will show the exact line that is throwing the error. Or, alternately. Test each value before performing the action. [CODE] If fontSelection.Text <> "" AND Document.SelectionFont.Size ISNOT Nothing AND … |
Re: You will need to search for the name in the database. Create a query then execute the query, fillng a table. After the table has been created, place the values and update the table. | |
Re: If the elements are stored in a database or Excel workbook, you can just pass it in with a loop. Where are you getting your data from? (If you can disclose that information) | |
Re: Be sure to close the thread if you have solved your issue. Thank you. | |
Re: You can use a date/time picker and date objects. For date objects you can try: [CODE] 'Create a date object. 'You can default the date to a date from the database. Dim datobj As Date = Now 'For 15 days from the day of execution. Dim nextPay As Date = … | |
Re: For question number 3, you can place picture boxes with the pictures in them. Hide all of the picture boxes and when the user checks a certain checkbox, change the picturebox to be shown. | |
Re: Have you made sure the the dll import points to the right dll in Windows XP? | |
Re: You will want to create a listview item, and then bind the .text of the listview item to a unique value(primary key) then build the item and add it to the listview. Example: [CODE] dim itmListView as New ListViewItem 'Random value, substitute it with your own. itmListView.Text = iamunique 'Next … | |
Re: If registry keys are not an absolute must, you can use the application settings to save all of the information. Example: [CODE] 'Where savedwidth has been added as a int in the application settings. Me.Width = My.Settings.SavedWidth 'Then for saving you can... My.Settings.SavedWidth = Me.Width My.Settings.Save() [/CODE] | |
Re: You can do this in vb [CODE] If IsDBNull(value) then 'Value is null, place code to handle here. End if [/CODE] | |
Re: If you are working with non database items, you can try parsing each item in the gridview. Like this: [CODE] dt2.rows('index') = dt1.rows('index') 'So, like this 'dt2.row(0) = 0 'dt1.row(1) = 15 dt2.rows(0) = dt.rows(1) dt2.rows(0) = 15 [/CODE] | |
Re: By copy/pasting into VS and creating my own dummy class of Sales I managed to get it working. Perhaps something wrong with other code in the same .vb file? | |
Re: Is your code wrapped in a loop somewhere? Can you please post a larger portion of the code so we can analyze it? | |
Re: [url]http://www.tamirgal.com/blog/page/SharpSSH.aspx[/url] | |
Re: You could create a library from the C# class. Then reference it to the vb.net project. | |
Re: My mind just threw a StackOverflowException from thinking about this. A high-level language, simulating a low level language, which is powered by a high level language, that gets converted to a low level language. | |
| |
Re: One easy way to find errors in code is to insert a break point. Then step over the code until you find where it it throwing the error. Hope this helps. | |
Re: Did you try removing the second [CODE] WebBrowser1.ScriptErrorsSuppressed = True [/CODE] And... [CODE] For abc = Cint(TextBox5.Text) To Cint(TextBox6.Text) Step 1 [/CODE] | |
Re: You could also use: [CODE] string.Split(New Char(","c) [/CODE] | |
Re: You can create a naming scheme, which you already have. Then generate that name on runtime. I am assuming you are using a database backend? If so, you can use a primary key as a varchar. Generate the key in application, on save, by: [CODE] dim datestr as string = … | |
Re: Would that not mess up when: [CODE] 6312 + 500 = 6812 \ 1000 = 6 * 1000 = 6000 6312 \ 1000 = 6 * 1000 = 6000 [/CODE] Or am I just missing some language side rounding method? | |
Re: Use [url]http://www.connectionstrings.com/[/url] And [URL="http://www.daniweb.com/software-development/vbnet/threads/407064"]This[/URL] | |
Hello my fellow Daniwebbers, I have a modest question for you. I have a panel, which contains child panels. I have code the alows the user to delete the selected panel, but can't figure out how to refresh the parent panel with the deleted panel gone. When I use the … | |
Re: Are you wanting to convert to ASP with VB.net or ASP with C#? There are two different code languages that drive ASP.net. | |
I have a question for all of my fellow Daniwebbers. If I place a panel within another panel, can I "click" the panel later? In other words, if I am able to click the panel, can I reference that panel in code for manipulation? Such as flipping or rotating the … | |
Re: You could do as hericles stated and just store a path reference into the database. You could get it application side and then assign it to a string. Then pass the string in to the database. You will have to make sure that everything is spelt correctly ect. | |
Re: Did you also notice you had 2 connection disposes for the same connection? [QUOTE] [CODE] con.Dispose() cmd.Dispose() con.Dispose() [/CODE] [/QUOTE] |
The End.