PascalD's Q&A profile
Visual Basic connecting to access database
I need some HELP! I am trying to connect to an access database. The only thing in the mdb file is the table. I am using vb 2005 express and I have tried everything and cannot get anything except an error " format of the initialization string does not conform to specification starting at index 0 ". What the 'ell does that mean I need help connecting to the mdb file in vb 2005. Any help would be greatly appreciated. Your connection string should look something like this: "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;User Id=admin;Password=;" ...Show All
SQL Server SP1 Database Services failed to install
Database services upgrade installation keeps failing when I try to install SP1 on a SQL 2005 Developer edition. This is the log: 04/28/2006 10:35:44.081 Failed to read registry key: PendingFileRenameOperations 04/28/2006 10:35:44.097 Failed to read associated hotfix build information for the following file: C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\xmlfilt.dll 04/28/2006 10:35:44.144 Failed to read associated hotfix build information for the following file: C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\ThaWBrkr.dll 04/28/2006 10:35:44.160 Failed to read associated hotfix build information for the following fi ...Show All
Visual C# Handling popup thru WebBrowser C# 2.0 control
Hi, I am accessing a page which creates popup using the javascript window.createpopup function. Now I have created a C# winform with a webbrowser control in it. I want to get notified by when the popup is created. I handled most of the events like documentcompleted, newwindow events but unable to get proper event which get triggered when the popup is created in runtime. My purpose is to get the HTML document in the popup window. The popup window contents are very dynamic, I can only read the web page codeCan anyone guide how can I get handle to the popup window Thanks in advance ~Sudipta Dey I ...Show All
Visual Basic Save\Load values as text file
Hello In VB6, I was able to save and load values as text file, it saves them like this form: "V1","V2","V3" I was using this code: Dim A As String, B As String, Op Op = FreeFile A = "Value1": B = "Value2" Open "D:\File.txt" For Output As Op Write #Op, A, B Close Op How can I do it in VB2005 Thanks & Regards The following code will do the trick in VB Express/2005 making use of the My.Computer.FileSystem.WriteAllText method Dim A As String, B As String Dim Content as string =A & B My.Computer.FileSystem.WriteAll ...Show All
Visual Studio Express Editions Product Activation Problem
I installed Visual C# 2005 Express Edition Beta 2 about two weeks ago. At that time I tried to activate the product, but after filling out personal details was sent to a page with the following message: We were unable to send your e-mail verification mail. An unknown error occurred while processing your request. This is most likely due to a connection failure. Please try again. If you continue to have access problems or want to report other issues, please Contact Us . Thinking it was a temporary problem I decided to try again later. But the problem's persisting. And the "Contact Us" link on the page is broken as well. ...Show All
.NET Development Garbage Collector encounters access violation and calls ExitProcess
I have an application written in a combination of C#, C, and C++. The main application is a C# Windows Forms application. It calls into C DLL routines that in turn may call into C++ code. This application is using .NET 1.1. When running, occasionally the application suddenly exits. When running under a debugger, I've captured that an access violation occurred within the garbage collector and then the garbage collector called ExitProcess causing the sudden exiting. During the access violation, the stack is: 00 0012ef64 7923b74a 05560531 00147294 00000000 mscorwks!gc_heap::mark_object_simple+0x75 (FPO: [Non-Fpo]) 01 0012efe0 79238072 ...Show All
.NET Development Populating Combo Boxes from a txt file?
I am building an application that has several tabs that in turn has many controls on it. I am wanting to deploy txt files that will populate the combo boxes with the application. Thus if the combox box list needs to change it could be done by updating the txt files. My idea now is to have the txt file contain the name of the combo box and the items associated with that combo box listed directly underneath. The problem is that I can't reference these combo boxes by the name, but only by the index. But for ease of administrating these updates I would like to use the name instead of the index, and I think it would ...Show All
.NET Development Does the number of handles increase if a remoting call fails?
I have a server s and a client c . My program is running and after some time s fails and shuts down. Now, c every remoting call from c to s fails. I have notices that this causes an increase in the number of the client's handles. Is it true How can I avoid this situation In other words, do I have a facility that let's me check if a remoting call will succeed before the failure happens (because a failure will cause resource leaks). I have made a simple test with the TcpChannel and I see an initial increase in the number of handles, but after a few minutes everything calms down :). In my opinion the ...Show All
SQL Server Setting TextMode=true and adding a text Header causes error.Suggestion Needed
I have a small app to create Stored Procedure I was trying to add my customized textHeader and I set the TextMode=true and then added the textHeader but when adding parameters to the stored procedure causes this error Add object to collection failed for StoredProcedureParameterCollection of StoredProcedure 'dbo.Customers_Select'. It all works fine if textMOde=false. Is this a bug What it is the correct way to create an Insert Sp for example using textMOde=true and adding your textHeader thanks in advance vbjunkie ...Show All
Smart Device Development Control Libraries for Smartphone?
I wanted to use a .NETCF Control Library for my smartphone project. Unfortunately, this does not seem to be possible. The control does not appear in the toolbox. After playing around a while, I noticed, that there is no control library for smartphone project template available. Does anybody know about the story of control libraries for smartphone mattneug Hi Mattneug, What version of the Smart Phone are you targeting If you are developing for Windows Mobile 5.0 (SmartPhone) (You can get the SDK for this on http://www.microsoft.com/downloads/details.aspx FamilyID=dc6c00cb-738a-4b97-8910-5cd29ab5f8 ...Show All
Visual Studio crystal report in asp.net
Hi all, I am very new to asp.net(vb). I need to make some reports using crystal from a web form. I have to pass some values from the form, and based on that values the reports needs to generate from an oracle database. Can anyone can help me to do this if you can please provide with code or url's. I appreciate your time. Thanks! Try this: The Business Objects Developer Resource Center has links to Code Samples and a Developer Library for detailed tutorials. http://www.businessobjects.com/jump/xi/ ref=devzone_xiresources ref=devzone_main ...Show All
Windows Forms winforms 2.0: how to create a template that contains an "about" form + splashScreen
hiya, Is it possible to create a project template that contains the above So instead of choosing the default "windows aplication", I could choose a windows application that includes my company "about" form + company splashScreen Many thanks, yogi yes, vs.net 2005 makes this very easy now. Simply create your base application, and then go to File->Export template. If that options not there then go to view->toolsbars and select "customize". Click on the "commands" tab, and then click on file,scroll down the list of command, find "export template" and then drag and drop it onto the File menu. See ht ...Show All
Visual Basic OpenFile()
I need help using open file, a module (.dll) actually. I have somthing like this: dim myModule as [Module] and i need to make myModule equal somthing like myModule = openFile("module.dll") I looked for examples online and found nothing of use PS. Actually the goal here is I am trying to inject a dll into a process of mine. I am having a problem though with the proper decleration of the dll. If anyone knows anything more specific about that it would be great, but I think I should be able to make due as soon as I get the openfile api down. There is a way to do something like this in VB (this e ...Show All
Windows Forms send values to a textbox from a textbox on other winform
hi all, pls help me with this prob: i hv this one textbox on a form with some values (comma separated) and need to pass these values to another textbox on another form. Codes in C# are most welcome. VB.Net also fine. Thanks guys. Regards. Hi, first of all your two Forms do need to know each other . So at least Form1 needs to have a reference to Form2, in order to fill the TextBox.Text property. Here is how I would do it: Form2 has a public method "FillText(string value)" which sets the .Text property of the TextBox control you desire to fill. Form1 calls this Method ...Show All
SQL Server Store Ranking & Security
I have what is hopefully an easy question. The set up is as follows: A store hierarchy dimension for a retail company that has national, regional, area and store levels. The users are secured by AD groups, and everyone at an Area Level on down can see the data for their area. Users above an area can see the entire company's data. A calculations that rank each Region, Area & Store in the context of the whole company. This calculation needs to behave the same for all levels. Everything works great unless you are a user at the Area or Store level. The ranking measure is constrained to only the stores the user has rights to with ...Show All
