476 Posted Topics
Re: You can do this. Add the breakpoint, then right-click on the mark and select Location. In the dialog-box that pops up, check the box "Allow the source code to be different from the original version". Hit OK. That should work. | |
Re: It's seems so. Have you tried google, keywords VB.NET AND partitioning? Perhaps you'll find something there to help you. | |
Re: You should have a look into the third-party component [URL="http://www.gemboxsoftware.com/GBSpreadsheet.htm"]GemBox.SpreadSheet[/URL]. I'm using it myself, and it's very very fast. | |
Re: This [URL="http://www.codeproject.com/KB/cs/SendKeys.aspx"]project[/URL] might be of use. | |
Re: Dude. Wrong forum. But those errors seem pretty obvios to me. Examine the code at lines 116, 117 and 118. | |
Re: Control arrays is almost non-existant in .NET, so therefore I replaced the label array and the List control with a DataGridView. [CODE] Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim path As String = Application.StartupPath & "\Test_data.csv" Dim stream As System.IO.FileStream = Nothing Dim reader … | |
Re: First. In the form load event, add this line: targetPictureBox.AllowDrop = True For the source picturebox, add this method: [CODE] Private Sub sourcePictureBox_MouseDown(ByVal sender As Object, ByVal e As MouseEventArgs) Handles sourcePictureBox.MouseDown Dim pic As PictureBox = DirectCast(sender, PictureBox) pic.DoDragDrop(pic.Image, DragDropEffects.Move) ' Or if you prefer to just copy the … | |
Re: This is an example of how to use the BETWEEN condition in an SQL query. [CODE=SQL] SELECT * FROM orders WHERE order_date BETWEEN to_date ('2010/01/01', 'yyyy/mm/dd') AND to_date ('2010/01/30', 'yyyy/mm/dd' [/CODE] | |
Re: You need to embrace the word DOWN in braces: SendKeys("{DOWN}"). [URL="http://www.radiosky.com/rjp3/rjp3help/sendkeys_reference.htm"]SendKeys Reference[/URL] | |
Re: If you don't use the username than you need something else to limit the results from the database query, like name and/or surname. SELECT * FROM table WHERE name = 'john' AND surname = 'smith' | |
Re: Here's a better way. There's really only need for one timer for the delay, if you set at high enough interval you also wont get any "cross calling" for the Tick event: [CODE] Imports System.Data.SqlClient Imports System.Data Imports MySql.Data.MySqlClient Public Class MainForm Private Sub Timer1_Tick(ByVal sender As Object, ByVal e … | |
Re: If the file you're trying to read is a textfile, then you can use the TextReader's ReadLine method. Try this and see if it helps. [CODE] TextReader reader = New StreamReader("<file to read>"); string line = ""; int startReadingHere = <enter line number here>; int lineIndex = 0; int readLines … | |
Re: You need to change the projects manifest file a bit. [CODE=XML] <?xml version="1.0" encoding="utf-8"?> <asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <applicationRequestMinimum> <PermissionSet class="System.Security.PermissionSet" version="1" Unrestricted="true" ID="Custom" SameSite="site" /> <defaultAssemblyRequest permissionSetReference="Custom" /> </applicationRequestMinimum> <!-- Add these lines if missing, else change level from 'AsInvoker' to 'requireAdministrator' --> <requestedPrivileges … | |
Re: Why do you need a timer? Remove the line Timer.Start() in [ICODE]ElseIf (i = 2) Then[/ICODE] and replace the line Timer.Stop() in [ICODE]ElseIf (i = 3) Then[/ICODE] to say [ICODE]WebBrowser1.Navigate("http://blogger.com")[/ICODE] instead, and do the same in the next two ElseIf statements as well but to navigate to Yahoo.com. | |
Re: It's not a very nice thing to do really. What if the users monitor happens to not support that resolution? It would be more beneficial to adjust your program to be more dynamic instead. But if you insist: [URL="http://dotnet.mvps.org/dotnet/faqs/?id=setscreenresolution&lang=enhttp://www.freevbcode.com/ShowCode.asp?ID=4187"]Here's how[/URL] | |
Hello. I'm having a bit of difficulty implementing Drag and Drop. The scenario is this. I have a project with an MDI child where I want to drop documents from Windows Explorer. The code is all in place (this is just for debugging purposes) and I have set AllowDrop to … | |
Re: Here's a code snippet for calculating an increase in percent. For example, an increase from 2 to 10 equals 400%. [CODE] Private Function PercentIncrease() As Boolean Dim value1 As Double 'Value from database Dim value2 As Double 'Value from device Dim calc As Double calc = ((value2 - value1) / … | |
Re: Try this: After [ICODE]Call ChangeRes(1280, 1024)[/ICODE], add the line [ICODE]Me.WindowState = FormWindowState.Maximized[/ICODE]. | |
Re: Try this: msgbox(cbomodel.GetItemText(cbomodel.SelectedItem)) | |
Re: The image is most likely stored as a byte stream in the database. You have to read the image from the database into a byte array. From there, you can read the byte array into a memory stream, which in turn is used to call: Image.FromStream(.....) | |
Re: Correction. If you want to know how many open forms you have: [CODE=VB] Dim count As Integer = My.Application.OpenForms.Count [/CODE] Every time you open a form, it will be added to the OpenForms collection. And every time you close a form with the .Close() and/or .Dispose() methods, it will be … | |
Re: Have you tried .SetAttribute("checked","0")? | |
Re: What you're talking about is a form of nuking, and it's illegal. And randomly creating multiple names for registration purposes is fraud, and it's illegal. You just have to take your chances like everyone else. | |
Re: See if this helps. [CODE] private string WampInstallPath() { Microsoft.Win32.RegistryKey rk = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("\\\\Microsoft\\Windows\\CurrentVersion\\Uninstall"); Microsoft.Win32.RegistryKey sk = null; string path = ""; foreach (string subkey in rk.GetSubKeyNames()) { if (subkey.ToLower().StartsWith("wamp")) { sk = rk.OpenSubKey(subkey); path = (string)sk.GetValue("InstallLocation"); break; } } return path; } [/CODE] | |
Re: Perhaps you should take a look at XML files. You can both import and export them into a datatable for manipulation. | |
Re: An exception, of any type, is always thrown on the first encountered error. Here's my take on it: If you want to throw one single exception for all occuring errors, then you need to read the entire file into a string variable with a TextReader, and create a parser that … | |
Re: Perhaps this thread could be of some use: [URL="http://www.daniweb.com/forums/thread141412.html"]http://www.daniweb.com/forums/thread141412.html[/URL]. And here's an opensource .NET SMS library: [URL="http://twit88.com/platform/projects/show/messagingtoolkit"]http://twit88.com/platform/projects/show/messagingtoolkit[/URL] | |
Re: Perhaps it has something to do with margins in the printer itself? | |
Re: Does 'cust_name' exist in the returning table? Does the error occur on the first iteration or later? See what happens if you expand the Try..Catch with a Finally and put objRead.Close() and cnSQL.Close() inside that. | |
Re: If you Release-compiled your program, then there is no need to install "vb". You do, however, need to install the .NET Framework version for which your program is developed with. Other then that, just make sure that your Access database is in the same folder as your exe. | |
| |
Re: Do this instead: [CODE] Dim newElement As New XElement("cp:prop", New XAttribute("name", "given_name"), New XAttribute("value", givenName))) [/CODE] | |
Re: The first thing you should do, is to use ADO.NET System.Data.SqlClient instead of Odbc. That might be cause of the problem. Otherwise the code looks good. Take a look at [URL="http://www.codeproject.com/KB/database/Store_images_in_SQL_Serve.aspx"]this[/URL] for reference. | |
Re: Well. It depends. Both Java and any language within the .NET framework can be used both for Windows and Web development. But PHP is considered a strictly Web development language. And in my opinion it's a matter of taste. Java development doesn't have all that much to offer with regards … | |
Re: If you have access to the server, and it's on a IIS. You can create a webservice with a property that provides the image as a byte array on request. That way, you can downsize the amount of coding required in the client and leave it up to each developer … | |
Re: I believe you would have more success with attachments if you only use the built-in mail functions in .NET, instead of relying on the default mail client. Especially in the mixed mail client environment. But, if you knew that everyone using your program is using Microsoft Outlook, you can add … | |
Re: [CODE] Dim printdialog1 As New PrintDialog Dim result As DialogResult result = printdialog1.ShowDialog If result = DialogResult.Cancel Then 'Do some tracking here End If [/CODE] | |
Re: Have a look at this: [URL="http://www.codeproject.com/KB/tree/treeviewxml.aspx"]http://www.codeproject.com/KB/tree/treeviewxml.aspx[/URL] | |
Re: [URL="http://www.daniweb.com/forums/thread293037.html"]Multiple posts[/URL]. Remove [B]this[/B] thread. | |
Re: You can use Application.StartUpPath when working with folders originating from the application folder. Application.StartUpPath gives you the full path for the application executable without the executable file. Then it's a simple matter of string concatination. [CODE] Dim fileName As String = Application.StartupPath & "\subfolder\filename.txt" [/CODE] | |
Re: [CODE] Dim row1 As String = datagridview1.Rows(0).Cells(0).Value Dim row2 As String = datagridview1.Rows(1).Cells(0).Value Dim row3 As String = datagridview1.Rows(2).Cells(0).Value Dim row4 As String = datagridview1.Rows(3).Cells(0).Value Dim row5 As String = datagridview1.Rows(4).Cells(0).Value Dim row6 As String = datagridview1.Rows(5).Cells(0).Value [/CODE] | |
Re: Add a constructor to the recieving form that takes a DateTime as argument. Then, in the method of the calling form that opens that new form: [CODE] Dim frm As New nameOfForm(monthcalendar1.SelectionStart) frm.Show() frm.Dispose() [/CODE] | |
Re: I'm not all that familiar with Crystal Reports, but I'm guessing that you still need to query the database. Here's how: SELECT TOP 1 * FROM (SELECT * FROM <table> ORDER BY id ASC) This syntax is necessary in an access database in order for the query to be successful. | |
Re: It helps if you google it. Here's an answer: [URL="http://www.daniweb.com/forums/thread106514.html"]http://www.daniweb.com/forums/thread106514.html[/URL] | |
Re: You will spend a whole lot less memory by using the .NET built-in classes for dealing with database connectivity. More to the point, the OleDb namespace. Your method will in practice open up a virtual instance of Access. The .NET method only open up a connection to the database file … | |
Re: If you're connecting to a networked SQL server, then perhaps the problem is the credentials. If you're connecting through Windows Authentication, then other users may not have access to the server. You should create a dedicated user on the SQL server, and use that account in the connectionstring for connecting … | |
Re: Take a look at this project: [URL="http://www.codeproject.com/KB/audio-video/SoundClass.aspx"]http://www.codeproject.com/KB/audio-video/SoundClass.aspx[/URL] | |
Re: Have a look at the "NET SEND" command. [CODE=VB] Shell("NET SEND <ip or computername> <message>") [/CODE] | |
Re: Import the source XML into a DataTable. Then you can use the Select() method to filter out what you're looking for. The result can then be exported into a new destination XML. |
The End.