Search results for query: *

  1. S

    exiting or closing the application

    post solved
  2. S

    exiting or closing the application

    i have a windows application which needs to close or shut down if a key value is incoorect i have a class file with below code and this classs file is called inthe windows form While dr.Read If Not mkey = dr("kcode").ToString Then MsgBox("Invalid key"...
  3. S

    Question encrypting or derypting the values

    i have a stored procedure to make a column encrypted using symmetric key & certificate in SQL i have encrypted data in sql table i need to compare / check this data value in windows forms with the user input & accordingly execute further. how do i compare the encrypted data value with...
  4. S

    getting mac add of the system

    Dim nic As Net.NetworkInformation.NetworkInterface Dim keyadd As String For Each nic In Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces keyadd = nic.GetPhysicalAddress.ToString If keyadd = "" Then...
  5. S

    Question Object variable or With block variable not set

    class file Public Class mkey Public Sub getkey() Try MsgBox("hello") Catch ex As Exception End Try End Sub referencing the method in windows forms Imports myproject1.mkey in form load Dim mk As mkey = Nothing...
  6. S

    Question Object variable or With block variable not set

    if i add the reference of class file to the windows form page i and execute the form page i get Object variable or With block variable not set. error
  7. S

    seciruty/ licesening with windows appkication

    i have created a windows application & it uses Microsoft reporting services. i am using vs2008 for the development i need to deploy the application at clinets system whts the best & safe method can we create any security check / licesence so that the application cant not be executed in other...
  8. S

    Question accessing array values

    thanls a lot. yes u r right as i need to knw a lot and indepthh abt containers any link u culd provide me whih will give a detailed info abt dictionary , containers & how it can be used whts the difference in Dim values As New List(Of Dictionary(Of String, String)) Dim dictionary As...
  9. S

    Question accessing array values

    Dim dictionary As New Dictionary(Of String, String) While m_readersc.Read If Not m_readersc("cname") = "" Then 'MsgBox(m_readersc("cid").ToString) dictionary.Add(m_readersc("cid").ToString, m_readersc("cname").ToString) End If End While
  10. S

    Question accessing array values

    the abovr errr was due to a blank field. now i get thee belowerror Value of type 'String' cannot be converted to 'System.Collections.Generic.Dictionary(Of String, String)'. For Each value As Dictionary(Of String, String) In dictionary Dim id As String = value("cid")...
  11. S

    Question accessing array values

    thanks tried using Dim dictionary As New Dictionary(Of String, String) Dim m_readersc As SqlDataReader = cmdsc1.ExecuteReader() While m_readersc.Read If Not m_readersc("cname") = "" Then dictionary.Add(m_readersc("cid"), m_readersc("cname"))...
  12. S

    Question accessing array values

    While m_reader.Read If Not m_reader("cname") = "" Then arryname.Add(m_reader("cname")) arrymail.Add(m_reader("mail")) End If End While For Each item As String In arryname Next i hve the above code in which i am adding the fields 2...
  13. S

    Question adding date in datagrid

    thats what i had done but after doing it i was getting double columnname currently wht i have fr binding the grid is in form load i hve sqlstr=" select p.id , p.pname ,0 as QTY, p.RATE, AMOUNT, p.dtfrm as From_DT,p.dtto as To_DT from PRDT left join M_customer C On C.Cid = t.cust_id left...
  14. S

    Question adding date in datagrid

    i am really sorry but even on repeatedly reading post 7 i am nt able to make out the difference the cell / column property can be assigned at design or runtime if assigned at design time i already wrote that i get double columns if assigned at runtime before binding to the grid i get index...
  15. S

    Question adding date in datagrid

    if i set at run time i get error index out of range grid_trans.Columns(1).DefaultCellStyle.Format = DateFormat.ShortDate
  16. S

    Question adding date in datagrid

    as per u r suggestion i set the column data at design time and binded at run time as DataGridView1.DataSource = ds1.Tables("trans") but issue is i get double columns ie first foure coulmns i get which i binded at design time but without data & next four columns frm the query but with data
  17. S

    Question adding date in datagrid

    ya i had tried setting the cell format my grid column 5 & 6 hve the date but i hve not binded the grid thr' properties i hve binded it thr' code i have sql select * from table & binded the grid so how do i set the column format at runtime?
  18. S

    Question adding date in datagrid

    i copied the error msg which i get when i try 2 enter date in the grid cell i need to add date in dd/mm/yyyy format in the grid cell
  19. S

    Question adding date in datagrid

    --------------------------- DataGridView Default Error Dialog --------------------------- The following exception occurred in the DataGridView: System.FormatException: String was not recognized as a valid DateTime. ---> System.FormatException: String was not recognized as a valid DateTime...
Back
Top