passaad's Q&A profile
Visual Basic VB6 does not found a dll
A program I wrote was working properly during few days, today show me an error telling me that can't found a .dll, the .dll is in System32, System and in the folder where all the code is it. What can I do to tell VB where the .dll is it Thanks These forums are for VB.NET. I would try: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vb.general.discussion&lang=en&cr=US or www.codeproject.com to get help for VB6. Best regards, Johan Stenberg ...Show All
Windows Forms Weird Autocomplete Combobox Error
Okay, this is a really weird error in my windows form. I have included my test vb class which is a test app. Load it up into Visual Studio.Net and run the app. What is does is populate a combo box with some test data and then it implements some autocomplete code so that as the user types is autocompletes the selection. Now here's the weird scenario that breaks the form: - User clicks combo arrow to drop down list of items - User types the letter 'M' - Combo Selects 'Martin' option - User hits enter key - Combo Selection is still 'Martin' - User clicks combo arrow to drop down list of items - User types the letter 'A' - Co ...Show All
Visual Studio Express Editions Sorting list in combo box
I have a combo box list that starts at 16 and goes up to 255, however I can't seem to get it to list numerically. I keep getting the three digit numbers i.e. 100 to display in the list before 16 which is really the first number. Shakalama gave me some advice on a previous combo box question but not the answer to this. Sorry if it is a bit noobish but I'm new to programming and I'm trying to run before I can walk in some areas. Thanks in advance. Setting the sorted property will sort on the items property in alphabetical order not numeric order. Which is probably what you are seeting. You could make th ...Show All
Visual C# LsaQueryInformationPolicy
Can anybody help with the declaration for using the LsaQueryInformationPolicy function available for use in C#, for example, to use the LsaClose API function after getting a handle to a policy you could use this: [DllImport("advapi32.dll")] private static extern long LsaClose(IntPtr ObjectHandle); A sample snippet where a policy value is retrieved would be perfect but not expected :-) I want to do this on a standalone box, that doesn't participate in a domain, so RSOP thru WMI is not an option since I am interested in the local machine policy. I'd like the solution to be backwards compatible with Fram ...Show All
SQL Server Recordset Destination with Foreach Loop Container - finding indexes
I'm curious to know how other people are handling the Recordset Destination in to be processed by a Foreach Loop Container. It seems a little odd to me that you can only map the parameters by knowing the index of the columns of the Recordset, however, the order that you built the recordset destination doesnt stay the same. I've been debugging for a while to find out that after I saved my recordset destination the order of the fields changed. To some order without a clear logic. I'm going to guess it might be the lineage id. The bigger problem was this was a really large record set with 60 or so columns. To try and debug the problem of ...Show All
Windows Forms create button shortcut
I read that you can create a button shortcut by preceding the button text with an &. I did that and indeed the character is underlined in the design view. The underline doesn't show up in runtime nor will &<letter> cause anything but the menu to activate for keyboard navigation. How do I create a shortcut for a button and get the button to respond to the shortcut> Thanks, /jerry Typically, the underline won't show up at run time until you press the ALT key. If you hold down the ALT key and press the shortcut key, it should raise the Button's Click event. Also, the & can be ...Show All
.NET Development <input type= file name=** Generated at run time
In a function i have created Multiple BROWSE butttons "<input value=""browse"" style=""button"" type=""file"" name=""btnBrowse" + CStr (nPageId) + """>" now in second Function i want to access the filenames How to do that ButtonNames are like btnBrowse32 btnBrowse33 btnBrowse34 ..etc Regards Sarika Hi! Thanks for asking! I'm a member of the ASP.NET team, and was just popping over here to see what was going on. The best place to ask ASP.NET questions is over on the ASP.NET forums at http://www.asp.net/welcome.aspx tabindex=1&tabid=39 The short answer to your question is that you c ...Show All
Visual C# Moving contents of a file
I have a program that watches a folder and when a file is dropped into that file it executes some code on the file then moves it to another file. The problem I am having is I dont know how to select the new file that was just moved into the folder thats being watched. My question is. How can I select a file (or all the files, since their will only be one at a time) in the folder without knowing the files name, and be able to retrieve the name of the new file Thanks I tried both code examples and I found that when you add more then one file at once to the folder being watched the e.FullPath only executes ...Show All
Visual Studio Express Editions How to save Files with a "SaveFileDialog"
I don't Really know how Can someone tell me how Like you type a string in a textbox and you press a button called "Save" then you want to select the folder you want to save the .txt at. Thanks It's a two step process: a) Get the file name and file path: The SaveFileDialog doesn't save anything: it simply allows your user to navigate to an allowed folder and enter a valid filename. The dialog box looks like every other save file dialog box in every other application so your users (usually) know how to use it. b) Actually save the file: Once they have used it, you can get the file name, and pat ...Show All
Software Development for Windows Vista Saving and Reading Filter Graphs
Is it possible to save a filter graph and later recreate it by loading it in from file. I have two applications. One that configures a device and its relevant cross bars (TV Capture Solution) and a second application should utilise those settings. Just wondered if this was possible. Many thanks in advance. You mean something like this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/directshow/htm/saveafiltergraphtoagrapheditfile.asp ...Show All
Visual Studio Difficulty getting Report Parameter Prompts To Display
Hello, I must be doing something wrong, but I have a report in VS.NET 2005 (Local Report) and the report has expected report parameters, however on the viewer it is not displaying the text criteria boxes for the criteria. Will this work or will I need to create a seperate project and use the report server My code sample is below: Thanks! Dan Kisting this .ReportViewer1. ShowParameterPrompts = true ; this .ReportViewer1.ShowToolBar = true ; this .ReportViewer1.LocalReport.EnableExternalImages = true ; this .ReportViewer1.LocalReport.ReportPath = @"Reports\States.rdlc" ; this .ReportViewer1.Show ...Show All
Windows Forms Image ListView Control
Hi everybody I'm looking for a control that can display a bunch of images. Just like the Windows Explorer when you're browsing in a folder that contains images. Creating the thumbnails is not the problem, just displaying the images in a ListView. Anybody knows a control that can do this Thx Jan You need to create an ImageList and load your thumbnails into it. Set the LargeImageList and/or SmalImageList property of the ListView to your ImageList. Then create ListViewItems with the caption text and the index of the thumbnail in the image list. ...Show All
Visual Studio Express Editions Cannot get leftclick mouse_event to work
Hi, I hope someone can help - I'm new to vb express and am looking for some code that will let me move the mouse pointer and perform a click of the left mouse button. I use the following code to reposition the cursor and perform a left click - I can get the mouse pointer to where I want, but running the leftclick() function generates a 'mouse_event has unbalanced the stack. This is likely because the managed PI Signature does not match the unmanaged target signature' My code is : Private Declare Sub mouse_event Lib "user32" ( ByVal dwFlags As Long , ByVal dX As Long , ByVal dY As Long , ByVal dwDat ...Show All
.NET Development Exception: DataTable internal index is corrupted: '5'. on ...
Hi, I have a problem with bindingsource component in framework 2.0. I have a combobox bound to a bindingsource which is also bound to a dataset with 2 related tables and a datagridview bound to the same bindingsource. What I want to do is : When the selectedindex property of my combobox changes, the corresponding cell value must be changed in the datagridview. But although the value in bindingsource changes, datagridview does not display the new value. That value is displayed after I move the mouse over that cell and make it invalidate its region manually. Another error I caught is the one that you can see as the subject of my po ...Show All
Visual Studio Express Editions Set hour, minute, second to Date object
Hi all, This is my first post here. I’m learning now about C#. I need to kown how to Set hour, minute, second to Date object If I try to use the follwoing, occurs an error: [code] DateTime dt = DateTime.Now; dt.Hour = 0; dt.Minute = 0; dt.Second = 0; dt.Millisecond = 0; [/code] when the Hour it’s use only for get operation. How can I get to do something like this thanx This is not the right forum for general questions. That being set, to set the date/time to your custom date/time you can use this: ------------------------------------ using System.Globalization; ..... CultureInfo ...Show All
