458 Posted Topics

Member Avatar for Brandy_1

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 = …

Member Avatar for Brandy_1
0
290
Member Avatar for santoshjaiswal

A valid e-mail address contains "@" (ex: username@domain). I don't see that in your post.

Member Avatar for cgeier
0
49
Member Avatar for dimi231080

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

Member Avatar for cgeier
0
684
Member Avatar for Papa_Don

VBA is not VB .NET. [Visual Basic for Applications](http://en.wikipedia.org/wiki/Visual_Basic_for_Applications)

Member Avatar for Papa_Don
0
5K
Member Avatar for Rabastan

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.

Member Avatar for cgeier
0
1K
Member Avatar for bigredaltoid

**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; } …

Member Avatar for bigredaltoid
0
252
Member Avatar for Kellypyz

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".

Member Avatar for cgeier
1
254
Member Avatar for suria.kunanathan
Member Avatar for iConqueror

[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)

Member Avatar for cgeier
0
109
Member Avatar for bananacat

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 …

Member Avatar for cgeier
0
391
Member Avatar for Violet_82

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)

Member Avatar for Violet_82
0
198
Member Avatar for xuexue

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/)

Member Avatar for xuexue
0
2K
Member Avatar for PM312

[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)

Member Avatar for PM312
0
1K
Member Avatar for Joshua_6
Member Avatar for eatyourgreens

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 …

Member Avatar for Hiroshe
0
645
Member Avatar for Blueie

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 …

Member Avatar for Blueie
0
606
Member Avatar for Quast

[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)*

Member Avatar for Quast
0
133
Member Avatar for Riteman

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 …

Member Avatar for Riteman
0
393
Member Avatar for Brandy_1
Member Avatar for jakizak
Member Avatar for mbowenitj

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/)

Member Avatar for mbowenitj
0
283
Member Avatar for Varunkrishna

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")] …

Member Avatar for cgeier
0
1K
Member Avatar for ccdsystems

[Collation and Unicode Support](http://msdn.microsoft.com/en-us/library/ms143726.aspx)

Member Avatar for ccdsystems
0
1K
Member Avatar for Bill_6

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 …

Member Avatar for mouaadable
0
178
Member Avatar for oren.turgeman.9

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)

Member Avatar for tinstaafl
0
583
Member Avatar for arvinrrnhine

You haven't set `txttotal.Text = ""` or `txttotal.Text = Nothing`in "txtamount_TextChanged" or "txtquantity_TextChanged" if txtamount or txtquantity is null or empty.

Member Avatar for cgeier
0
194
Member Avatar for renn.lin

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 …

Member Avatar for cgeier
0
858
Member Avatar for theashman88

[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 …

Member Avatar for cgeier
0
282
Member Avatar for Leftic

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.

Member Avatar for cgeier
0
436
Member Avatar for enrique.mansilla.908

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 …

Member Avatar for enrique.mansilla.908
0
193
Member Avatar for Bendez Thyna

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, …

Member Avatar for Bendez Thyna
0
304
Member Avatar for krunal1986

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)

Member Avatar for krunal1986
0
337
Member Avatar for airhalynn101

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 …

Member Avatar for cgeier
0
376
Member Avatar for Bendez Thyna

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").

Member Avatar for Bendez Thyna
0
617
Member Avatar for babbu

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)

Member Avatar for cgeier
0
191
Member Avatar for JOSheaIV

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) …

Member Avatar for Ketsuekiame
0
216
Member Avatar for tshoop

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)

Member Avatar for cgeier
0
219
Member Avatar for khakilang

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)

Member Avatar for khakilang
0
270
Member Avatar for ACE--

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 …

Member Avatar for cgeier
0
10K
Member Avatar for maekhel

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 …

Member Avatar for maekhel
0
584
Member Avatar for BrandonRichard

[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.

Member Avatar for cgeier
0
228
Member Avatar for cunnijo

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 * …

Member Avatar for cunnijo
0
226
Member Avatar for vbshad

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 …

Member Avatar for cgeier
0
253
Member Avatar for gwmang0k

Use another do-while loop (ie: use nested do-while loop) do{ do{ ... case 1: ... case 2: ... }while(....); }while(....);

Member Avatar for Angus_1
0
542
Member Avatar for Cameronsmith63

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 …

Member Avatar for cgeier
0
478
Member Avatar for GagaCode

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.

Member Avatar for cgeier
0
139
Member Avatar for rikb53

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.

Member Avatar for Reverend Jim
0
232
Member Avatar for RatulCN

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.

Member Avatar for Mya:)
0
106
Member Avatar for Aphila

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.

Member Avatar for cgeier
0
149
Member Avatar for Affable zaki

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;

Member Avatar for cgeier
0
159

The End.