602 Posted Topics
Re: Hi, You could try something like: Private Sub EnableDisableMyControls (Optional ByVal bEnabled As Boolean =TRUE) NClose.Enabled = bEnabled CloseNote.Enabled = bEnabled CloseNoteContext.Enabled = bEnabled CloseNoteX.Enabled = bEnabled End Sub If tabC.TabCount =1 Then EnableDisableMyControls(TRUE) Else EnableDisableMyControls(FALSE) End if | |
Re: Have you set up the TblNotesTableAdapter with the necessary Access SQL command and connection etc? I would run in debug but before you go into the `For each Note` loop I'd check that `PsychologicalStateTrackerDataSet.tblNotes.Rows.Count > 0` i.e. you have data. Also what have you defined `Note` as? Looking at the … | |
Re: I've never worked with the Windows Music player before so here is a high level view of what I would do. You will need to store the tracks listing either in a file or database unless you can access directly from the player. Take a count of the track you … | |
Re: Do you really need it to be all entered in one go? It would be a lot easier to enter course by course... I would put the education levels into a dropdown list that the user select and the rest in text boxes that the user fills in. You would … | |
Re: The easiest way I can think of is to record each time a user enters a new page that way previous page entry - new page entry = time on page. The problem is though what if they stay on a single page then leave your site? You also wont … | |
Re: [how to make a trial version](http://www.daniweb.com/software-development/vbnet/threads/433040/how-to-make-a-trial-version) Is this a duplicate posting? | |
Re: The code given is looping through the listview Items and seeing if the sub item at index 3 ( which is column 4,) has the text that was entered in the textbox. | |
Re: You want to know when someone pressed caps lock in the rich textbox? Or just when caps lock is on and the rich textbox gets focus? To see what some pressed while in the rich textbox you should use the KeyDown or KeyPress events of the rich text box and … | |
Re: I haven't encountered this on 2010 but I have encountered similar on earlier versions - it used to occur when the version of the .NET Framework you were using had a newer service pack that the one Visual studio was trying to install e.g. 3.5 verses 3.5 sp1. It'd get … | |
Re: Hi, When exactly did this start happening? I see you are using an object Bentalls? Could this have been corrupted? | |
Re: Hi, What you are really asking is how to read POP3 emails through .NET. You would just pass in the Gmail account details to access (you should be able to get this information from Google as people configure Email apps like Outlook to do this all the time.) I found … | |
Hi All, Ever tried to make a change to a SQL database table only to get a message telling you it is unable to carry out the change as it would have to drop and recreate the table? This is one of these things that you encounter once, correct and … | |
Re: What selection mode is your datagrid using? If it is rowselect I think you will have use **SelectedRows** instead of **CurrentRow**, CurrentRow gets the row of the current selected cell but if you are using the rowselect mode you have not selected a cell but a row and so you … | |
Re: Are you developing in ASP .net? Why not use a label or link label and handle the click event in your code postback? | |
Re: Yes. Use visual studio. Under file you should see a create new project option, depending on which version you are using, (and if you installed the Visual basic option when you installed visual studio,) you should see a Visual Basic language option. Select /expand this and you will see a … | |
Re: Well On your config file you have a connection string called **Myconname** Your function, **GetConnectionString** appears to take in the **Name** of the connection and look for it in your app config file.. Think about the code you are using - **What is the String** that you are passing in … | |
Re: Your Select command does not bring back any primary key / identifer so the update does not know what record to update... | |
Re: Can you show the code where ReportProgress event is fired? Is your it being called by your classes? Are your Classes in the form/module/Class that the sub is in? You have declared the sub to be Private that means it can only be called by Routines in the same module/class/form … | |
Re: You need to specify the Delete command for your DataAdapter - you can do this inside your delete button or when you set it up. Another option is to run a SQL command with a delete statement. Your DataAdapter does not magically know how to delete data from the database. | |
Re: Basically, put a break point on the line where your SQL string is populated, go into debug mode - it will stop at the breakpoint, add a watch to the SQL string, copy the value for the SQL string out and paste on to the forum. | |
Re: Quick suggestion by default, if you place a date value with no time part midnight ie. 00:00:00 is assumed to be the time part. So if I'm doing a date compare like that, I add the time value "23:59:59" to my end date to ensure I catch any dates. Also, … | |
Re: No sure what you are trying to do, do you what a result that lists each first name then each second name used by the first name then each last name used by the combination of both or do you just want a list of distinct Firstnames, Middlenames, lastnames in … | |
Re: Hmmm... Tricky to answer with out a crystal ball! How long will your Masters course last? Who can predict what the big growth sectors will be? Remember the .Com bubble and burst? I'd say go what interests you first - If you are interested in it you will become good … | |
Re: > connectionstrings.com What string are you using? The default? I think though it may be a language/ locale issue as it is talking about the format of the string.. | |
Re: Depends if you are more comfortable with Databases or Interop. Alternatively, you could output as .csv easily enough just using the System.IO and Streamwriter.... | |
Re: Hi Once you have a dataset object you do not need to connect to anything. But you have to fill it first e.g. Dim DS As New DataSet Dim cmd As New SqlCommand Dim DA As SqlDataAdapter 'Assume you have set up a Sql connection MyConnection and a SQL Query … | |
Re: When doing the maths part convert the input text to type double: Sub Addition() dim Answer as Double If IsNumeric(input1.text) AndAlso Isnumeric(input2.text) then Answer = cDbl(input1.text) + cDbl(input2.Text) Output.Text = Answer Else Output.Text ="ERROR NON NUMERIC ENTRY" END IF End Sub Or else when faced with "250" + "7.5" the … | |
Hi, I've written a routine for a customer to import sales orders into their Sage system. Everything was going well but the client has come back with a particular excel sheet that is not importing. He is getting a message to tell him the sheet is not in a valid … | |
Re: Hmmm... First thing is I'd say this could be done a number of in different ways, really depends on what you are most comfortable with XML / XSLT or Parsing text etc. Either way, I would make each of "Tags" unique to the piece of data you are applying. The … | |
Re: Hi, I haven't done this for a few years but I'm fairly sure there is a `Worksheets.ActiveSheet` method or `.ActiveSheets(index)` or something like it.. | |
Re: Hi, I have no idea what level of expertise you have. But, looking at your message I'm going to guess you are just starting out. (If not, I apologise for stating the obvious). You need to create a connectionstring and use ADO.Net to pull the data back from the database … | |
Re: [Connectionstrings.com](http://www.connectionstrings.com) should give you the connection string format. You would use the name of the server on the domain (not necessarily same as website URL) - if you are getting a hosted solution then the host company should help you with these details. E.g. say I host my site at … | |
Re: I think it is because you are usng a sqladapter and then checking for tables - you are getting a table back but does it actually contain data? Or is it empty? I would use a SqlCommand object and run executescalar on it. Something like: dim sSQL as string ="SELECT … | |
Re: > Does any other religion retain its membership by threatening to kill anyone who leaves? Well the Christian Church did, Spanish Inquistion, Crusades, Burning of "Heratics" etc. ANY reglion can and IS frequently subverted to suit the political ends of those in power or who wish to gain power. | |
Re: Isn't that what the good reverend sugguested about 9 hours before you? | |
Re: Try Posting the code you use when you resize and we can have a look. | |
Re: So you want to have 50 checkboxes, one for each U.S. state and track who has been in what state. All a checkbox will tell you is if or not it is checked. not who did or didn't check it. Are you keeping a Dll file to hold who has … | |
Re: You would probably have to search the file system for the file, which is not a good idea as it could take ages. Why don't you include the report in your project and get it to install a copy with it that way you will know where it is. If … | |
Re: > I don't know why people still use Visual Studio 2008. Lots of reasons: For example, I work in a company the customises Sage Software, at the moment there is no need for us to upgrade to 2010 or 2012 as the Sage software is written on .NET 3.5 - … | |
Re: What part are you having a problem with reading the database? Or populating the listbox control? Post what code you have so far, where does it fall over? | |
Re: Hmmm... Never used these before but when you debug me.TimePlayer1 what do you get? Is it the full date and time value or just a time value? I suspect it is passing just a time value and substituting the current date hence you are stuck in a 24 hour period. | |
Re: You should be able to upload binary files to sqlserver - one of the binary field types such as image should let you. Should also be examples on this dotted about the net - you may have to open the file the reader generates as a bit stream and then … | |
Re: I think Visual Studio 2010 uses .Net 4.0 by default, I've never used Studio express but on the full version, Under project the properties properties page there should be an area to tell you what version of the framework you are designing for. Also, in the full version you can … | |
Re: I suggest asking the lecturer how he wishes you to supply it. Anaother alternative is to make all links relative and create a deployment project and deploy to the CD. I take it you have a database? If it is Access include it in the project output and make your … | |
Re: Hi I take it `txt16.Text` actually contains text just I can't see it being populated. Also you appear to want the results in a table, why not use a dialog form instead? You could remove its cancel button and use a datagrid to display the text you need - it … | |
Re: Date formatting issues can be a real pain... if your database and computer have different date formats it can lead to all kinds of interesting stuff, dd/mm/yyyy vs mm/dd/yyyy even then you can still get different interpretations I always try to format any date or date time value into a … | |
Re: You could specify and update command for your Dataset like this [Updating Database with a DataAdapter](http://msdn.microsoft.com/en-us/library/33y2221y(v=vs.71).aspx) OR something like this: dim cmd as new OLEDBCommand With cmd .connection = myconnection .CommandType = CommandType.Text .Text = "MyUpdate Query" end With cmd.ExecuteNonQuery | |
Re: Hi you're on the right path but the syntax for INSERT is different instead of `ColumnName = Value` you do it like this: INSERT INTO TableName(Column1,Column2) VALUES (@Column1, @Column2) | |
Re: You'd need to know how **exactly** the php method encrypts the password. It's like asking someone to translate from English to Manderin Chinese unless you can speak both fluently and know the grammatical rules etc. then you've no chance. I suspect that the **exact** method used by the PHP is … |
The End.