GadgetGuy's Q&A profile
Visual Basic Pass user information from custom sqlmembershipprovider's login control... how
Hello, I am using vb.net 2005 to develop a web site. I am trying to use the new login control; and have it successfully working with a custom SQLMembershipProvider to validate the username and password. However, I would like to know what is the best method to capture the userID, First Name, and Last Name, and make them available to all my pages to make what is displayed on each subsequent page be applicable to the logged in user. Is the ...Show All
Visual C# CallBack from a WIN 32 C++ dll
Hello Everyone, My application is written under C#, but for some of the low level stuff I have to use C++ dll's and one of the dll require password before I can make some function call or if user entered wrong should ask again..... How can I implement something along those lines.... At first I can send the pasword, but if the password is wrong what is the way to get the password....If you want I can even post my procedure which asks for ...Show All
Windows Forms FocusRectangle Problem
Hi everybody, I need to change the button FocusRectangle colors in my Forms, because I have Flat type Appearance with a background image. Which is the best way to do it I tried with an override of the OnPaint method and DrawFocusRectangle, but I just get an strange behaviour... Thanks in advance, Demian Hi Chris, When I override OnPaint method with the next code for example: protected ...Show All
Windows Forms set a button in mdi parent form
Hi I use a MDI parent form in my project and I have some other form (child form)thats open in MDI form. I must use some object in (MDI) parent form but when I set an object in this form (for example a button or textbox) other form go to the back of this object , How can I solve this problem Thanks a lot. Instead of using MDI Child and MDI Parent,you can say this.Owner=mdiForm;//setting the owner to ...Show All
Windows Forms File locked problem
I use the following Sub to write various bits of information out to a file. Public Sub WriteToLogFile(ByVal TextToAdd As String) Dim FileName As String FileName = gLogFilePath & "APP_LogFile.txt" Dim sw As System.IO.StreamWriter = New System.IO.StreamWrite ...Show All
.NET Development Fix: Confirmed "BUG" in VS2005 - Microsoft Access, SourceSafe (Operation must use an updateable query.)
Hi ! Just wanted to let you all know about a problem I strugled with for some time before I found the solution. To recreate the problem do this: 1) Create a windows form project that uses a access database as its data storage. 2) Add the project to the sourcesafe (note that the database will be added aswell) 3) Now try run the project in debug mode and you will receive the error when you try to update/add any data to the database "Operation must ...Show All
Visual Studio 2008 (Pre-release) Dlinq and unnormalized data
Hi all, I would like to have your opinion in dealing with the following situation: We have daily treatments whose results are some unormalized datas in excel files.My basic question is : where does Linq fits there I thought about 3 solutions: 1. Upload those files in a database : this is heavy, and I would need (would I ) one database per day, or a time key to be duplicated all around. 2. Read all the datas, then do some in memor ...Show All
.NET Development How to remove Oracle schema name hardcoded in tableadapter query?
I have created a DataSet with a DataAdapter on an Oracle table, say 'employee'. The resulting query, as it was in the designer, was like "SELECT fname, ... FROM employee". But when I looked in the code file EmployeeDataSet.designer.cs, I saw query "SELECT fname, ... FROM company.employee", where "company" is the Oracle schema name. How do I get rid of this schema name I want to be able to connect to different databa ...Show All
SQL Server creat a solution in SQLServer 2005 and intall that solution in SQLServer 2005 Express
Hi, can i develop a solution in SQLServer 2005 with the analysis Services (OLAP cubes) and then put that solution in a client that only have the SQLServer 2005 Express Thaks Larokas Analysis Services are not part of SQL Server 2005 Express installation. Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Windows Forms copy
what is the command to copying (copy paste) thank you If you work with TextBoxes & RichTextBoxes you can use Copy()/Paste() methods of these classes (Copy() will place current selection into Clipboard). Working with Clipboard class, you can&nbs ...Show All
.NET Development Query - about registry in .NET
Hi All, From remote machine, how to find out which is server & which is client when 2 comps are communicating in .NET Can registry help us in this case If so,how Thanx: Devs What do u mean by " which is server " Do u need to know is it either Windows Server or XP ...Show All
Visual Studio Express Editions why can't I exist the application?
hi, I have a listbox and a few textboxes that have databinding with an ACCESS db, when an item is selected in the listbox, the texboxes will show the details of the corresponding record (certain texbox shows data for a certain column). when I run the application, click on "close" at the begining, it works, i.e. the application exits. However, if i try to exit the application after a few clicks inside the listbox, it stops working, the applica ...Show All
Visual Basic How to make slideshow transition with Picturebox
You've seen those fancy wipes, fades, cut and swirls in slideshows... now, how do you do it with the Picturebox It's incredible how many people mistake the picturebox control for a paint program, or for Powerpoint. You can't. A picture box is there so you can show a picture without writing the two lines of code required. If you want to do more, you'll need a lot more than those two lines, you'll ...Show All
.NET Development Troubles with ReaderWriterLock
Hello I have written the class ScopedReaderWriterLock which allows to lock objects as reader and or writer with using scopes. Sometimes the method ReaderWrioterLock.DowngradeFromWriterLock throws an ApplicationException with the message "The parameter is incorrect". I know that this exception is thrown when I have downgraded and call DowngradeFromWriterLock with the same LockCookie which I have used for the last downgrade. But as ...Show All
Visual C++ load dll by LoadLibraryEx
I use this API to load dll. I get the dll files name in the windows registery. Normal the file name is OK. Sometims the file name will be "%systemroot%\system32\abc.dll". After I replace %systemroot% with "c:\windows", it works. But sometime the file name will be "C:\PROGRA~1\MICROS~4\MSSQL\BINN\RESOUR~1\1033\SQLEVN70.RLL". And the LoadLibraryEx will fail to load. And I do not know how Are you certain that ...Show All
