|
ok thanks i am using vb.net that relives alot of frustration
|
|
|
|
|
Hi all...
I have used a tabcontrol with several tabpages.Each tabpage contains several buttons and textboxes.Buttons are drawn at run-time.
I want to know that how can I access a button drawn on tabpage6 so that I can use a handler for its working.
Suggest me how can I do this.
Thanks.
Gagan
|
|
|
|
|
If you are adding the control at run-time then you must have Dimensioned the control already, so add a handler to the Dimensioned reference of the control. Also see TabControl.TabPages(index).Controls , where index is the number refering to the required tab page.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
how to create the interface between my Smartcard and omnikey card reader in VB
|
|
|
|
|
Creating another account and asking the same question doesn't change the answer.
|
|
|
|
|
i have some code withe winscards dll file .i will like to know how to reference that file in v.b and after referencing it can it help me write and read from the smart card. i am using ominikey reader.Thank you
|
|
|
|
|
You already found the class library someone wrote to work with smart cards. If you can use that library, great. If not, you're going to have to write your own, probably using the library you found as a bit of a guide to doing it.
|
|
|
|
|
hi , how to do the custom deployment of vb.net windows applications project . for example after completing deployment project application , when we install .exe file i want to show two options .custom install
.typical install
please send me step by step how to custom install deployment of vb.net windows application.
|
|
|
|
|
I'd recommend using a more professional Windows Installer creation package, like InnoSetup, or Wise Package Studio, or something else. You're starting to get into customaizations that are either beyond the capabilities of the basic installer project in Visual Studio, or are just too much of a pain to implement in it.
|
|
|
|
|
i cont get correct information , please give how to deploying in windows applications
|
|
|
|
|
In Visual Studio, you'd have to crete the custom form, add it to the dialogs, then write all the code behind deciding what to do and how to do it, then write the Installer script that's going to do the actual file copy and setup.
I can't give you a step-by-step on how to do this in a forum post, because, frankly, it would take up a small book.
I highly suggest picking up a professional install generation package, where most of this stuff is going to be done for you.
|
|
|
|
|
Hi
In my project i will have a progress bar form and then show the new form with out loading time of the new form.Anybody send me a coding or any suggestions to me(The new form loading time is long so will show the progress bar)
Thanks in Advance.
|
|
|
|
|
how about typing "progress bar" in Google's search box? or CodeProject's?
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hi,
i m facing a problem with crystal report.
I have developed an application at my PC and It's working fine and Showing All Reports.
But when i test my application at another PC then It is asking for UserID and password. Although i am not saving any UserID and Password for Database.
Thanks in advance...
Regards
Mitesh
|
|
|
|
|
This is one of the more documented problems you encounter with Crystal Reports. All you need to do is a little reading of these[^] to get your answer.
|
|
|
|
|
hi
i want to store a password in the database.
for that i m using encrypt and decrypt
for this task i written the following code
i can perform encrypt but while decrypting i could not get back the actual text
please help me ...
this is the code i written ....
Imports System
Imports System.Text
Imports System.Security
Imports System.Security.Cryptography
Imports System.Web.Security
Public Class Form1
Dim xmlpublickey As String
Dim xmlprivatekey As String
Dim plaintextarray() As Byte
Dim hpertextarrray() As Byte
Dim restoredPlainText() As Byte
Dim RSA As New RSACryptoServiceProvider
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
xmlprivatekey = RSA.ToXmlString(True)
xmlpublickey = RSA.ToXmlString(False)
End Sub
Public Sub Encrypt()
RSA.FromXmlString(xmlpublickey)
Dim msg As String = ""
msg = txtoriginal.Text
Dim ue As New UnicodeEncoding
plaintextarray = ue.GetBytes(msg)
hpertextarrray = RSA.Encrypt(plaintextarray, False)
txtcypher.Clear()
For i As Integer = 0 To hpertextarrray.Length - 1
txtcypher.Text = txtcypher.Text + hpertextarrray(i).ToString()
Next
End Sub
Public Sub Decrypt()
RSA.FromXmlString(xmlprivatekey)
restoredPlainText = RSA.Decrypt(hpertextarrray, False)
txtRestrored.Clear()
Dim str As Byte
For i As Integer = 0 To restoredPlainText.Length - 1
str = restoredPlainText(i).ToString()
txtRestrored.Text += GetChar(str, 1)
Next
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Encrypt()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Decrypt()
End Sub
End Class
thanks in advance
lavan kumar
|
|
|
|
|
OK. After taking a look at your code, I'd say scrap it and rewrite it in a more organized fashion, modeling it from this example[^].
|
|
|
|
|
Dear All
I am using public form to handle the current form in the mdiform
like
Public frm As windows.forms.form
and then assign it to a form using the following lines
frm = New Form1
frm.MdiParent = Me
frm.Show()
and usually calling common sub included in every form
but vb2008 shows and error while debugging before run the application checks the included sub in the public form before assigning a form to it and shows
"sub name " is not a member of 'System.Windows.Forms.Form
could anyone help me to avoid this error or show me an alternative way.
Regards
Aiman Farouk
|
|
|
|
|
Aiman Farouk Mohamed wrote: "sub name " is not a member of 'System.Windows.Forms.Form
The error indicates that the subroutine is not found in the object your trying to call it from.
I presume your subroutine is implemented in the Form1 object ?? You can either cast it or change the form variable to Form1 insteast of Windows.Forms.Form
Public frm As Form1
frm.YourSubroutine()
Or using your exisiting code, replace the call to the subroutine as
(frm as Form1).YourSubroutine()
|
|
|
|
|
This doesn't work because you created a normal (nothing on it) instance of a Form class. If you already have a form defined, you should be creating an instace of THAT form, not System.Windows.Form.
|
|
|
|
|
Hello,
I am looking for the methodology to develop the program (preferably webservice) to allow the multiple users on the LAN , to have the certain permission based access on the storage media (like westren digital mybook that connects to the usb port of the computer) ,
so that every user has a purticular quota on the storage media and no body else can access
their folder as well.
need some guidence in this regard.
|
|
|
|
|
So what's with the web service?? What's is it supposed to do??
This is normally done through proper use of NTFS permissions. And it's something that you just set once and forget about it. This is typcially done by LAN Administrators when they setup a new user ID. A directory is also created in a share that houses everyones home directories, then the NTFS permissions are set to allow only that user and the administrators access to it.
|
|
|
|
|
Well the problem is you can do that stuff in case of some domain setup , but it is not the case here. The thing here is to create the type of application that can do the job .
|
|
|
|
|
NTFS permissions are still set the same way, domain or no. Your problem is that in a workgroup setup, each machine maintains it's own set of accounts and no machine trusts the accounts of another. So...
I still have no idea what a web service has to do with this or what you're ultimately trying to accomplish. Your description doesn't make much sense.
|
|
|
|
|
Hello friends,
I am developing an application which handles MS-Outlook programmatically.
I have developed an application which send/recieve emails, reads-inbox,outbox, trash,drafts, etc.
but i am puzzled in one thing is that While reading a bounced/failured emails i saw one things
1)if Ms-outlook is configured with pop.rediffmailpro.com then original message comes with .msg files. while
2)if Ms-outlook is configured with pop.gmail.com then original message comes with mailer-daemon failure body
my question is that
1)who generates .msg files ms-outlook or mailserver ? who ?
2)when .msg file generate?
Can anybody help me. ?
Waiting for reliable/satisfactory answer.
Regards,
Shakil.
|
|
|
|