How To Get Security Descriptor Working With CreateNamedPipe API Function

Jun 30, 2010

Can anyone help me figure out how to get a security descriptor working with the CreateNamedPipe API function? At this moment I get Marshal error 1336 "The access control list (ACL) structure is invalid." with the CreateNamedPipe function. All of the other functions seem to be completing sucesfully and are returning proper handles.[code]

View 3 Replies


ADVERTISEMENT

Security Descriptor Length SECURITY_ATTRIBUTES

May 19, 2010

I am tasked with fixing a service. It is acting like Mutex's are allowing Clients to enter a procedure when it should not. I looked at the security attributes and they are...

[Code]...

View 1 Replies

C# - Add A Service To The Type Descriptor Context Of A Property Grid In .Net?

Apr 13, 2010

I have an app that allows the user to choose an image, at design time, either as a straight image, or from an image list.

All cool so far, except that this is not happening from the visual studio property browser, its happening from a property grid that is a part of a type editor.

My problem is, both the image picker (actually resource picker), and the imagelist type converter rely on some design-time services to get the job done. In the case of imagelist, its the IReferenceService and in the case of the resource picker its a service called _DTE.

In the first instance of an edit from the visual studio property browser, I could get a reference to these services but (1) how can I add them to the type descriptor context of my property grid?

It would be better, for future proofing, if I could just copy a reference to all of the services in the type descriptor context. (2) Where does the property browser get these services from in the first place?

ETA: I still don't know how to do it, but I now know it is possible.

(1) Sub-class control and add a property whose type is an array of buttons.

(2) Add it to a form.

(3) Select the new control on the design service and edit the new property in the property browser.

(4) The collection editor dialog pops-up

(5) Add a button

(6) Edit image and image list - the type editor and type converter, respectively, behave as they should.

ETA2: Ok, I'm getting warm. It looks like you do it through the Site property of the property grid. I can create a new site, and pass it the type descriptor context I have a reference to and then it should have all the service. I'll give it a go ...

View 1 Replies

Format Function Not Working?

Jun 8, 2010

[code].....

View 5 Replies

Update Function Is Not Working?

Jun 6, 2009

I'm developing a system and the system contains an update function to update the DB. I have performed all the coding but have some minor problem in my SQL Statement and I'm unable to detect the SQL Statement Error. Hope someone could rectify the problem.

[Code]...

View 5 Replies

File.Exists Function Not Working?

Feb 7, 2012

file.Exists function not working
Dim f1 As New FileInfo(Server.MapPath("/CaseStudyImages/TemporaryImages/"))
Dim f2 As New FileInfo(Server.MapPath("/CaseStudyImages/" & success & "/"))

[code]....

View 2 Replies

FileClose Function Not Working Properly

Jun 14, 2011

I'm using fileopen() function to open the file, after doing all the works I'm using fileclose() to close the file. But when I access the file again it returns already the file is opened by another process.

Sample:
Dim intFile As Integer = FreeFile()
FileOpen(intFile, mstrFilename, OpenMode.Binary, OpenAccess.Read, OpenShare.LockWrite)
FileClose(intFile)

View 1 Replies

Forms :: Dispose Function Not Working?

Mar 10, 2010

Loading another form increases the memory usage of the application and after closing is not combing back to normal? dispose function at formclosed event is not doing that

View 12 Replies

Function Key Form Combo Not Working?

Aug 10, 2010

I have a form that displays a graph. From the appropriate toobar button click frmGraph.show is called and it works. But when I call it from the assigned F6 function key the graph hardly ever displays. Sometimes it does display properly, sometime it flickers a one time display of the graph then it's gone, but mostly the form just draws the background but no graph. In debugging this i discoverd that putting a message box just before the call to frmGraph.show the graph will display properly everytime after i click ok in the messagebox. Anyone know how to cure this or at least a workaround that doesn't involve displaying the messagebox? This is the code with the messagebox("here") just above the call.

View 8 Replies

Get Double Buffer Function Working

Dec 13, 2011

I've been trying to get the double buffer function working in VB.NET GDI+ for a space invaders game using the following command.[code]But because I am using a separate draw routine attached to a class it doesn't seem to work:[code]The aliens draw correctly but the images are very stuttery and double buffering doesn't seem to work.

View 1 Replies

IDE :: Function Description(documentation) Not Working In .NET?

Sep 28, 2009

How is it possible to add a function description in VB.NET (VS 2005)? in C# this task is resumed to tape 3 times the "/" simbol just above the function declaration. (generates the <summary> tag and others)

View 14 Replies

Javascript - Function PageLoad Not Working?

Aug 31, 2011

