|
I will post this issue again...
i might get help from some1
thx
Regards
Ramy
|
|
|
|
|
I am writing a command line vb.net application using Visual Studio 2003 and .net Framework 1.1. I am not usually programming in .net so am not very familiar with the environment.
I would like to be able to install my .exe via a copy command, and not have to run the .net framework wizard to authorize it to run. My understanding is the only way I can do that (and please correct me if I am wrong) is to give the application a strong name and use caspol to -addfulltrust it.
Unfortunately, my application relies on a 3rd party dll which provides a COM interface to the work my app needs to do. That dll does not have a strong name, so my efforts to give my app a strong name won't succeed.
Is there a way to add a strong name to an existing dll that I cannot rebuild? Is there a way to give my app a strong name and get around the issue with the 3rd party dll not having one? Is there a better way to allow my app to install without trying to use caspol to set the security?
Thanks,
Barry
|
|
|
|
|
I have a dot net application that uses a 3rd party activeX control. And I don't have to run the .net wizard to enable it to run. I do use an msi to install it. The main thing I would be concerned about is making sure your com object is registered in the host system.
|
|
|
|
|
Load DEnvAparoAtt
With DEnvAparoAtt
If .rsDcmd_OneSubjAtt.State <> 0 Then .rsDcmd_OneSubjAtt.Close
End With
Rpt_SpecificSubjectAtt.Sections(2).Controls(2).Caption = cmb_fac.Text & " ( " & cmb_group.Text & " ) Part-" & cmb_part.Text & " Section ( " & cmb_sec.Text & " ) " & cmb_shift.Text & " " & cmb_Ses.Text & " Student Attendenace For " & Cmb_subject.Text
Rpt_SpecificSubjectAtt.Refresh
If Rpt_SpecificSubjectAtt.Visible = False Then Rpt_SpecificSubjectAtt.Show
i write this code and the data report not show refresh report?
|
|
|
|
|
Hi.
i need to work out how to accept and use the printrange settings of a printdlg accordingly. any ideas as to how i get my printpage handler to print based on for example FROM page and TO page etc.
Many thanks.
Robbo
|
|
|
|
|
I want to change the color of the scrollbar in listview to fit the form color.How can do it?
|
|
|
|
|
I have a VB.NET (2005) program that reads some data from an Access file, makes it available to the user on a DataGridView and does some calculations. My understanding is that if the .exe file and Access input file are moved to another machine that is running Windows XP, then the program should run without needing to do an installation like VB6 requires.
I have placed the .exe file and the Access input file into a folder and copied this file to two other machines. The first machine was a desktop, and everything ran fine. The second machine was a laptop and the error message "The application failed to initialize properly" was obtained when an attempt was made to execute the program. Both machines are running Windows XP, Professional v. 2002 with Service Pack 2, and both have Access 2003 installed. Any ideas on why the VB.NET executable did not run on the laptop?
Rich Feldman
|
|
|
|
|
RichFeldman wrote: Any ideas on why the VB.NET executable did not run on the laptop?
Probably because the laptop does not have the .NET Framework v2.0 installed.
|
|
|
|
|
Thank you. You are correct; the laptop did not have .Net Framework installed.
Rich Feldman
|
|
|
|
|
Install the .NET Framework 2.0 on it. You can get the redistributable installation from here[^] if you don't have it already.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thank-you. You are correct, and thank you for the link. One more question: the link shows three versions of the .NET framework, x86, x64, and IA64. How does one determine the correct version?
Rich Feldman
|
|
|
|
|
The x64 and I64 versions are for 64-bit versions of Windows. You'll more than likely want the x86 version.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I have a datagridview that gets its data from a bound datatable.
I want to make the column into a checkbox column
Something like this, I think, but this isn't quite it.
DataGridToUse.Columns("Active").DefaultCellStyle = Windows.Forms.DataGridViewCheckBoxColumn
thanks in advance
|
|
|
|
|
you can use the designer to change the type of column. in the designer click on the column and view its properties. you should see a property that will change from text to link to checkbox etc.
|
|
|
|
|
Oh sorry, I forgot to mention that this datagrid is being created during runtime.
|
|
|
|
|
You're probably looking for something along the lines of:
With DataGridView1
.Columns.Clear()
Dim newCol As New DataGridViewCheckBoxColumn
newCol.HeaderText = "Header"
newCol.DataPropertyName = "dbColumnName"
newCol.DataSource = dataSource
newCol.ValueMember = "dbColumnName"
newCol.DisplayMember = "dbColumnName"
newCol.Width = 160
.Columns.Add(newCol)
End With
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Try this:
' Initialize and add a check box column.
column = New DataGridViewCheckBoxColumn()
column.DataPropertyName = "GoodGuy"
column.Name = "Good"
dataGridView1.Columns.Add(column)
|
|
|
|
|
|
Hey all
I have a problem updating AD when the value I want to pass in is empty. When I do this I get a login credentials pop up but when the value is not empty it updates fine. An example piece of code:
<br />
Dim user as DirectoryEntry<br />
Dim name as string = ""<br />
<br />
user = getUserFromAD(AccountID) 'This returns a directory entry from AD<br />
<br />
user.Properties("givenName").Value = name<br />
If I actually go to AD and modify it then empty strings are allowed.
Any help will be much appreciated, thanks in advance.
|
|
|
|
|
I'm not 100% sure about this, but I don't think you can't set a property to an empty, or null, value. In order to accompish something similar to that, you'd have to remove the property involved from the properties collection of the host object.
Sorry, I don't have any examples because I haven't done any AD development.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Cheers, I thought it would be something like that. I'll just use the work-around of entering a single space in when the value I want to send in is empty, then when retrieving the data I'll check for that and return an empty string to the UI.
|
|
|
|
|
i want to learn how to send email only using api
thanx in advance for any help
|
|
|
|
|
DotNet54 wrote: i want to learn how to send email only using api
What API? The only way to send Mail in VB.NET is through an API. The one provided by .NET would be the easiest I'd imagine.
|
|
|
|
|
sorry i was asking about vb 6.0
|
|
|
|
|
You can use a mail component.
Or use SMTP commands directly with all error handling using the WinSock control.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|