User Profile

Collapse

Profile Sidebar

Collapse
Dan Effets
Dan Effets
Last Activity: Jul 3 '14, 01:40 PM
Joined: Oct 6 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Dan Effets
    replied to VB export Gridview to PDF
    Code:
    If DataGridView1(k, i).Value != null Then            PdfPTable.AddCell(DataGridView1(k, i).Value.ToString())
    I am trying to convert C# example, but not having much luck
    != null cant be used in VB or Null , The orginal statement
    was For not if

    Yes classic code, but cant find examples...
    See more | Go to post

    Leave a comment:


  • Dan Effets
    replied to VB export Gridview to PDF
    Code:
     Dim doc As New Document(iTextSharp.text.PageSize.A4, 10.0F, 10.0F, 10.0F, 10.0F)
            Dim PdfPTable As PdfPTable = New PdfPTable(DataGridView1.Columns.Count)
    
            If (j < DataGridView1.Columns.Count) Then j = +1
            PdfPTable.AddCell(DataGridView1.Columns(j).HeaderText)
    
    
            If (i < DataGridView1.Rows.Count) Then i = +1
            If (k < DataGridView1.Columns.Count) Then
    ...
    See more | Go to post

    Leave a comment:


  • In my form user pick from select combo box and is control to search database, with goes to results page .. Where the select item will read in labeltext ,here with code link to pages together , second is on second page.vb this code permits look up... I know it is not C# but maybe it will give you a ideal ..
    See more | Go to post

    Leave a comment:


  • Code:
    <%@ PreviousPageType VirtualPath="~/default.aspx" %>
    On page written to
    Code:
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            If PreviousPage IsNot Nothing AndAlso PreviousPage.IsCrossPagePostBack Then
                Label1.Text = ("Results For : " & PreviousPage.Droplist1.SelectedValue)
            Else
                Response.Redirect("default.aspx")
    ...
    See more | Go to post

    Leave a comment:


  • This seems to work, let me know if it works for you.
    By the way, when updating or adding new data all fields have to be filled or not null .. if one is open it will error out


    Code:
     private void btnUpdate_Click(object sender, EventArgs e)
            {
    
                this.Validate();
                this.historyBindingSource.EndEdit();
                this.historyTableAdapter.Update(this.sCHDBDataSet.History);
    ...
    See more | Go to post

    Leave a comment:


  • Dan Effets
    started a topic VB export Gridview to PDF

    VB export Gridview to PDF

    I looking for a example of VB export gridview to PDF , all that I can find use C# or VB.net to a web page. Using ItextSharp or PDFSharp. Looking for VB only not web or ASPX .. Please send a link..thank you
    See more | Go to post

  • Dan Effets
    started a topic SQL Error in Visual Basic

    SQL Error in Visual Basic

    We are in urgent need of help, the whole class and the instructor in SQL error in Web App. VB.net. We were asked to design a project in Visual Basic.All was going fine, we created a SQL data base in VB. Then linked it to the project. All was well. Data was filling the gridview etc. All projects were save to flash drives by each student.The problem -- Sql 655 error , cant use because it not 615 ...In other words the project crashes on other PCs,we...
    See more | Go to post

  • Dan Effets
    started a topic Visual Basic access Images

    Visual Basic access Images

    In Access I created a table with Images column
    Images/picture.bmp --
    Here the is problem when bound access to form all field work,
    except images..databas e is already imported to VB and I copied the image folder in the VB..
    Any Idea about this ? OLE way works , but I wanted a way to change picture if needed...
    See more | Go to post

  • Dan Effets
    replied to Picture Array in a simple array
    in .NET
    Ok to add another array with Pictures

    Code:
    Private Sub cboPhone_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles cboPhone.SelectedIndexChanged 
            Dim Num As Integer 
            Num = cboPhone.SelectedIndex 
            txtName.Text = FName(Num) 
            txtAddress.Text = Address(Num) 
            txtBirth.Text = BirthDay(Num) 
    
    PictureBox1.Image = ImageList1.Images(Num)
    ...
    See more | Go to post

    Leave a comment:


  • Dan Effets
    started a topic Picture Array in a simple array
    in .NET

    Picture Array in a simple array

    I have simple array on this form but want to tie in another array for pictures.. Combobox select the Phone and this set the array to fit the other text boxes name,address,br ithday. Now I want add a picture into the mix.
    Code:
    Option Explicit On
    Option Strict On
    Imports Microsoft.VisualBasic.ControlChars
    Imports System.Convert
    
    Public Class frmMain
        Dim Phone() As String = {"(864) 463-1040",
    ...
    See more | Go to post

  • Dan Effets
    started a topic C # Search Table
    in .NET

    C # Search Table

    I am working on a project and hit a road block , I would like for the customer to be able to search the whole data table. So far I can only find a way to search one column.Also is there a way to use wildcards **?

    Code:
    private void btnFind_Click(object sender, EventArgs e)
            {
                tblEmployeeBindingSource.DataSource =
                from tblEmployee in hollandDataSet.tblEmployee
                where tblEmployee.LastName.StartsWith(txtFind.Text)
    ...
    See more | Go to post

  • Dan Effets
    replied to C# Reading from Array to Listbox
    I am going to try this later today ...

    Thank you
    Dan
    See more | Go to post

    Leave a comment:


  • Dan Effets
    started a topic C# Reading from Array to Listbox

    C# Reading from Array to Listbox

    I created a Menue Sheet with combobox as require by the book.Select Drink ,App,Meal,Desse rt , then display the total of the meal.
    Each Topic item is in array
    Code:
    Double[] Dessert = {5.95,5.95,6.00,5.00,6.60,6.95 };
    int Indx = DescComboBox.SelectedIndex;
    SubTotal += Dessert[Indx];
    Calculate();
    All works well, but I was wanting to add Label , show each item select (like a bill).
    See more | Go to post

  • Dan Effets
    replied to C# Listbox to ComboBox
    Code:
      private void StatesComboBox_SelectedIndexChanged(object sender, EventArgs e)
            {                  
                   StatesListBox.Items.Add(StatesComboBox.SelectedItem);
                   StatesComboBox.Items.Remove(StatesComboBox.SelectedItem);
                
                if (StatesComboBox.Items.Count <= 0)
                {
                    StatesComboBox.SelectedItem = 0;
                    MessageBox.Show("Statebox
    ...
    See more | Go to post

    Leave a comment:


  • Dan Effets
    replied to C# Listbox to ComboBox
    When push data (word) from ComboBox to listbox OK
    But when I push back to Combobox, the (Word) and extra space show
    up.
    Click Sam in ComBo-> Go ListBox Sam
    Click Sam in ListBox -> Combo Sam and space below it>>??

    Thank you
    Dan
    See more | Go to post

    Leave a comment:


  • Dan Effets
    replied to C# Listbox to ComboBox
    Ok,in the List box you click a Word, then is suppose to removed an sent to the combo box.My latest code attempt :
    Code:
     string item = "";
                item = Convert.ToString(StatesListBox.SelectedItem);
                StatesComboBox.Items.Add(item);
                StatesListBox.Items.Remove(StatesListBox.SelectedItem);
    Now this works however , it pushes the word over and a blank space..How can I get rid of the blank...
    See more | Go to post

    Leave a comment:


  • Dan Effets
    started a topic C# Listbox to ComboBox

    C# Listbox to ComboBox

    Hello,
    I am working on a project in my C# book
    Tranfer Textbox to Combo,
    Combo to Text,Textbox to list ,but I cant listbox
    to go to Combo.Instead of the word , it puts (collection)
    StatesListBox.I tems.Remove(Sta tesListBox.Sele ctedItem);
    StatesComboBox. Items.Add(State sListBox.Select edItems);
    See more | Go to post
No activity results to display
Show More
Working...