229 Posted Topics

Member Avatar for mrkm1188

Hi Are you sure that the path to the files is correct? Have you tried to step through the code and see if you are even entering the block of code that determines if the directory exists? My thoughts are that it does not as I have tested your scenario …

Member Avatar for djjeavons
0
140
Member Avatar for 68thorby68

I second Ubuntu. I love it as an OS and it works very well on older hardware. If you are after aesthetics then an air. The thing I found however is that the cost of Macs v Laptops is very big with Macs (obviously) being the more expensive.

Member Avatar for XP78USER
0
237
Member Avatar for Azii

Hi I haven't used Oracle so this may not be correct, but you might be able to use something like the following: `INSERT INTO t1 (c2, c3, c4) SELECT c2, c3, c4 FROM t2` You might need to tweak it a bit. HTH

Member Avatar for Azii
0
187
Member Avatar for wilsonchama

Hi It sounds like you have the View property of your ListView set to LargeIcons or one of the icon views. Change this property to List and each item will be placed below when the button is pressed. Also, you do not need to use the ListViewItem to add items …

Member Avatar for wilsonchama
0
1K
Member Avatar for vinod.p
Member Avatar for JorgeM
0
70
Member Avatar for rola theo

Hi I haven't looked all through your code and may be wrong but you mention doing SUM, MAX and MIN on the data. Can I suggest you use ADO.NET for this, much better than using COM for this scenario. This snippet (https://www.daniweb.com/software-development/csharp/code/492766/display-excel-data-in-a-datagridview) shows how to do a basic SQL select …

Member Avatar for rola theo
0
5K
Member Avatar for Blueie

> And why this 'Name' at the end? Isn't that just a label? That is part of the [String.Format](https://msdn.microsoft.com/en-us/library/system.string.format%28v=vs.110%29.aspx) method. The {0} is the placeholder and the variable Name contains the value so that the full string becomes "~/thankyou.aspx?yourname=whatever_the_name_variable_holds"

Member Avatar for Blueie
0
157
Member Avatar for AJN25

Hi If you want to display two columns of data and assuming this is a Windows Forms application then maybe using the ListView control would be a better approach. HTH

Member Avatar for AJN25
0
367
Member Avatar for Moon15