I have the following code which I want to run when the page first loads and then again when an update panel (asp.net) is run. Therefore I need to use function pageLoad() rather than document.ready.

function pageLoad() {
$(".zoomImage").each( function() {
$("<img src='"+$(this).attr("src").replace("-thumb.jpg",".jpg")+"' />").appendTo(".howitworksText > div");
});
};

Problem is I can only get this working with document.ready - so therefore not when the updatepanel is run.

View 1 Replies

Recursive Function Is Not Working Properly?

Feb 11, 2010

have an xml file like this.

<?xml version ="1.0" encoding ="utf-8"?>
<menu>
<menuNode title="Register" value="true">

[Code]....

View 2 Replies

Root Directory Function Not Working

Feb 12, 2009

I found the following example of how to print a root directory on the net
Code:
Sub Main()
Dim Current As String
Dim Root As String
Current = Directory.getCurrentDirectory()
Root = Directory.GetDirectoryRoot(Current)
Root = Directory.GetDirectoryRoot("")
Console.WriteLine("Current directory {0}", Current)
Console.WriteLine("Root directory {0}", Root)
End Sub
However it just causes the error "name directory not declared"

View 1 Replies

Split Function Not Working On Array

May 19, 2010

[Code]...

I have an array with about 10 items in it. In order to get the desired functionality I need to append some text to each item in the array in order to sort it properly. Once it is sorted I want to remove the text I added and then just display the second half of each item in the array. The sort works great, but the split function is not worrk.

[Code]...

View 9 Replies

VS 2008 GetCookies Function Not Working

Oct 14, 2009

I wrote a simple GetCookies function but it's not working...

[Code]...

For some reason or another the WebResp.Cookies.Count always = 0 even though I know it's not true. Why is this?

View 2 Replies

VS 2010 - How To Get ScreenToClient Function Working

Mar 12, 2012

