458 Posted Topics
Re: It's best to post your code, as some people don't want to download unknown files to their computer. Your original code: Module Module1 Sub Main() 'Declarations Dim intC As Integer = 0 Dim intF As Integer = 0 'Display Console.WriteLine("C F") Console.Read() Do If intC > 100 Then intF = … | |
Re: A valid e-mail address contains "@" (ex: username@domain). I don't see that in your post. | |
Re: Try adding the following: `DataGridView1.DataSource = Nothing` to datagridview_load Public Sub datagridview_load() 'Loads the data into the datagrid table' 'prevents duplicates DataGridView1.DataSource = Nothing mysqlconn = New MySqlConnection mysqlconn.ConnectionString = "server=localhost;userid=root;password='';database=doctorsuite" Dim sda As New MySqlDataAdapter Dim bsource As New BindingSource ... End Sub | |
Re: VBA is not VB .NET. [Visual Basic for Applications](http://en.wikipedia.org/wiki/Visual_Basic_for_Applications) | |
Re: In line 43, remove "ByVal". Changing from: lRet = SystemParametersInfo _ (SPI_SETSCREENSAVETIMEOUT, lSeconds, ByVal 0&, _ SPIF_UPDATEINIFILE + SPIF_SENDWININICHANGE) To: lRet = SystemParametersInfo _ (SPI_SETSCREENSAVETIMEOUT, lSeconds, 0&, _ SPIF_UPDATEINIFILE + SPIF_SENDWININICHANGE) works for me. | |
Re: **movementClass.cs:** Add the following "using" statements: `using System.Drawing;` and `using System.Windows.Forms;` public static class movementClass { public static void moveLeft(PictureBox moveBox) { Point p = moveBox.Location; p.X -= 20; moveBox.Location = p; } public static void moveDown(PictureBox moveBox) { Point p = moveBox.Location; p.Y += 20; moveBox.Location = p; } … | |
Re: It is most likely "ToString". Delete ".ToString()" and ".ToString" from each line. example: Change from: grade = Me.DataGridView1.Rows(i).Cells("grade").Value.ToString() To: grade = Me.DataGridView1.Rows(i).Cells("grade").Value I'm not sure what your columns represent, but it appears to not be normalized. To learn more about dateabase normalization, search for "database normalization". | |
Re: [Explicit Numeric Conversions Table (C# Reference)](http://msdn.microsoft.com/en-us/library/yht2cx7b.aspx) [Casting and Type Conversions (C# Programming Guide)](http://msdn.microsoft.com/en-us/library/ms173105.aspx) | |
Re: My opinion is that you should only maintain a resource as long as you need it. I recommend seeing the tutorial on form to form communication if you have data that is passed between forms. Also, close/dispose of objects you are not actively using. When an application/program makes users computers … | |
Re: It's in "javax.swing.JList". See the documentation for more info: [JList](http://docs.oracle.com/javase/8/docs/api/javax/swing/JList.html) | |
Re: The poster stated she is using DB2, not SQL Server. [SqlConnection Class](http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.aspx) *Represents an open connection to a SQL Server database* Use ODBC or OleDB. [Connection Strings](http://www.connectionstrings.com/) | |
Re: [Microsoft Office 2010: Primary Interop Assemblies Redistributable](http://www.microsoft.com/en-us/download/details.aspx?id=3508) [Office Primary Interop Assemblies](http://msdn.microsoft.com/en-us/library/15s06t57.aspx) | |
Re: What's the data type of the column in your database? | |
Re: You can do the following: Add `Imports System.Text.RegularExpressions` Create a class named "VideoInfo.vb". **VideoInfo.vb:** Public Class VideoInfo Public Property videoNumber As String Public Property name As String Public Sub New() End Sub Public Sub New(ByVal videoNumber As String, ByVal name As String) Me.videoNumber = videoNumber Me.name = name End Sub … | |
Re: I am able to replicate this error if I enter: Protected Sub Page_Load(ByVal sender As Object, _ ByVal e As System.EventArgs) End Sub Protected Sub Page_Load(ByVal sender As Object, _ ByVal e As System.EventArgs) End Sub In the above code this error occured because it is defined more than once … | |
Re: [Subtitle Editor 3.3.15 Changelog](https://github.com/SubtitleEdit/subtitleedit/releases) *Installer version, .NET 2-3.5, 32-bit (will run on win 64-bit too, but needs 32-bit codecs/VLC)* | |
Re: It appears that you are creating a new instance of Form2 which is why your data is not updated. What do you consider a "Preview". A copy of the form that can be modified? Or an image of the form that one can look at? If you are looking to … | |
Re: If you right-click the file and "Send To" => "Compressed (Zipped) Folder", you can attach it. | |
Re: What are you using to view the initial web page? | |
Re: Your connection string is incorrect. Should be: `"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Video Rental System\DvDSystem1.accdb"` Also add the following: `Catch ex As OleDB.OleDbException` [Access Connection String](http://www.connectionstrings.com/access/) | |
Re: You can use XMLSerializer. To hold the data from the XML file, I use two classes. I will call them "UserListInfo.cs" and "UserInfo.cs"--you can name them anything you want (it is possible to specify that the element name is different from the class name). **UserInfo.cs:** * Add `using System.Xml.Serialization;` [XmlRootAttribute(ElementName="user")] … | |
Re: [Collation and Unicode Support](http://msdn.microsoft.com/en-us/library/ms143726.aspx) | |
Re: It may not be an NTFS or FAT/FAT32 partition. Open a cmd window and type the following: diskpart DISKPART> list disk by looking at the size figure out which disk # you are interested in. Example: (I've decided I'm interested in disk 1) DISKPART> select disk 1 DISKPART> detail disk … | |
Re: Can read data into a DataTable, manipulate it, then save it back to the file. [How to read a CSV file into a .NET DataTable](http://stackoverflow.com/questions/1050112/how-to-read-a-csv-file-into-a-net-datatable) | |
Re: You haven't set `txttotal.Text = ""` or `txttotal.Text = Nothing`in "txtamount_TextChanged" or "txtquantity_TextChanged" if txtamount or txtquantity is null or empty. | |
Re: First of all, I've found the following related to the provider "MSDAORA" (Microsoft OLE DB Provider for Oracle): [Microsoft OLE DB Provider for Oracle](http://msdn.microsoft.com/en-us/library/windows/desktop/ms675851(v=vs.85).aspx) *"...This feature will be removed in a future version of Windows. Avoid using this feature in new development work, and plan to modify applications that currently … | |
Re: [checked (C# Reference)](http://msdn.microsoft.com/en-us/library/74b4xzyw.aspx) *"...By default, an expression that contains only constant values causes a compiler error if the expression produces a value that is outside the range of the destination type. If the expression contains one or more non-constant values, the compiler does not detect the overflow..."* *"...By default, these … | |
Re: This can happen with improper usage of backgroundworker. You can use properties and/or constructors to pass data to your class. I'm confused. Can you post your code. Or portions of your code that include the relavent information. | |
Re: Try changing: Private allInventory As New Inventory To: Private allInventory As New List(Of Inventory) Add `allInventory.Add(objInventory)` here: ... 'Display data in text boxes. DisplayInput(objInventory) '-------------------------- ' Add objInventory to list '-------------------------- allInventory.Add(objInventory) 'Display inventory number in list box. lstInventory.Items.Add(objInventory.InventoryNumber) ... Change: For Each InventoryNumber In allInventory lstInventory.Items.Add(InventoryNumber) Next To: For … | |
Re: You haven't fixed your original problem. In your first post you do the following (line 34): Dim stringrecord As String The next time you reference "stringrecord" is in line 60: stringfield =stringrecord .Split(",") "stringrecord" is null because it hasn't been set to any value. It should be: stringfield =strline.Split(",") Additionally, … | |
Re: Is your Win 8.1 32-bit or 64-bit? What version of Outlook (year and 32-bit or 64-bit)? [Developing Outlook 2010 Solutions for 32-Bit and 64-Bit Systems](http://msdn.microsoft.com/en-us/library/gg549122(v=office.14).aspx) | |
Re: I think that you left out some "details". **In menu:** * Click "File" * Select "Add" OR **In solution explorer:** * Right-click "Solution" **The remaining steps are the same for either:** * Select "Add" * Select "New Project" * Double-click "Other Project Types" (to expand it) * Double-click "Setup and … | |
Re: I would say because class "resultex" is missing `Namespace My` which happens to be referenced in line #23 in "MyApplication" (`Me.MainForm = My.Forms.MainForm`). See line #11 & #27 in "MyApplication" for the placement (the position it should be in within "resultex"). | |
Re: Using methods in `System.IO`. Add `using System.IO;` [System.IO Namespace](http://msdn.microsoft.com/en-us/library/system.io(v=vs.110).aspx) | |
Re: You haven't show your declaration for "ImageCenterLock". I haven't used lock, but you should only maintain your lock as long as you need it. I'm not familiar with the implementation of lock in C#, but I believe your issue may be because you are returning before releasing the lock. [return](http://msdn.microsoft.com/en-us/library/1h3swy84.aspx) … | |
Re: Run chkdsk, but after that: [How do I reset Windows Update components?](http://support.microsoft.com/kb/971058) [Troubleshooting problems with installing updates](http://windows.microsoft.com/en-us/windows/troubleshoot-problems-installing-updates#1TC=windows-8) [Fix Microsoft Windows Update Issues](http://support.microsoft.com/gp/windows-update-issues/en-gb) [Redesigning chkdsk and the new NTFS](http://blogs.msdn.com/b/b8/archive/2012/05/09/redesigning-chkdsk-and-the-new-ntfs-health-model.aspx) | |
Re: Ensure that the "Shutdown" option is not configured to restart the computer. * Right click the "Start button" (Windows globe) * Select "Properties" * Click "Start Menu" * Ensure "Power Button Action" is "Shutdown" (not restart) | |
Re: The following has been tested and should work: Requires the following: **Add reference to "Microsoft Word xx.x Object Library":** * Click "Project" * Select "Add Reference" * Click "COM" tab * Select "Microsoft Word xx.x Object Library" **Add import statements:** * Imports System.Runtime.InteropServices * Imports Word = Microsoft.Office.Interop.Word Private Sub … | |
Re: That's not how it works in the real world. You need to identify your requirements and then figure out how to translate that into a program. How does one do that? Here are some steps to get you started: 1. Get a copy of your transcript--so you know what one … | |
Re: [How to: Save, Load, and Print RichTextBox Content](http://msdn.microsoft.com/en-us/library/aa970917(v=vs.110).aspx) **Note:** Notepad doesn't handle rich text. WordPad does though. | |
Re: Mouse issue: Try the following: **Turn off hybrid sleep:** * Control Panel * View by: Small Icons * Power Options * Change Plan Settings * Change advanced power settings * Expand "Sleep" (by clicking the "+") * Expand "Allow hybrid sleep" (by clicking the "+") * On battery: Off * … | |
Re: Check your recycle bin to see if it is there. Otherwise you may be able to recover the file using data recovery software. You will want to stop using the drive that contains the data until you recover the file, as further usage may overwrite the file that you are … | |
Re: Use another do-while loop (ie: use nested do-while loop) do{ do{ ... case 1: ... case 2: ... }while(....); }while(....); | |
Re: It seems like a no-brainer to develop using the .NET version that you plan on using to run the program, because new features are added in newer versions. Either install .NET 4.5 on the server, or install the .NET version you plan on using to run the program, on your … | |
Re: That's because every time your event (TextChanged) occurs you are calling the "Add" method. You should only add the binding if it doesn't already exist. | |
Re: I don't think anyone has any idea what you are talking about. What is "real excel"? There are tons of examples on how to create excel files on the net. Present some code, or at least some pseudo code of what you are trying to do. | |
Re: Check manufacturer website for driver update. If no update exists, re-install the existing driver. Also, try removing from device manager and letting the OS re-install the device. | |
Re: Pass the info in the constructor and choose the correct tab using code in the constructor or use form communication--see the tutorial for form comunication. | |
Re: Are you using "System.Windows.Forms.WebBrowser"? If so, try the following: System.Windows.Forms.WebBrowser myWebBrowser = null; //disable script errors this.myWebBrowser.ScriptErrorsSuppressed = true; |
The End.