-
- from dgv to excel start on line 18
by Cammyr
- 6 Replies
- Last post
by Spidermans_DarkSide
- I'm able to print from dgv to excel with the following.
Dim r As Integer
Dim c As Integer
For r = 0 To InvoiceDetailsDataGridView.Rows.Count - 1
For c = 0 To InvoiceDetailsDataGridView.Rows(r).Cells.Count - 1
Dim s As String = InvoiceDetailsDataGridView.Rows(r).Cells(c).Value
xlsheet.Cells(r + 1, c + 1).Value = s
Next
But how can I get i
-
- Updating SQL 2005 Database from datagrid
by geoff_1707
- 1 Replies
- Last post
by Bruno Yu - MSFT
- Please help the window looks very inviting at the moment. Being fairly new to VB 2005 I have strugled with this problem for more than a week and read so many articles but still seem to be missing the point
If you take a lokk at the code below the datagrid loads fine from the selected supplier but just can not get a grip on the update part. I know there are lots of articles on the site but I
-
- Access server file from client
by Khin
- 10 Replies
- Last post
by Khin
- hi all, i having a problem to access server folder. i got one folder inside server, which i already shared. but when i access that folder fail. dim host as string = "\\serverId\folder\file.xml" doc.Load(host) ..... error :System.IO.IOException = {"Logon failure: unknown user name or bad password. how i pass the user name and password any one help please.........
-
- Failed to import ActiveX control
by Syed Mazhar Hasan
- 14 Replies
- Last post
by serialc0der
- I am using VB2005 express and VC#2005 express. With my old friend
VS2003, whenever i needed to add flash to my WInforms, all i needed to
do was to add the control as a com component and drag it on the stage
from the toolbar. Now, when i did the same in new express version,
althogh it is added in the toolbars and the references list, but still,
whenever i try to drag a shockwave flash instance
-
- Real-time math. Add the textboxes if they are numbers otherwise join the text. :-)
by Insubordin8
- 12 Replies
- Last post
by ehsan707
- Hi all,
I am almost a complete noob, so please bear with my noobidity!
I basicly want to add one text box to another, and output the value to another textbox, and do it in real-time. Meaning, I don't want to have to add a button to calculate it. After I type in both values, I want the third box to update automatically. Any thoughts
Thanks in advance to all for your time!
-
- How to use OEM/DOS fonts in RichTextBox or TextBox?
by VBNewbie2k7
- 0 Replies
- Last post
by VBNewbie2k7
- Hello,
I'm a newbie to VB 2005. I am trying to create a simple text viewer to view NFO / DIZ files only. When I add a TextBox / RichTextBox to my project, I can not see OEM / DOS fonts in the properties windows, and therefore NFO files does not show properly.
Can anybody help me about how to use OEM / DOS fonts in such project
Thanks...
-
- problem using COM Class...(urgent help please!)
by MarcQuant
- 6 Replies
- Last post
by MarcQuant
- I decided to develop a COM standard dll aiming to instanciate it using Excel 2003.
After some help documentation look up, I realized that .NET 2005 is able to provide me a solution trhought a "COM Class" item.
Below the code:
<ComClass(XlBasic.ClassId, XlBasic.InterfaceId, XlBasic.EventsId)> _
Public Class XlBasic
# Region "COM GUIDs"
' These GUI
-
- Moving Rows in a Datagridview
by Bryan St. Amour
- 18 Replies
- Last post
by Bryan St. Amour
- Hi, I'm writing a small function that will accept two datagridviewrow variables, and it will swap the values in their cells. Here's what I've gotten so far:
Public Sub MoveUp(ByRef firstRow As System.Windows.Forms.DataGridViewRow, ByRef nextRow As System.Windows.Forms.DataGridViewRow) 'Create a temporary value Dim temp As Object Dim temp2 As Object
'Loop through each cell i
-
- Question on DataGridView Data
by joynerCN
- 6 Replies
- Last post
by joynerCN
- Pardon me for posting twice in quick succession, but I've always found that if I post two questions in a thread, only one gets any attention.
I've got a DataGridView where each line displays information from a class called 'Flag', which has a number of variables. One of these variables is a URL for a page that the particular 'Flag' pertains to. But rather than displaying the URL in a column, I'
-
- Strange behavior of LIKE operator
by R J Frantz Jr.
- 4 Replies
- Last post
by R J Frantz Jr.
- This is not what I would expect:
"abcd xy abcd" like "*abcd*xy*"
False
"abcd xy " like "*abcd*xy*"
True
It seems to have something to do with the section of the pattern being repeated in the string.
Is this a known behavior Is it an explained behavior
-
- Replace text in binary files
by zakkar
- 7 Replies
- Last post
by zakkar
- Hi , I need some help here with reading binary files. I am using VB .NET 2005 and I need to read a binary file , convert it somehow and replace a text value that is stored inside. For eg. This file has a string value XXXX-XXX/XXX. If I am viewing normally the file and not the binary I am seeing that format. But when it comes to the binary I cannot view it. So. All I need is read the binary , conve
-
- How to load swf file?
by Penicillin
- 10 Replies
- Last post
by Derek Smyth
- Hello
I use WebBrowser to load swf file.
Code Snippet
WebBrowser1.Navigate( "file.swf" )
But the problem it never stops.
I don't want it to be loop, I want to load it once.
How can I fix it
Thanks
-
- Reading from a database
by adoroxin
- 4 Replies
- Last post
by Cristian_t
- I have a program with a connection to a SQL database. How would I code to have my program say set the text of a label to a value in the database
-
- Create Cookie in a windows application
by amendez
- 6 Replies
- Last post
by amendez
- Hi,
How can I create a cookie in a windows application not in asp. Please if somebody is going to help provide an example. This is what I have done but it does nothing:
Imports System.Net
Imports System.Net.WebResponse
Public Class Form1
Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim MyCookie
-
- Free Add-Ins VSIP DVD here.>>
by John Oliver &#40;UK&am
- 0 Replies
- Last post
by John Oliver &#40;UK&am
- [I was hoping to add as a separate annoucement at the top of each forum area.]>>
Hi everybody,
You might like to get the FREE Add-Ins VSIP DVD, i've just got mine.
See http://msdn.microsoft.com/vstudio/extend/partnerdvd/ for details.
Regards,
S_DS
-
- Fill in adobe fields and save to image
by NEW2BI
- 6 Replies
- Last post
by NEW2BI
- I am wondering if there is a way to load into memory a PDF file, filling in all of it fillable fields, then save the entire adobo page to a .TIFF image file (so I won't have to print and scan) I am assuming I will need to buy some special Adobe Plug-in. I already have the Adobe Reader COM object working and it loads the PDF file just fine and displays it. But I want to be able to fill the fillabl
-
- with events required with sp1
by dennist685
- 3 Replies
- Last post
by dennist685
- The following statement was rejected by the debugger with sp1. Worked fine before I installed it. Private Sub toolstripbutton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles toollstripbutoon2_Click.Click Why is that And what would the with events statement look like dennist685
-
- pop up window(for windows application)
by Matelin
- 5 Replies
- Last post
by Matelin
- hi
any one know how to make pop up window like the one popup when u have an email
,for a window application.
-
- sending attachments as email
by newvbee
- 1 Replies
- Last post
by Bruno Yu - MSFT
- How do i use mapi in visual basic ver 5.00 to search and obtain a txt file from a directory and send it as an email attachment to another computer.
Thanks
-
- Logear un user desde un programa en vb2005
by IlCapo
- 2 Replies
- Last post
by Riquel Dong ¨C MSFT
- Estimados, ante todo gracias por la atencion.
Tengo que hacer un programas que acceda a un base de datos de access en un servidor con dominio.
Este programa solo debe permitir el acceso a un usuario que tendra su clave para poder ingresar al directorio donde esta la base. El usuario no debe conocer la clave, el login lo deberia realizar el programa y al salir deberia cerrar la sesion.
Est
-
- Error running VB6 to 2005 Upgrade Wizard
by StephenR
- 14 Replies
- Last post
by Iversen
- I am encountering an error running the VB.NET 2005 Upgrade Wizard. When the wizard completes and attempts to open the converted project I get the message:
Unable to read the project file '(project name).vbproj'. The project file "(path)\(project name).vbproj" was not found.
(I have substituted 'project name' and 'path' above for the actual values.)
When I look in the folder I fi
-
- Problems with updating modified data
by Dolphin69
- 2 Replies
- Last post
by Dolphin69
- Hi, I'm using VS.NET 2003 and a MS Access Database with Windows froms (not web based) the Scenario: When trying to update edited records it does not update correctly - (adding and deleting records are working fine) E.g. when editing one record and exit to update it does not update anything. With troubleshooting one can see the the datarowVersion.proposed and .original values are different but the
-
- No active debugging button or "Start Debugging" from the Debug tab.
by Ineedhelpalso
- 1 Replies
- Last post
by Bruno Yu - MSFT
- I have a multiple project solution (2 projects).
All conflicts and discrepancies are resolved.
The Dependencies and Build Order are established.
I am unable to access the "Start Debugging" button or the "Start Debugging" from the "Debug" tab.
-
- Unused references in Visual Studio 2003 project upgraded from VB6
by Justin W
- 3 Replies
- Last post
by Toddap_MS
- Hi
My project which I upgraded using the Convert wizard contains references to 3 COM controls.
These are listed in the VB6 project file hence their inclusion.
I can't see that they are used by the code and want to get rid of them if it is safe.
Visual Studio has a function to check for unused references (see http://msdn2.microsoft.com/en-us/library/7sfxafba(vs.80).aspx
-
- Stop Visual Studio Designer from Rendering Control
by Nabeel Allana
- 5 Replies
- Last post
by Nabeel Allana
- I need some help. I have a control I made (a custom label) inherited from a panel. When I use the control in a form, the label constantly flashes on the visual studio designer. The control has its code in its mybase.paint event. Anyone know of a solution