|
Dave Kreskowiak wrote: I couldn't tell you how to do it in VB6
It needs a bit of API trickery. There's a link to a message here which contains some example code, if you see past the atrocious formatting
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
Hi,
I want to load a form as readable only..
this form user can do editing on one instance but other instance I want the same form to be readable only.
thanks
|
|
|
|
|
You'll have to add code to the form to expose a "ReadOnly" property. You'll also have to provide code to disable all the controls on the form, or if any have a ReadOnly property, enable them. There is no one line of code that will do this for you.
|
|
|
|
|
I'm new to encryption, but have been searching high and low for answers for the past three days. Our bank wants us to FTP our payroll file via PGP. In the past we've used a modem to transfer the file. Years ago we used DOS command files, then VB6 and over five or six years ago I rewrote it in .NET.
I'm trying to basically code a FTP solution which is working fine with the bank. I just need code to encrypt the file in a PGP format prior to uploading.
There are several fine "Simplified Encryption" articles and VB solutions on CodeProject, but none of them really address PGP.
There is a C# wrapper to GNUPG which is accessed using an ASP webservice. I could have my Windows app access a Windows service to pull this webservice wrapper tied to the GNUPG.org windows app. Of course as soon as GNUPG.org puts out a new version my payroll app could break.
Isn't there a simpler way to encrypt the file in PGP format for the bank using .NET?
Any help is appreciated
Lost in the vast sea of .NET
|
|
|
|
|
None of the .NET Framework versions come with a PGP implementation. You'll have to use a third party library to do this. This[^] article looks promising.
|
|
|
|
|
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.
|
|
|
|