476 Posted Topics

Member Avatar for Maya Pawar

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.

Member Avatar for Oxiegen
0
102
Member Avatar for haxor98

It's seems so. Have you tried google, keywords VB.NET AND partitioning? Perhaps you'll find something there to help you.

Member Avatar for Oxiegen
0
111
Member Avatar for starlight849

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.

Member Avatar for Oxiegen
0
240
Member Avatar for frozie

This [URL="http://www.codeproject.com/KB/cs/SendKeys.aspx"]project[/URL] might be of use.

Member Avatar for Oxiegen
0
88
Member Avatar for guptas

Dude. Wrong forum. But those errors seem pretty obvios to me. Examine the code at lines 116, 117 and 118.

Member Avatar for Oxiegen
0
494
Member Avatar for toomuchtodo

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 …

Member Avatar for toomuchtodo
0
169
Member Avatar for vampiro999

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 …

Member Avatar for Oxiegen
0
236
Member Avatar for Kingcoder210

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]

Member Avatar for Oxiegen
0
123
Member Avatar for gha1d

You need to embrace the word DOWN in braces: SendKeys("{DOWN}"). [URL="http://www.radiosky.com/rjp3/rjp3help/sendkeys_reference.htm"]SendKeys Reference[/URL]

Member Avatar for Oxiegen
0
95
Member Avatar for selle05

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'

Member Avatar for Oxiegen
0
33
Member Avatar for benhowdle89

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 …

Member Avatar for Oxiegen
0
230
Member Avatar for ayesha25

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 …

Member Avatar for Geekitygeek
0
152
Member Avatar for Cory_Brown

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 …

Member Avatar for Oxiegen
0
643
Member Avatar for jamesvick

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.

Member Avatar for jamesvick
0
216
Member Avatar for Kingcoder210

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]

Member Avatar for Oxiegen
0
133
Member Avatar for Oxiegen

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 …

Member Avatar for Oxiegen
0
215
Member Avatar for benhowdle89

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

Member Avatar for benhowdle89
0
189
Member Avatar for Kingcoder210

Try this: After [ICODE]Call ChangeRes(1280, 1024)[/ICODE], add the line [ICODE]Me.WindowState = FormWindowState.Maximized[/ICODE].

Member Avatar for Oxiegen
0
308
Member Avatar for tanvirahmad
Member Avatar for Kindson
Member Avatar for arch_mah

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

Member Avatar for nick.crane
0
318
Member Avatar for leahrose87

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 …

Member Avatar for Oxiegen
0
2K
Member Avatar for Eleqtriq
Member Avatar for tferrier18

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.

Member Avatar for tferrier18
0
131
Member Avatar for zismad

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]

Member Avatar for Oxiegen
0
144
Member Avatar for Zinderin

Perhaps you should take a look at XML files. You can both import and export them into a datatable for manipulation.

Member Avatar for Zinderin
0
277
Member Avatar for damirin

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 …

Member Avatar for Oxiegen
0
198
Member Avatar for ernnymags

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]

Member Avatar for Oxiegen
0
68
Member Avatar for sohaibroomi
Member Avatar for comsci2

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.

Member Avatar for hirenpatel53
0
125
Member Avatar for jzlonely

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.

Member Avatar for jzlonely
0
4K
Member Avatar for tariq182
Member Avatar for Oxiegen
0
85
Member Avatar for Merovingian

Do this instead: [CODE] Dim newElement As New XElement("cp:prop", New XAttribute("name", "given_name"), New XAttribute("value", givenName))) [/CODE]

Member Avatar for Oxiegen
0
103
Member Avatar for sidind123

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.

Member Avatar for Oxiegen
0
195
Member Avatar for ranapro

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 …

Member Avatar for Oxiegen
0
75
Member Avatar for bruno386

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 …

Member Avatar for Ketsuekiame
0
112
Member Avatar for RMelnikas

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 …

Member Avatar for Oxiegen
0
147
Member Avatar for Extremist-smj

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

Member Avatar for Oxiegen
0
125
Member Avatar for TommyRay

Have a look at this: [URL="http://www.codeproject.com/KB/tree/treeviewxml.aspx"]http://www.codeproject.com/KB/tree/treeviewxml.aspx[/URL]

Member Avatar for Oxiegen
0
577
Member Avatar for irum siddique

[URL="http://www.daniweb.com/forums/thread293037.html"]Multiple posts[/URL]. Remove [B]this[/B] thread.

Member Avatar for Oxiegen
0
55
Member Avatar for TommyRay

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]

Member Avatar for TommyRay
0
152
Member Avatar for Trebron

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

Member Avatar for Oxiegen
0
193
Member Avatar for dougancil

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]

Member Avatar for Oxiegen
0
94
Member Avatar for vijaycare

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.

Member Avatar for vijaycare
0
137
Member Avatar for pardeep3dec

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]

Member Avatar for Luc001
0
190
Member Avatar for leverin4

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 …

Member Avatar for Oxiegen
0
162
Member Avatar for aliftek

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 …

Member Avatar for Oxiegen
0
126
Member Avatar for Nadaa

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]

Member Avatar for Oxiegen
0
57
Member Avatar for nadeemarshad

Have a look at the "NET SEND" command. [CODE=VB] Shell("NET SEND <ip or computername> <message>") [/CODE]

Member Avatar for Oxiegen
0
112
Member Avatar for n3wbie

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.

Member Avatar for Oxiegen
0
65

The End.