Search results for query: *

  1. M

    DataGridView DefaultCellStyle.Format help

    Hi, Got this column in a DataGridView - I want to display a percentage with 2 decimal places 4.56% etc The problem here is if the user enters 10 the grid shows 1000.00%, I want the user to enter the exact percentage not the decimal equivilent. How can I do that? Thanks...
  2. M

    Problem with FTP - corrupt file at the other end

    That works fine, thankyou. :)
  3. M

    Problem with FTP - corrupt file at the other end

    Hi, I've got this code working to ftp an image Dim request As FtpWebRequest = DirectCast(WebRequest.Create("server/" + txtRef.Text + ".jpg"), FtpWebRequest) request.Method = WebRequestMethods.Ftp.UploadFile request.Credentials = New NetworkCredential("leasing", "pass") Dim sourceStream As...
  4. M

    Resize image - out of memory exception

    Thanks for that, when I make that change I get garbled text output. I presume its the binary contents of the file - how can I get it to output properly? Thanks
  5. M

    Resize image - out of memory exception

    Hi, I have this code Imports System.Data.SqlClient Imports System.Drawing Imports System.Drawing.Imaging Partial Class image2 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim dbType As String =...
  6. M

    Get URL with Named Anchor

    Hi, I've got this url http://mysite.com/offers.aspx#offer3 How can I access the #offer3 - its not present in any of the Request.ServerVariables collection :( ? Thanks
  7. M

    Question Resize image

    I have a bitmap object which is 1024x768 pixels. I need to make it 210x100. This is what I have so far Code: Dim newBMP As New Bitmap(CInt(133), CInt(100)) Dim gt_dest As Graphics = Graphics.FromImage(newBMP) gt_dest.DrawImage(oldBMP, 0, 0, newBMP.Width + 1, newBMP.Height + 1) This scales it...
  8. M

    Compiler error

    Hi, My visual studio crashed today and I had to restart the pc, now the project I was working on just wont compile. I get the following errors Error 1 The item "obj\Debug\eMatrixAdminSystem.frmMainLayout.resources" was specified more than once in the "Resources" parameter. Duplicate items are...
  9. M

    Databinding to an object

    I have a simple database app, tab 1 has a datagrid on which is filled simply with SELECT * FROM Customers into a dataset/datatable which is then bound to the grid.Then if I double click a row it moves to tab 2, looks up cell 1 on the selected row of the datagrid (which is the primary key) and...
  10. M

    How to read XML

    Something has messed up when posting - how do you post XML? Also its ignored all the line breaks ??
  11. M

    How to read XML

    I have the following simple XML File called getvehicles.xml-?xml version="1.0" encoding="utf-8" ?--GetVehicles release="8.1" environment="Production" lang="en-US"--ApplicationArea--/ApplicationArea--DataArea--Error--/Error--Vehicles--Vehicle--Combined_Make>VOLVO-/Combined_Make--Combined_Model>70...
  12. M

    Image in DataGridView

    Thanks for that, there must be an easier way surely?
  13. M

    Image in DataGridView

    I have the same problem, I want to loop through the rows of the datagridview, check the value of column 4 then select the image to be displayed in column 1.Anyone know how to do it?Thanks
  14. M

    Publish Application Problem

    Its connecting to an excel sheet using JET / oledb. The excel file is on the local network, the actual path in the connection string uses a mapped drive I:\stockbook.xls
  15. M

    Publish Application Problem

    Hi, Using VB 2005 Express Edition Beta, My application is finished, debugged on local machine and works fine. I now want to install it on a couple of other machines in my company (its an in house app) I've made sure the Enable Click Once Security settings is checked and its set to "this is...
  16. M

    showdialog - how to access parent form

    Hi, I have a form, it has two textboxes txtName, txtAddress, it also has a button, the button opens another form as a dialog Dim select as new frmSelect select.showdialog On the select dialog it displays a datagrid with a list of customers, user double clicks on an entry and I trap that...
Back
Top