Hi What code have you got so far? Show us that and we can help you to break the problem down. To get you started (if you haven't already), look at using the [StreamReader](https://msdn.microsoft.com/en-us/library/system.io.streamreader%28v=vs.110%29.aspx) to read your text file. Then the [String.Split](https://msdn.microsoft.com/en-us/library/system.string.split%28v=vs.110%29.aspx) method to read each number for a line. …

Member Avatar for djjeavons
0
336
Member Avatar for Madhu_5

Hi Assuming you are using VB.NET as you have posted this in the Visual Basic old forum then you can use the [My.Computer.Audio](https://msdn.microsoft.com/en-us/library/081ed2x7.aspx) object to play sound. HTH

Member Avatar for djjeavons
0
220
Member Avatar for djjeavons

This snippet demonstrates how you can add VBA code to an Excel file at run time. **Prerequisites** In this snippet I am using Microsoft Excel 2013 with the Microsoft Excel 15.0 object library. Before you can use this code, you will have to change a setting within Microsoft Excel to …

0
2K
Member Avatar for Senthil_6

Also, you date should be enclosed in # characters and your text in ' characters, so `INSERT INTO SAMPLE (DOJ,DESIGNATION)VALUES(#" & DATETIMEPICKER1.VALUE &"#,'"&COMBOBOX1.TEXT&"')"` Or better yet, use parameterised queries: cmd=new oledbcommand(INSERT INTO SAMPLE (DOJ,DESIGNATION)VALUES(?, ?)",CON) cmd.Parameters.AddWithValue("?", YourDatePicker) cmd.Parameters.AddWithValue("?", YourComboBox) cmd.ExecuteNonQuery() to avoid the need to enclose field values in special …

Member Avatar for djjeavons
0
199
Member Avatar for happygeek

Well, I'm not a rugby fan (although slowly getting into it), but my drinking buddy is. He is an ex rugby player (and sports the looks), Irish to boot and I'm going to watch the game with him tomorrow, it's gonna be messy, much alcohol will be consumed :)

Member Avatar for XP78USER
0
316
Member Avatar for Joemeister

Hi I tried your script, first time I had to omit the DROP EliteShop statement as that did not exist (of course) and it ran fine. I then put the DROP EliteShop back in and ran the statement and again, it ran fine. I am running SQL Server 2014. I …

Member Avatar for erikko
0
285
Member Avatar for Yaw_1

Hi Does your Checmical, SupplierTable, OrderTable and ChecmicalUsage tables all have the same table definition? That is, do they all contain the same fields? If so, you should use a UNION query to combine all of the data from the multiple tables into one return table. Something like: SELECT * …

Member Avatar for Yaw_1
0
338
Member Avatar for Christian_4

Hi > can you please debugg it for me thank you :D have a nice day We won't be able to debug it for you as we don't have your code or the database. However, looking at the field name Mem_ID would suggest that this is a numeric field, is …

Member Avatar for Christian_4
0
330
Member Avatar for AndrewBone

Hi You can use GetRef to do this, for example: Dim arrMySubs(3) arrMySubs(1) = "Sub1" arrMySubs(2) = "Sub2" arrMySubs(3) = "Sub3" Dim count count = 3 Dim f 'Function variable Set f = GetRef(arrMySubs(count)) f Sub Sub1() MsgBox "Hello from Sub1" End Sub Sub Sub21() MsgBox "Hello from Sub2" End …

Member Avatar for djjeavons
0
97
Member Avatar for iamthwee

I'm a .NET guy so my primary OS has to be Windows, but I've been using Ubuntu as my main system for the last year and I love it. I have NetBeans installed for learning Java, and the Python stuff is great (still learning the basics). I use VMware player …

Member Avatar for iamthwee
1
225
Member Avatar for mbarandao

Hi There is probably a more elegant solution (I'm no JS expert), but the following provides the output that you mention: var myString = '[null,null,null],["Paul","2293",1],["eric","2099",0]'; //Get first set of data var set1 = myString.substring(myString.indexOf("[") + 1, myString.indexOf("]")).split(","); //Remove set1 from myString myString = myString.replace('[' + set1 +'],', ''); //Get second …

Member Avatar for mbarandao
0
510
Member Avatar for coder91

Hi You can check your query string parameter to see if it matches one of the items in the list that is about to be appended to the StringBuilder and if it is, add the class attribute. The following is an example that I created based on your concept, but …

Member Avatar for BMXDad
0
643
Member Avatar for marvin_1

Hi Why would you want to do this? To what purpose? It is generally bad practice to stop the user from being able to control their own machine. Also, this type of code can be used for malicious purposes (not suggesting that is your intent) and if given the solution, …

Member Avatar for djjeavons
0
620
Member Avatar for coder91

Hi I haven't used the GridView Caption property before but I am assuming that this adds some form of title to the GridView which could span the number of columns? Is that correct? If so, adding this data to a CSV file would break the structure as it is not …

Member Avatar for djjeavons
0
201
Member Avatar for Liwons

Hi How are you trying to connect to the database? Is it DAO, ADO? What version? Also, what version of Access did you use to create the database?

Member Avatar for mridul.ahuja
0
127
Member Avatar for jamshed ahmed

Hi Are you sure it is stating Object Reference Not Set as I would expect it to throw an System.ArgumentOutOfRangeException. The reason being is that you are loop through each row of the DataTable via an Integer index (so always 1 - 12 in your example), but each time you …

Member Avatar for Reverend Jim
0
392
Member Avatar for Emma Etigu

Hi Can you post the code that you are currently using? Usually, if you are just looking to grab some data I would recommend using an [OleDbDataReader](https://msdn.microsoft.com/en-us/library/system.data.oledb.oledbdatareader%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396) which can be implemented along the lines of: Dim connectionString As String = "Your connection string" Dim connection As New OleDbConnection(connectionString) Dim command …

Member Avatar for zizo.ahmed.779
0
569
Member Avatar for Bashar_1

Hi I don't belive the input box supports this. You could however create a form that has a text box on it with it's PasswordChar property set and use this in place of the input box. HTH

Member Avatar for mridul.ahuja
0
891
Member Avatar for lyca

Hi It looks like your WHERE criteria contains a value with an apostraphe so your SQL statement is breaking as the criteria itself needs to be enclosed within apostraphes. You can either use parameterised queries or escape your search criteria. For example `"SELECT * from tblbooks where " & cmbsearchbook …

Member Avatar for lyca
0
281
Member Avatar for Liwons

Hi It would help if you could clarify what you mean by providing as much information as possible. I'm going to assume that you mean that you want to ask the user if they want to delete and if they say yes then you do the delete. If this is …

Member Avatar for djjeavons
0
119
Member Avatar for Liwons

Hi Your field name should be enclosed in square brackets as it contains a space: `.Findfirst "[ACCOUNT NO] LIKE '" & searchvar & "*'"` HTH

Member Avatar for djjeavons
0
292
Member Avatar for coder91

Hi What is datasource and how is it populated? The first thing that springs to mind is that you are not checking if the page is posted back so you are always recreating the GridView. Add a check for postback before applying that code: If(!Page.IsPostBack) { //your code here } …

Member Avatar for coder91
0
650
Member Avatar for nimz143

Hi That link points back to this page so not sure which tutorial you are currently following. In terms of what is a stored procedure, it is simply a prepared SQL statement that can be executed multiple times. For example, imagine that you have a table storing contact information (ID, …

Member Avatar for nimz143
0
274
Member Avatar for nimz143

Hi This error usually indicates that your partial class is not named correctly for some reason. Usually, when you have a web form there are two files: Default.aspx - this is your designer file that contains the HTML etc. Default.aspx.vb -this is your code behind file that contains your server …

Member Avatar for nimz143
0
2K
Member Avatar for nimz143

Hi If you are new to .NET then I would recommend that you first start by learning the basics of the Framework and the VB.NET language before diving into creating a web application with databases. Having said that however, if you are do jump straight into it then I would …

Member Avatar for nimz143
0
389
Member Avatar for Trench37716

Hi Can you provide your table structures and an example of the data in each. It would make modifying your SQL statement a lot simpler and thus being able to help you a lot easier.

Member Avatar for Trench37716
0
202
Member Avatar for jez9

Hi I don't quite understand. If your database is deleted and you don't have a backup then your out of luck. There is no magic software solution that will get it back. Well, there is if you want to discuss data recovery tools etc. but I don't believe that is …

Member Avatar for jez9
0
243
Member Avatar for Budy_2

Hi The reason for the syntax error is that you have not surrounded any of your values with the correct tokens. By that I mean that a string value must be surrounded by an apostraphe, a date (in Access) with a # character and numerics with nothing. So for example …

Member Avatar for Budy_2
1
2K
Member Avatar for singh.ranjeet

I doubt the OP is even watching this thread considering he hasn't posted for a couple of years :)

Member Avatar for JOSheaIV
-1
2K
Member Avatar for Spark_2

Hi I think you may be approaching this in slightly the wrong way. Instead of looking to have the addItem form communicate with the invMain form, you really want to have the invMain form ask the addItem form for it's data. For example, add the following three properties to your …

Member Avatar for Spark_2
-1
481
Member Avatar for LibraryCode

Hi Why would you want to avoid a default statement? Do you have some code to demonstrate what you mean and why you would want to do this? One way of avoiding a default statement in a switch is to simply not have one. What result that will have on …

Member Avatar for ddanbe
0
179
Member Avatar for marvin_1

Same reply as [your double post](https://www.daniweb.com/community-center/threads/492770/lock-screen-)

Member Avatar for djjeavons
-1
64
Member Avatar for marvin_1

Is this in relation to your [research lab program question](https://www.daniweb.com/software-development/vbnet/threads/492768/disable-alt-tab-help)? We can't give code to do this type of stuff. For this specific scenario, I assume both computers are on the same network and mom owns the PC's. Get Mom to remote desktop into sons computer then she has control …

Member Avatar for djjeavons
0
173
Member Avatar for bdaunno

Hi Wow, several hours to load, how big is this file? If you only need to import it once but reuse it as and when, have you considered using a database. This would be a lot more performant than working with an XML file, especially a very large one. If …

Member Avatar for cgeier
0
339
Member Avatar for RikTelner

Hi It is still somewhat unclear as to what you want to do. I think you are asking how to update variables in your main program with the results from methods in your class called Class? Is that correct? Can I make a constructive suggestion, don't name your classes Class, …

Member Avatar for RikTelner
0
177
Member Avatar for billybob2022

Hi You would probably need to use the AddRange method to add to the ArrayList. However, why use an ArrayList when you could use a StringCollection for this. For example, change your ButtonValues type to `System.Collections.Specialized.StringCollection` in your properties and then add the following to your Form Load event: If …

Member Avatar for djjeavons
0
423
Member Avatar for oren.turgeman.9_1

Hi What is the actual error that you get? Also, you might want to consider using ADO.NET to do this which would remove the dependency on using the Excel Interop libraries. I can provide an example if that is of interest to you.

Member Avatar for JOSheaIV
0
310
Member Avatar for Joemeister

Hi The reason for the error "myBikeList does not exist in the current context" is a matter of scope. At the moment, you have declared the myBikeList variable within the foreach loop, once that loop is completed, the myBikeList variable will be out of scope so not available to code …

Member Avatar for Joemeister
0
277
Member Avatar for Sheeraz_1

Hi What are you trying to do? What code other than `string imgloc="";` do you have? If you are tyring to update a database record but don't have an image then use DBNull if your field accepts nulls. Otherwise, please provide more information.

Member Avatar for TekknoDraykko
0
287
Member Avatar for Gtitz

Hi What have you done so far? Where are you stuck? We are happy to assist, but not to do the project for you.

Member Avatar for djjeavons
0
45
Member Avatar for Quast

Hi Have a look at the [SelectionFont](https://msdn.microsoft.com/en-us/library/system.windows.forms.richtextbox.selectionfont(v=vs.110).aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-2) property, this will allow you to set the font to bold for either the selected text, or any text after the insertion point. HTH

Member Avatar for TekknoDraykko
0
154
Member Avatar for LukeJWhitworth

Hi You would probably need to use a number of Win32 API's to achieve this, such as [PostMessage](https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944%28v=vs.85%29.aspx). This would require that you knew the handle of the window you wanted to post data too which can be done using [FindWindow](https://msdn.microsoft.com/en-us/library/windows/desktop/ms633499%28v=vs.85%29.aspx). I did come across a Code Project article that …

Member Avatar for djjeavons
0
160

The End.