I have no clue how to get ScreenToClient working. I declared the function using:
Private Declare Function ScreenToClient Lib "user32" (ByVal hwnd As Integer, ByVal lpPoint As POINTAPI) As Integer
Then:
Private Structure POINTAPI
Dim x As Integer
Dim y As Integer
End Structure
[Code] .....
What I want to do is move the cursor to 29,109 of the hwnd, not my screen (hence why I'm trying to use screentoclient).

View 9 Replies

Working On A Spider Bot And Hit A Snag In The Last Function?

Jul 20, 2008

I'm working on a spider bot and hit a snag in the last function?'This function navigates the web browser control to the entered URL.'It wait till the document is loaded completely into the browser control by testing the ready state of the web browser control. 'Then it returns the web browser document.

Private Function Navigate2WebPage(ByVal URL As String, ByVal TimeoutInterv As TimeSpan) As HTMLDocument
Dim T1, T2 As Date
Dim Interv As TimeSpan
Try

[code].....

the problem lies with "SHDocVw.tagREADYSTATE.READYSTATE_COMPLETE" I an example of it on the net and it works in the sample app but not in mine. It won't compile because it says "Name ShDocvw is not declared" and i've searched through the example app and can't find it "declared" anywhere. I had a look at the designer generated code and found

2003 - Friend WithEvents AxWebBrowser1 As AxSHDocVw.AxWebBrowser
2005 - Friend WithEvents WebBrowser1 As System.Windows.Forms.WebBrowser

what is a AxSHDocVw.AxWebBrowser? Now i've done some searching and found that apparently "SHDocVw.tagREADYSTATE.READYSTATE_COMPLETE" no longer works in 2005.

View 3 Replies

System.Security.SecurityException: System.Security.Permissions.SecurityPermission?

Jul 27, 2010

I am getting the following error message when I try to call this program from a shared drive on our network;

System.Security.SecurityException: System.Security.Permissions.SecurityPermission
at EMAILVB.EmialVB.EmailVB_Load(Object sender, EventArgs e)

[code]....

View 5 Replies

Forms :: Create A ControlArray Instead Of A Non-working For-Function?

Aug 7, 2011

My Problem is, that I have some Buttons, Labels and TextBoxes I need to generate after the User told a number of Players. With the Code I'm using now only the last Player will have these Controls working, because they are moved - for example - from Player 1 to Player 3. how to create such a ControlArray The biggest Problem I have is, that these buttons have to have names like "1", "2", "3" and so on (or if it works somehow to read out the Index of a ControlArray the names will not be necessary).

This is the code I am using right now to generate the Controls, but as you see it won't work, because the properties will be changed when the For-Function restarts.What I need is a hint on how to get these Controls/Buttons into a Control-Array and then read out the Index-Number to use them in the Functions that are called.

Public Class Form1
Private btnTestNumButtons() As System.Windows.Forms.Button
Private Sub CreateButtonArray()[code]......

View 1 Replies

IDE :: Debugger F8 Step Into And Other Function Keys Not Working?

Sep 30, 2010

I've reviewed the other posts regarding this subject. I'm using VB from Excel and the function keys are not working. I'm running Windows Vista Home Premium with Office Ultimate 2007 Looks like Excel is running VB 6.5So, this used to work for me...I've used the debugger quite a bit. When I try the solutions suggested Tools->Options->Keyboard (after checking check-box to show all settings) when I click on the box just below "Apply the following additional keyboard scheme" the only item in the list is default. There is no selection for VB 6 or anything else for that matter.

View 2 Replies

Loop Function - Iteration Not Working As Intended

Jan 18, 2012

I'm using a DO interation to loop a function I'm using to test for internet connectivity. The code is working fine, except that when one of the tests is satisfied the loop stops. I want this to continue in the background while the program is running. How can I get this to work?

Private Sub checkInternet()
Dim InetChecker As Boolean
InetChecker = CheckForInternetConnection()
Do While LabelCount.Text <> ""
Thread.Sleep(10)
[Code] .....

View 3 Replies

Winforms - Writer To Excel Function Working On One Pc But Not On Another

Mar 29, 2011

I have a vb.net function which uses oledb to create a spreadsheet, then treat it like a database, creating tables and inserting values. The function takes in a filename and a dataset, and returns the filename if it worked. The function works beautifully on my dev machine, but not other PCs. Below is my function, is there anything wrong with the code? EDIT: There are no errors being thrown, the resulting file doesn't contain any data.

[Code]...

View 3 Replies

Working Function Adding Recursive Breaks It?

Oct 21, 2010

I am looping through all folders on the computer in a background worker. Starting with just the C: drive, the function works perfectly I've been tasked with adding recursiveness to this function to loop through all subfolders within each and every folder.

This is the working code without recursive. Startpath is set = "c:".

Private Sub BackgroundWorker1_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
Dim fs As New FileSystemObject
Dim fsfolder As Folder
Dim subfolder As Folder

[Code]...

EDIT: I was doing some testing and threw in an if check to skip the C:$ folders. Working ok so far and noticed something really strange. It doesn't loop through all the folders in the C: drive. I think it will loop through only the first 2 folders. One is C:Boot so I skip that and the other is C:Dev-cpp. It won't loop through the Program Files, Program Files (x86), or Users.

View 4 Replies

.NET Function Pading Blank Space To The Right Of String - Not Working?

Jun 10, 2010

My Requirment is to Leave Blank space to the right of the each Lable (String) in Chart in SSRS.

Using Custom VB.NET Function, i want to Pass String Lable to VB.NET Function and then Function Return String with Padding Blank Space to the right of String.

Example :Lable String is : "United States of America"

My Lable output should be : "United States of America "

How can we achieve ?

Let me know if you need mor information.

is there any other way to achieve this ?

View 8 Replies

Backup / Restore Function Working Fine On Windows XP?

Mar 9, 2010

I have a backup / restore function working fine on Windows XP. When I deploy the application onto a Vista OS OI recieve the following error, can somebody please advise me how I can resolve this issue?

System.IO.FileLoadException: Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

File name: 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'

View 2 Replies

FlagsAttribute Enum - Function To Check The Permissions Is Not Working

Jan 16, 2010

I have a Session value that stores an integer representing what permission a user has to perform tasks in my application. For some reason now however, the function to check the permissions is not working. On the line indicated by the comment, the CTYPE action always returns the integer value, and not the list of Enum values. Can anyone please see what's going wrong here.

[Code]...

View 4 Replies

Function To Test Variable Price1 Going Once Over Price2 Is Not Working?

Feb 3, 2010

The data:

Date
Name
Price1

[code].....

View 2 Replies

IDE :: Copy Paste Function Is Not Working When The Application Is Running Behind?

Jul 5, 2011

I have created an application using visual studio 2008. The application is to copy the data from one excel file and paste to another excel file. The problem happen when i try use the copy paste function at the same time in other excel file.(I have opened others excel file before the application start.) I'm noticed the value that i paste is not same from what i copy in the excel file.(the application is running behind and using copy paste function at the same time.) How to hold the value using vb.net when copy from excel for the application so that other copy paste function is not affect it?

View 2 Replies

VS 2008 DataGrid Column Width Function Is Not Working?

Mar 15, 2010

My function is not working now?

Sub fillGridData()
Dim dt As New DataTable
dt = objGM.getGradeMasterData ' method return a DataTable
dtgGrade.DataSource = dt

[code].....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved