User Profile

Collapse

Profile Sidebar

Collapse
CharChabil
CharChabil
Last Activity: Feb 17 '07, 06:09 PM
Joined: Oct 23 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Controls created on one thread cannot be parented to a control on a different thread

    Hello Guys,
    I am trying to mark locations on a map (x,y pixels are derived from a DB)
    This is the code that i am using

    Code:
    Private Sub DisplayOnSoftMap()
    SqlQuey = "Select * FROM SoftwareMap WHERE SoftwareMap.SMSID =myRndTrip.CurrentSwitch.SID & "'"
    tmpSoftMapCol = tmpSoftMapCol.GetAllSoftwareMap(SqlQuey)
    For Each tmpSoftMap In tmpSoftMapCol
    
    DrowLabel(tmpSoftMap.XMap,
    ...
    See more | Go to post

  • CharChabil
    started a topic passing null parameter
    in .NET

    passing null parameter

    Code:
    Private Sub BPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BPrint.Click
    Dim frm As New FrmPrintReport 'reports
    Dim cr As New CRepResponsable
    cr.SetParameterValue(0, Val(Me.TBAccountNumber.Text))'integer
    cr.SetParameterValue(1, Me.TBAccountNumber.Text)'string
    cr.SetParameterValue(2, vbNull) 'integer
    cr.SetParameterValue(3, vbNull) 'string
    
    frm.CrystalReportViewer.ReportSource
    ...
    See more | Go to post

  • CharChabil
    replied to borders of a map
    in .NET
    Can you advice me a way of not allowing the user to click outside the borders??
    HAppy holidays and thx...
    See more | Go to post

    Leave a comment:


  • CharChabil
    started a topic borders of a map
    in .NET

    borders of a map

    Having a map
    I want to know if the user has clicked outside or inside the borders of the map
    Note that: the image containing the map is chosen as background of the form
    So I thought of something
    I have drawn the map with the following
    RGB =255,255,255 outside the borders
    RGB=254,254,254 inside the border

    See what I have thought about:
    Dim img1 As Bitmap
    Code:
    Private Sub frmmap1_Load()
    ...
    See more | Go to post

  • CharChabil
    started a topic drawing anf filling a shape
    in .NET

    drawing anf filling a shape

    Having a client & many servers S1---S17,
    The role of the client is to connect simultaneously to these servers and collect data from them

    Having a Map I should mark on it:
    Location(X-Y pixels) of the server –the locations are already predefined
    Ellipse or rectangle…fille d with one of the RGB color depending of the collected data

    Note more than one ellipse (indicating the location of the switch)...
    See more | Go to post

  • CharChabil
    started a topic picture boundary
    in .NET

    picture boundary

    Hey Guys
    Having a picutre 'geographical map'
    how can i know if the user has clicked inside the map or outside it
    within or outside the boundaries...
    (the thing is that i dont want to allow the user to click outside the boundaries
    any function for that?

    note the shape of the map is not not a circle or square
    it's a map just with boundries and filled just in white(nothing inside)
    See more | Go to post

  • CharChabil
    started a topic reading a block of data from a text file
    in .NET

    reading a block of data from a text file

    Hey guys
    I m reading from a text file (that contains data like the following)
    What I want is to simply get the data of each block separatly
    Any hint for that?

    A1/EXT "BK82 LB73 21233" 105 061018 1804
    EXTERNAL ALARM
    COOLING ALARM
    A2



    A1/POWER "BK82 LB73 21233" 362 061019 0947
    EXTERNAL ALARM
    EDL FAILURE KAA
    A1
    A1/POWER
    ...
    See more | Go to post

  • CharChabil
    started a topic Onpaint Dynamically

    Onpaint Dynamically

    hey guys ,could you plz help me to do a FUNCTION1 using "Onpaint" as Event
    and taking "color","X_loca tion","Y_locati on" as parameters.
    This function1 might be called by a function2 and drawing different shape(ellipse or rectangle) with their specific color.
    See more | Go to post

  • CharChabil
    replied to supid if function
    in .NET
    this is function that i m using and it returns an integer

    Code:
    Public Function getavailableswitch(ByVal checkstr As String) As Int16
    ....
    getavailableswitch = cmd.ExecuteScalar()
    end function
    what i want is: to call the above function and
    thus
    Code:
    Dim id As Integer
    If id = getavailableswitch(checkStr) <> 0 Then
    MsgBox(id)
    End If
    i know it sounds very...
    See more | Go to post

    Leave a comment:


  • CharChabil
    replied to supid if function
    in .NET
    I found that this statement goes right

    ElseIf (i = getavailableswi tch(checkStr)) And i <> 0 Then
    MsgBox(i)
    End If


    i got my respone
    thx anyway :
    but is there any other way of thinkin?...
    See more | Go to post

    Leave a comment:


  • CharChabil
    started a topic supid if function
    in .NET

    supid if function

    how to well write the below statement :
    I got into the msgbox(ii) even the value of the called function
    [getavailableswi tch(checkStr)] is 0

    Code:
    Dim ii As Integer 
    If ii = getavailableswitch(checkStr) <> 0 Then
    MsgBox(ii)
    End If
    Note : i want the the following to be done within the same if
    1-call the function
    2-test the retrieved data from the function

    ...
    See more | Go to post

  • comparing part of a string with predifined values in a DB

    Hello guys
    I m reading from a text file, and in the same time comparing the read value with predefined values in a DB
    From file:
    EXTERNAL ALARM
    GENERATOR RUNNING KAA
    EDL ARSAL FAILURE

    Having KAA in my database I want to retrieve the ID of this data
    And having ARSAL in my database I want to retrieve the ID of this data

    This is a part of my code,
    I know that this code...
    See more | Go to post

  • CharChabil
    started a topic drawing anf filling a circle
    in .NET

    drawing anf filling a circle

    Hey Guys
    Kindly help me with the following function in vb.net 2005
    I want to write a function that does the following

    1. Go to pixels (x,y)
    2. Draw a circle or a rectangle at the above pixels,
    3. fill a circle or rectangle with a color

    I guess it should be as follow
    Code:
    Public function draw (color,location_X,location_Y int, shape)
    
    Fillellispse(…)
    Shape: rectangle
    ...
    See more | Go to post

  • winsock : connectin between 1 client and many remote servers

    Hey Guys
    Using Winsock application under vb.net 2005

    Using same client, i want to connect to many remote servers

    the Exception that i m facing : "cant not send data while not connected"
    i knew the problem of this Exception:the client is sending data before being connected to the specified server,hence, can you guys give me a simple hint what to add to slow the commincation(de lay),and thus wait...
    See more | Go to post

  • CharChabil
    started a topic foreign key to multiple primary keys

    foreign key to multiple primary keys

    Hey guys
    Using Sql/express

    Table 1 :
    I set 3 fields to be primary keys for Table1 (i have just marked each field with a key (primary key)(is there anything else to do)?

    Table 2 :
    I should add a foreign key for this table linked to the 3 primary keys of table1

    Can this be done /how? Any hint for that?
    thx



    Regards
    Ramy
    See more | Go to post

  • CharChabil
    started a topic Splitting a String
    in .NET

    Splitting a String

    Using Vb.net 2005,
    I want to read each part in this string in an array (splitting the string)
    -----------
    A1/EXT "BK82 LB73 21233" 105 061018 1804
    -----------
    That Code that i used is as follow:

    Dim s As String, h As String
    Dim delim(1) As Char
    delim(0) = "/"
    delim(1) = " "

    Dim f() As String
    s = A1/EXT ""BK82 LB73 21233""...
    See more | Go to post

  • CharChabil
    started a topic Readind a texte
    in .NET

    Readind a texte

    Hey guys
    i want to read from file that contains the following data:
    -------------------
    A1/EXT "BK82 LB73 21233" 105 061018 1804
    EXTERNAL ALARM
    COOLING ALARM
    A1
    ------------------
    the thing is that i want to read each part alone
    and stores it in a database
    any hint for that?
    PS: how to read the double quote ?
    Regards,
    See more | Go to post
No activity results to display
Show More
Working...