|
Thank you, Sir. I have found a reference for making the required helpfile, .dll-Help.xml, so that one is fixed.By "During Runtime" I mean once the cmdlet is invoked by the user.
SessionState.PSVariable.Get/Set is a new one so I will investigate that; and likewise the MyInvocation property. I think I just retrieved "Powershell" from "My.Application.Info.CommandLine", which was not what I wanted.
I am still trying to set the -Verbose switch within a (Visual Basic) PS Cmdlet and can not get it to work:
Imports System.Management.Automation.PSCmdlet
Imports System.Management.Automation.SwitchParameter
Imports System.Management.Automation.Internal.CommonParameters
Dim setting As System.Management.Automation.Internal.CommonParameters
setting.Verbose = True 'Verbose is a SwitchParameter so should be settable.
(ERROR):variable 'setting' is used before it has been assigned a value...
modified on Friday, November 6, 2009 11:18 PM
|
|
|
|
|
Hi Friends,
I am trying to create dynamic Excel sheet with some kind of Pivot graphs in excel.Its working fine in mylocal system.But when i deployed in the server machine.Its saying Cannot create ActiveX component.
I tried with oexcel = New Excel.Application()
oexcel = CreateObject("Excel.Application")
Its working fine in local but not in server.
Please suggest me if any solution for this .
Regards
Ravi
|
|
|
|
|
Do you have the same version of Office installed on the server?
|
|
|
|
|
Also you should check the Interop assembly and making sure it is either included with the project (My Project -> References -> Copy Local = True) or installed into GAC on the server.
Daniel Rolfe
-------------
Lead Software Developer
VB 2005 ASP ADO - .NET2
|
|
|
|
|
Why does the appearance of my program differ between the different computers that I install it on?
Thanks
|
|
|
|
|
|
There are many possible causes. For someone to give an answer that is likely to be correct it would help if you are able to say in what ways it is different.
For example are the colours used different? Are the fonts different? Are the forms a different size?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I'm gonna bet my $.02 on a different set of common controls. A cool button on one PC, an old fashioned-button on the other.
I are Troll
|
|
|
|
|
Yea the Form size is different, one button was completely blacked out on the form until i changed the theme to xp, is there a way to make the program just adapt to whatever theme the computer is using?
Thanks
|
|
|
|
|
RyJaBy wrote: Yea the Form size is different,
screen Resolution would do that.
|
|
|
|
|
I haven't tried myself, but you might be able to solve it by adding a Manifesto[^]. The blog entry is for WPF, but I expect WinForms to have the same requirements.
Try this CodeProject article[^] on Visual Styles
I are Troll
modified on Friday, October 23, 2009 2:53 PM
|
|
|
|
|
Hi When i try to install my program on a computer that is 64 bit, it does not install. Does anyone know why this is, or how to overcome it?
Thanks
|
|
|
|
|
That would depend on what the error message is. You might want to check in the machines eventlog.
|
|
|
|
|
Hi Guys,
Does any one know how to set the document name of a crystal report that appears on the printer job list.
thanks
|
|
|
|
|
Hi to every body,
I'm a beginner and maybe I'm trying doing something too hard for me, so I try to ask you.
I have an application that prepare an email, without send it because the user has to add some other information to the body mail.
Until here I have no problem:
Dim oApp As New Microsoft.Office.Interop.Outlook.Application
Dim oMsg As Outlook._MailItem
Dim tBody As String, tSubject As String
oMsg = oApp.CreateItem(Outlook.OlItemType.olMailItem)
tSubject = "Claim management reference "
tBody = "Your Claim, referenced "
.....
oMsg.Subject = tSubject
oMsg.Body = tBody
oMsg.Display()
Now I have to understand if:
User press SEND (in this case I also have to looking for the sent mail an copy it to a Windows Folder)
User press CANCEL (in this case nothing happen)
I read somtihing about Inspector and event handler, but I have no idea how to begin.
Coould you please help me?
Thank you and best regards
Leonardo
|
|
|
|
|
Leonardo:
To save a message to a specific folder you would use the following code:
oMsg.SaveAs("C:\FolderName\Message.msg")
To save a message to the Drafts folder of outlook:
oMsg.Save()
Hope this helps..
:::EDIT:::
Also, using the Intellisense and Object Explorer features of VStudio will answer a lot of your own questions.
Intellisense will show you all available and exposed methods, properties and functions for objects.
Object Explorer will give you a full rundown of the methods, properties and functions within a class.
Daniel Rolfe
-------------
Software Engineer
VB, ASP.NET, ASP, PHP, SQL Server 2005, SQL Server 2008
|
|
|
|
|
Thank you, but this isn't what was I looking for.
I'm able to save a message, but I must understand if the user press SEND or CANCEL the email.
I have to do so, because VB2005 open Outlook with a new mail with subjecy and body filled. But I need that the user can modify the body or the recipients.
Finally, if the user send the mail I need to save it, otherwise nothing happen.
Can somebody haelp me?
Regards
Leonardo
|
|
|
|
|
Good Day All
I once created a controller in Visual Studio for a C# project.
This controller included CheckBox, two TextBoxes, and a NumericUpAndDown, all in one sort-of "dataGridView-type" controller.
I am struggling to replicate this result in any way.
I want to all these controllers within the GridView, having a Header row for the labels, as with any of data from a database for a GridView.
I am not sure if creating a GridView and inserting these controllers into each cell would work, but my attempts thus far have lacked any outcome.
Could someone please assist as to how to go about this, and whether or not what I am doing is in fact on the right track?
Thanks in Advance
|
|
|
|
|
I assume you meant: I have a created a user control and want to add it as a column to the datagridview.
If I am right, then your user control class should inherit from the DataGridViewColumn class. That way you can add you control as a column of the DataGridView . Read this[^].
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Hey There
Yes, you were right in your assumption.
Thanks a million for the help!
Its a tricky bit of code to have written from scratch, but simple to implement from here.
Thanks Again!
|
|
|
|
|
Hi all,
Thanks to all those who have replied to my posts earlier.
I want to add a new icon in the MessageBoxIcon list.
Is it possible? If possible how to accomplish it.
Thanks in advance.
|
|
|
|
|
No, it is not. You would need to create your own dialog class to do that.
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.
|
|
|
|
|
Thanks a lot for the information.
Will try to create my own dialog.
|
|
|
|
|
|
Hi guys, i need help. Below i c/p code, to explain in short, in abstract class i have login authentication, i inherit that abstarct class on all other classes that i need to be secured, now what i wan tis that if my abstract class does invalidate user, to be stoped and render login page, otherwise it will continue processing and on end render index page.
Public Class Secure
Public Sub New()
If Not User.Authenticated Then
RenderLogin()
End If
End Sub
End Class
Public Class Index
Inherits Secure
Public Sub New()
LoadMessages()
LoadTasks()
RenderIndex()
End Sub
End Class
The question is, how do i stop further executing after RenderLogin() method? I don't want it to continue constructing new Index class. Btw, all this is run inside http context, but i did put it in here and not in asp.net since this has more got to do with VB and classes than with asp. Oh, and i know i can write Response.End, but i would like to avoid this - because of "System.Threading.ThreadAbortException" errors which go on my nerves.
|
|
|
|