jlego 15 Posting Pro

the story sounds pretty weird.

jlego 15 Posting Pro

i know this thread is solved - unhnd exception nailed it. but i wanted to add a small addition to it.

where i work we have a windows domain with roughly 100 a/d users
One one a/d user is actually an administrator

i dont allow myself or my coworkers to be administrators for security reasons. There is one admin account and only one that can be used if needed.

personally i feel that this is a good practice and adds an extra layer of security

Formby commented: I agree, as little privileges as possible. +1
jlego 15 Posting Pro

wow not even a thanks :|

jlego 15 Posting Pro

there are lots of things to look at. viruses, network security, system healths, updates etc...

one of the biggest security risks you are going to run into is USERS.
users don't care about the impact of what they do. they will download a bruce willis screen saver that has trojans and then try to hide it (personal experience)..

things to look into:

WSUS to control all windows updates (if windows network) centrally from server

Virus Enterprise solutions (to control all anti-virus operations centrally)

Strong firewall solutions (recommend cisco firewalls, ASA 5500 series are nice but pricey)

Group Policies to control settings and prevent users from accessing things you dont want them to

Strong password policies to prevent cracking

and so on, it goes on for days

check into the hacking exposed books maybe?

jingda commented: Nice +0
jlego 15 Posting Pro

glad to help mahn

jlego 15 Posting Pro

would i still be able to pay the bills if i just walked out of the office today

e-papa commented: You tell me. +0
jlego 15 Posting Pro
Option Strict On

Public Class frmMain

    Private Function AverageScore(ByVal testscore1 As Decimal, ByVal testscore2 As Decimal, ByVal testscore3 As Decimal) As Decimal
        Return (testscore1 + testscore2 + testscore3) / 3
    End Function

    Private Function CalculateGrade() As String

        If CDec(lblGrade.Text) >= 90 Then
            Return "A"
        ElseIf CDec(lblGrade.Text) >= 80 Then
            Return "B"

        ElseIf CDec(lblGrade.Text) >= 70 Then
            Return "C"

        ElseIf CDec(lblGrade.Text) >= 60 Then
            Return "D"

        ElseIf CDec(lblGrade.Text) < 60 Then
            Return "F"
        End If

        Return "Unknown?"
    End Function

    Private Sub btnDisplay_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
        lblGrade.Text = CInt(AverageScore(CDec(Me.txtTest1.Text), CDec(Me.txtTest2.Text), CDec(Me.txtTest3.Text))).ToString
        MsgBox(CalculateGrade)
    End Sub


    Private Sub txtTest1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtTest1.KeyPress, txtTest2.KeyPress, txtTest3.KeyPress
        ' allows the text box to accept only numbers, the period, and the Backspace key
        If Not Char.IsNumber(e.KeyChar) Then e.KeyChar = Nothing
    End Sub

    Private Sub txtTest1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtTest1.TextChanged, txtTest2.TextChanged, txtTest3.TextChanged
        lblGrade.Text = String.Empty
    End Sub
End Class

copy and paste that into your form

jlego 15 Posting Pro

ok class. todays assignment is go to daniweb, type out your homework question, and wait for someone to do this for you!


how about this: how far did you get so far?

Unhnd_Exception commented: Sounds about right to me. :) +1
codeorder commented: count me in.:) +10
jlego 15 Posting Pro

it makes perfect sense.. if you don't think about it

jlego 15 Posting Pro

yes.

use the net time command

net time \\timeserver /set /yes

this will sync the local computers time with the server (i beleive, you might have to be on a domain but im not 100% sure..)

i think it would be something like

shell("net time \\timeserver /set /yes")
swathys commented: very helpful +0
jlego 15 Posting Pro

actually, if he gets to the 'starting windows screen' after the installation, it should boot into safe mode

jingda commented: Yup you are right +1
jlego 15 Posting Pro

windows 7 pro also has xp mode.

depending on your new computer - you can install XP, it just may be a bigger process with drivers. Refer to the driver support of your computer model to see if there are in fact drivers for XP. if there isn't, it may still be possible using the internal hardwares vendors driver, but it is a deep process and you and the machine may become more involved than you would like to admit

do you mind if i ask what programs you are having problems running in windows 7?

Unhnd_Exception commented: :) +1
jlego 15 Posting Pro

maybe im wrong with what u mean,

private sub determinecheckstatus(ByVal sender As System.Object, ByVal e As System.EventArgs) handles checkbox1.CheckedChanged, checkbox2.checkedchanged, checkbox3.checkchanged and so one

dim textboxtext as string = string.empty

if checkbox1.checked then textboxtext += " checkbox1, "
if checkbox2.checked then textboxtext += " checkbox2, "
if checkbox3.checked then textboxtext += " checkbox3, "
and so on

textbox1.text = textboxtext
end sub

i am not the best with vb.net, but that should do what u are looking for
someone probably has a better method tho

AnooooPower commented: Thnx +1
jlego 15 Posting Pro

my personal preferenceis connection strings. (adodb, mysqlclient, and so on i dont use access databases)

i feel that it gives me more freedom.. but i never really gave the data sources tab much of a chance to begin with.

jlego 15 Posting Pro

..

jlego 15 Posting Pro

go to project - > properties -> application files

make sure under publish status everything says include

prerequisites, make sure the windows installer and .net framework are checked and check download prerequisites from the component vendors website

this application is available offline as well(launchable from the start menu)


how are you installing it on the remote computer? (cd, shared folder, etc.)

Manchala commented: Nice Job +0
jlego 15 Posting Pro

your welcome please mark as solved

jlego 15 Posting Pro
SELECT

STUDENT.SURNAME

FROM

EXAM_MARKS

INNER JOIN STUDENT ON

EXAM_MARKS.STUDENT_ID = STUDENT.STUDENT_ID

WHERE

MARK > whatevernumberyouwantitobegreaterthan
vedro-compota commented: ++++++++++++ +1
jlego 15 Posting Pro

i think he is doing this

select table1.ID, table2.ID as ID2 FROM table1 INNER JOIN table2 ON table2.table1_ID = table1.ID WHERE table1.active = -1 and table2.active = -1
VINOD_2553 commented: hi have no two tble , +0
jlego 15 Posting Pro
if isnumeric(myArray(x)) = true then

try and catch could be used to, but isnumeric is easier.