|
I was hoping for a .NET Framework solution. I'm currently thinking about switching to SSL / TLS for a secure FTP. It looks like all I have to do is add EnableSSL = True to my ftp class. I'm still researching this, because the PGP solution was not simple at all and this seems way too simple.
Thanks for your answer! You've answered many of my questions over the past many years and it is always appreciated.
Lost in the vast sea of .NET
|
|
|
|
|
|
hi friends,
i have entered some text in datagridview.
i need to enter each character will automatically show capslock
in datagridview..
(i mean how to enter capstext in datagridview ?)
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
I am not making any promises, but you could try this:
Private Sub DataGridView1_CellValueChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellValueChanged
DataGridView1.CurrentCell.Value = DataGridView1.CurrentCell.Value.ToString.ToUpper()
End Sub
My advice is free, and you may get what you paid for.
|
|
|
|
|
ya its working good...thanks
but its working after entered text.i need current instance of capstext.
or
whatever change in grid its show the typed information in label box.
this need also current instance...
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
So you probably need to trap the keydown event and do it there.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Already i checked, its not working....
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
It may be the keypress event you want, but its on the key press/down/up event that you need to do your conversion. Try putting code in all the key events for the control and run in debug to see what fires when.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
its working on cellvaluechaged event
For x = 0 To MSF1.RowCount - 2
MSF1.Item(2, x).Value = MSF1.Item(2, x).Value.ToString.ToUpper()
lblJobname.Text = MSF1.CurrentCell.Value
Next x
but same problem occur in instance of display entered information.
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
Hi,
i have wriiten one simple code for value Checking but the code is working for a single digit number for double digit it doesnot work, i dont no why. Please help me reg this. My simple code is
If (txtqty.Text > "2") Then
btn3.Visible = False
btn3.Enabled = False
txtp3.Enabled = False
txtr3.Enabled = False
Else
btn3.Visible = True
btn3.Enabled = True
txtp3.Enabled = True
txtr3.Enabled = True
End If
|
|
|
|
|
I would suggest you buy a basic VB book and read it. You're doing a string comparison, and you need instead to convert the string to a number.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Since I'm in a good mood:
if isnumeric(txtqty.text) andalso integer.parse(txtqty.text) > 2 then
'do stuff here
else
'do stuff here
end if
should do it
But take CG's advice and go back to reading a book first, this is very basic stuff
|
|
|
|
|
Of course, this code will explode if the user types in anything other than numbers.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Why?
Just tested it and it doesn't
Read the code carefully CG. (tip: 'isnumeric')
And even if it does a nice explosion now and then isn't that bad
|
|
|
|
|
Ooops - you are right. *blush*
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
sir,
I try this, txtqty as one text box in its text change property i have checked
if not is numeric (txtqty.text) then
Msg box ( "Please Enter only numeric values")
txtqty.setfocus
End if
After that while Checking the values in Qty Box through a button click with below code, it was not working, Am not a programming professional, because of my own interest am trying to develop some small projects. dont mistaken me,thanks For your help
|
|
|
|
|
K so you did the check
so now instead of
txtqty.text>"2"
use
integer.parse(txtqty.text) > 2
Your code is comparing a string you can't use that for the > < operators
|
|
|
|
|
I have a crystal report, report viewer and a database. the Crystal Report gets its data when datagridview1 item is selected(changed). But I couldn't find the problem why variable "disv3" can't get value at run time. "DS" is my crystal report dataset which acts as datasource.
Dim rpt As New GradeReport
Dim dd As New DS
rpt.SetDataSource(dd)
Dim paramfield1, param2, param3 As New ParameterField
Dim paramfields As New ParameterFields
Dim discreteval1, disv2, disv3 As ParameterDiscreteValue
paramfield1.Name = "column1"
param2.Name = "column2"
param3.Name = "column3"
TextBox5.Text = "introduction to management"
' For i As Integer = 0 To DataGridView1.Rows.Count - 1
discreteval1 = New ParameterDiscreteValue
discreteval1.Value = DataGridView1.CurrentCell.Value.ToString
paramfield1.CurrentValues.Add(discreteval1)
disv2 = New ParameterDiscreteValue
disv2.Value = DataGridView1.CurrentRow.Cells(1).Value.ToString
param2.CurrentValues.Add(disv2)
disv3 = New ParameterDiscreteValue
' TextBox5.DataBindings.Add(New Binding("text", bs, "coursename"))
c.custView = New DataView(c.ds.Tables("student"), "", "studid", DataViewRowState.CurrentRows)
For c.rowIndex = 0 To c.ds.Tables("student").Rows.Count - 1
disv3.Value = c.custView(c.rowIndex)("StudentFullName").ToString
param3.CurrentValues.Add(disv3)
Next
paramfields.Add(paramfield1)
paramfields.Add(param2)
paramfields.Add(param3)
GradeReportForm.CrystalReportViewer1.ParameterFieldInfo = paramfields
GradeReportForm.CrystalReportViewer1.AutoSize = True
'Next
GradeReportForm.CrystalReportViewer1.ReportSource = rpt
GradeReportForm.Show()
GradeReportForm.CrystalReportViewer1.Refresh()
modified on Tuesday, August 18, 2009 5:09 AM
|
|
|
|
|
I Want Use a chart in Form In Vb.net
and my chart read a value from table in database
and i want to chart represent value by percent
help me....
|
|
|
|
|
If you bought a charting package, read the docs or ask them for help
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi friends,
i want to download winpadlock activex control for vb as free.
where i get that?.
i already try in the following website but it not works properly.
www.winPadlock.co.nr
www.winPadlock.uni.cc
[^]
other websites are give that freely by they ask to join member with some payment.
i want free download of that, where i get that?
plz help.
thanks
Vasanth.A
|
|
|
|
|
If it's not free, then you need to pay for it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
It's amazing what you can find when you type "winpadlock" into Google.
|
|
|
|
|
I try to fix the small problems that my calculator has
For example, if I type 78/3=26 (all this from keyboard)
This is what I want the program to work.. If I type 78 from keyboard with "/" (divide) and 3.. when I hit "ENTER" from keyboard. I should get 26...
my current calculator doesn't accept "/" (divide) and ENTER to give result
if found this code online, can someone try to fix or tell me how to make the code below work for my problem
code:
Private Sub txt_KeyPress(ByVal KeyAscii As Integer)
If Not IsNumeric(Chr(KeyAscii)) And KeyAscii <> 13 _
And KeyAscii <> 45 And KeyAscii <> 8 Then
KeyAscii = 109
End If
End Sub
My second problem on my calculator:
I want to check if the number enter to textbox is the at end of textbox, then
it give me a beep sound...and do not accept any more numeratic number (1-9)...and the beep sound when the user try to press any number 1-9.
my current code doesn't work...please help me and see my code below. how to fix the code below that will work for me?
If TxtDisplay.MaxLength = "27" Then '27 means the only max number 'can enter in textbox
TxtDisplay.Enabled
End If
I appreciated all the great help you can provide!!!!
This code is done in VB 2008
|
|
|
|
|
You are utterly lost.
1 - you have code to only accept numbers. The code is crap, but it will work. You need to add code to accept the /, etc, as well as writing code to parse what is entered. Your best bet is to store numbers as you detect a modifier, then work on them from there.
2 - Again, you are lost. You can set the max length property, but it's not going to be a string, surely ? Either way, setting the max length is all you need to do, unless your code from question 1 actually stops accepting numbers after a certain length.
Overall, it looks like you're grabbing code off the web and guessing. If you're doing a class, read your book. If you're teaching yourself, buy a book.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|