Answer Questions
humair Correct Permissions to start a .NET Service
I have written a Windows service using VB.NET 2.0. I can install (add) the service using the InstallUtil utility but when i try and start the service i recieve the following error: "Failed to start service. Verify that you have sufficient privledges to start system service." From a permissions standpoint, I have done the following: 1) I have a domain user account (NOT a domain admin) and I have added that user as an administra ...Show All
Bryant Likes Replacing and Writing to a .doc
I have this dee.doc that has a [name] in it i want to replace that with Demetrius and write that line to a new word doc called deee.doc that i am creating...It creates the document but it does not write to the file the info .....what am i missing...any help thanks Dim sr As StreamReader = New StreamReader("C:\dee.doc") Dim doc As FileStream = New FileStream("c:\deee.doc", FileMode.Create) Dim sw ...Show All
aUxC0M CustomBeforeMicrosoftCommonTargets is giving me a no homesite error
Here is the warning from the error list: Warning 5 No 'HomeSite' attribute has been provided for 'Crystal Reports for .NET', so the package will be published to the same location as the bootstrapper. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets 0 0 And the tooltip that appears from the error in the XML file has this warning: The element 'PropertyGroup' in namespace ...msbuild20003 has inva ...Show All
indortas Filesystemaccessrule
I have a function which takes a selected object and returns the NTFS security rights of the object. I am returning the string value for the of filesystemrights.tostring to give me the friendly name for the acl. My Question is how do I return a friendly name for the inherited acls For example the function in my code returns: "Rule grants 268435456 (268435456) access to BUILTIN\Administrators inherited right, inheritance: ContainerInheri ...Show All
Mr Rix method CalculateCharges
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period ...Show All
amol_16 Urgent....common language runtime detected an invalid program
Hi EveryOne, I would like to share this problem with the anyone who may have the solution,,, " common language runtime detected an invalid program " I develop a VB.NET windows application with a form that contains more that 340 controls (radiobutton,checkbox,groupbox,...) but those controls are not the regular VB components. they are altered and added about 20 new properties. After building the solution NO ERROR is showen although this error is ...Show All
Janneman How to save Files with a "SaveFileDialog"
How can I do this Like you type a string in a textbox and you press a button called "Save", and then a "SaveFileDialog" pops-up, and you can choose where to save the file and what to call it. What is the code for actually writing strings into a .txt file Thanks Jack2005_MSFT wrote: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ...Show All
Gka Compiler sending back null exceptions
In my Try Catch, sometimes the exception returned looks like it is a NULL or space (I can't really tell, just that when I print it out in a MsgBox, it is blank sometimes which causes problems later) sometimes. how can I check the exception for length or something then if it's null, replace that blank exception with some sort of text i I have to pass the execption to my email function and my email function cannot take a null like this...so I nee ...Show All
EdgarGustavoPerezGonzalez Saving gif files
Hi people, For a jpg file, you can save the file with the save method of the image object and you can specifiy a quality. code: currentImage.Save(SaveFileDialog1.FileName, _codec, GetQuality()) First parameter is the name of the file. Second is the ImageCodecInfo, here a jpg. Thrid is the quality as encoderparameters. Now I would like to save a .jpg file as a .gif file and I want to set a number of colors that it wants to use ...Show All
Alessio Montagnini Help needed to select specific arrays and diplay in a Listbox?
Ok well the problem I have is that i have to setup a program in which the user selects a Product from its ID which is displayed in a Combobox. Once selected the user clicks the buy button which brings up a quantity input box where the user can enter a number which is calculated and displayed in a Listbox! The problem im getting is that althought it is displaying the information ...Show All
yuvald Newbi for .NET
I found that MSV6 (VB and C++) still work well on XPSP2. So I'm not sure in the future since .NET was released since few year ago. What info which I should consider to move from MSV6 to .NET Now, I'm developing on XPSP2 and 2K Server and 2K DC. Thank you, cgraus, u cleared me :) VB6 is likely to work on Microsoft platforms for a long time. The issues to consider are: VB6 ...Show All
Chuks How to Pass "Pointer Function" as parameter in VB.net
i am developing the video confencing in VB>net but i face some problem where How to pass pointer Function in VB.net ,there is one function " capSetCallbackOnVideoStream" it need "Pointer to the video-stream callback function" as parameter ( from vfw.h) . But i do not know how to send this parameter, do you have idea or you have other solution Besides using the vfw.h component to create video conference, it is there have other way to do in VB. ...Show All
armckelvie Rename a Table in MS Access using VB or SQL statement
Hi all, How can I rename an MS Access table in VB or thro' SQL statement I have 2 clues as given below, but I am not able to get to use these ideas. These statements does not seem to refer the ADO library and hence, I do not know how to arrive at framing a program for these statements. Please help me in using these clues by guiding me how to frame a program around the statements or please let me know if there are any alternative ways. Clue 1: T ...Show All
Adriano Richard Faulting application...faulting module kernel32.dll, Source - .NET Runtime 2.0 Error Reporting
I am getting following error once I double click on the executable of the custom application Faulting application km.exe, version 1.0.0.13965, stamp 4486cb6c, faulting module kernel32.dll, version 5.0.2195.6946, stamp 40d223b8, debug 0, fault address 0x0002bbf3. Km.exe is my custom WINFORM application executable. I believe the above is a common Error Message. It has been a very frustrating experience for last two days exlcuding today. ...Show All
Shima20 ansii and string problem
Hello, I am building a medium difficulty caculator and have finshed it all except for one problem. I have a text box that displays the caculations and I can type into it using the keyboard. But I only want to be able to type certain ansii codes(only numeric integers) ie 0-9, -, +, and "." How can I filter out the string so that only those ansii characters can be typed what are the ansii codes for those characters because I don't want to be able ...Show All
