Warren B's Q&A profile
Visual C# Set RegistryKeyValue For All Users?
hi how i can set keyvalue on registry..so it will be read for all users..on system..for example if have 2 users (administrator (default)..and (user))..i want to set key value on registry..and be seen by the two users without setting the keyvalue twise... please help.. Thanks Bassam Basamad There is no All Users key for the registry. If you want to store a value that all users see then you should use HKEY_LOCAL_MACHINE. Otherwise you have no choice but to enumerate the HKEY_USERS subkey and set the entries for each user. However security may cause you problems here. Fortunately however, barring security, the code is a si ...Show All
.NET Development Assembly Reference Problem
Hi, When I try to use ModuleName.GetTypes() method it throws an exception. Later I found that this method tries to load the types that are referenced in this assembly, which were not present in the current directory. I don't want to load all the types from the referenced assemblies. How do I overcome this problem Thanks. By the very definition you do want it to load all types because you are asking for the metadata for all the types defined in the module. There is no direct way around this. Why would you not want to load all the types if you wanted to get all the types from t ...Show All
Smart Device Development Brushes are they broken ?
c# Brush b = SolidBrush(System.Drawing.Color.Black) worked on .Net compact 2003 it don't now, and there are other brush problems. I've used code like: Brush b = new SolidBrush(System.Drawing.Color.Black); - with no problem. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. System.NullReferenceException was unhandled
Hi! In my windowed control, whose rendering is done completely in Direct-x, I provide the means for the user to change the font. For this reason, my object includes the function SetupFont(), which is called at least once on startup to set the default font, and then it may be called whenever the user decides to change the font. The mobjFontDirectX and mobjFontGDI objects are defined at class level: private void SetupFont(System.Drawing.Font objFontGDI) { if (!objFontGDI.Equals(mobjFontGDI)) { if (mobjFontGDI != null) mobjFontGDI.Dispose(); mobjFontGDI = objFontGDI; if (mobjFontDirectX != null) mobjFontDirectX.Dispose() ...Show All
Visual Studio Extending a DSL post-deployment
I'm exploring the possbilities for allowing end users of my DSL to add metadata beyond what I know of when preparing the product. There are places where it would be useful for people to add metadata specific to their environment to the DSL. For example: say one end user's deployment environment is such that all decision points in a workflow can be resolved with reference to their proprietary or third-party rules engine. I can provide a DSL that describes the workflow generally, but there will be no space in there to capture the information specific to the user's own rules engine. Now it is not a big task to create a new class or struct to ca ...Show All
Windows Forms How can I use "Click Once" and ".Msi" package together?
I want to make one package (.msi) with applications in "Click Once" for update from the Internet. Does anybody help me how can I do this With guide or something else I made a bootstrap install project named "Configure <myapp>" that installed for all users, then I included the clickonce publish output as files in the application folder and my configuration application started a process with the file path to the .application file. My configuration app had all the prereqs so the clickonce app didn't have to. Its one way to do it. ...Show All
Smart Device Development .NetCompact Framework to open bluetooth port im my pocketpc
Are there any samples around for using the bluetooth port in my pocketpc in the .NET Compact Framework for VB.Net All I want to do is read some data off the port..... thanks.... Nicola Hola, alguien tendra algunos ejemplo de como enviar archivos por el bluetooth con programacion en c# .net para visual 2005 ...Show All
Visual C++ Changes from VS2003 to VS2005, e.g. COleDateTime::Format
Hello there, We are about to migrate from VC7.1 (VS2003) to using VC8 (VS2005), and we have of course run into a couple of obvious problems (which were mostly due to small corrections in the C++ syntax). We have also encountered some not-so-abvious problems, like this one: Trying to do a COleDateTime(0.0).Format("%Y/%m/%d") in VC7 rendered a CString with the content "1899/12/30", as expected. Doing this with VC8 causes the application to crash. Without notice with a Release build, with some Debug Assertsions on a Debug build. This arises two questions: Is there a possible workaround for the COleDateTime problem, we have millions of lines of ...Show All
Visual FoxPro hiding Logon information....
I have an online MySql Database that I will be connecting to in a distributed app. The user will Log in and all remote views will be filtered based on the userid. I have set up a user for my app that can access ALL the data. I can’t figure out how to hide the user name and password in the connection object in the DBC. If I use dbsetprop it actually updates the DBC Connection. Anyone with access to the dbc can access all the data! I want specify the User and password at runtime and keep it hidden in a compiled EXE. Can this be Done How I know I can do it with ADO but I prefer to use remote Views. ...Show All
Visual Basic Relase the Fix for Visual Basic Compiler Error &H8013141e&
Hi all i just want to know when is going to be released the fix for visual basic compiler error &H8013141e& this is already reported in the microsoft productfeedback site. i think this is a very urgent patch that must be released asap and please do not repond that i should go back to vs.2003 because i have lots of code developed in VS 2005 to framework 2.0 .. JSB PS: this error pisses me of, i need to restart VS.IDE every 5 minutes. i think this is too bad for a recent relesase product ( its full of Bugs ). Hi, João, This is a good opportunity (in the ...Show All
.NET Development help !!!! my database returs always old value's
hello , my name is jonathan maes , i am a student , for a work i make a invetary program in C# express edition , i work with - Acces database - databindings now what's my problem , well when i delete a record from my database en i restart my program , and i visualise the values he shows the value what i trough away , can somebody help me my excusses for my bad english you can mail me to maes.jonathan@gmail.com maes_jonathan@hotmail.com Please post your code showing how you are deleting a row. Without seeing what you are doing in code, one can only guess. ...Show All
Visual FoxPro Html Listener
Hello Experts My application works fine when it runs from Command Prompt, but when i build an exe file the problem starts. I output all my reports to Print Preview, Print and Html files. The problem is with the html output. Below is the code for html output loListener = .Null. loListener = Newobject('HtmlListener', Curdir() + '..\Libs\_ReportListener') loListener.ListenerType = 5 &&Html loListener.TargetFileName = '..\Detail-TabularFormat.Html' loListener.Quietmode = .T. Report Form ..\Reports\Detail For TmpDetail.Prnt = .T. Object loListener cFileName = "..\Detail-TabularFormat.Html" cAction = "Open" Shell ...Show All
.NET Development Reinstall MDAC on XP SP2
Hi, how reinstaller or to update the MDAC on Windows XP service pack 2. Thank you in advance Found information at http://www.pqsystems.com/kb/question.php qstId=521 . I cut & paste the relevant info below - MDAC 2.8 SP1 (2.81.1117.6) - 2.8 Service Pack 1. The same version of MDAC that comes with Windows XP SP2 and SQL Server 2000 SP4. The MDAC 2.8 SP1 stand-alone release is not supported on the Microsoft Windows XP operating system or on the Microsoft Windows Server 2003 operating system. To update the MDAC version that is installed together with Windows XP or with Windows Server 2003, you must use operating system s ...Show All
Visual Studio Team System Team Foundation Server permissions not working as documented
Hi, In a team foundation server, we created a team project. Added three groups in the project say G1, G2, G3. Added myself in all three groups and made sure that I am not part of any other groups especially "Project Administrators" and "Team Foundation Administrators". For G1 we keep both "Allow" and "Deny" for "Delete Team Project" unchecked. For G2 we keep "Allow" checked and for G3 we keep "Deny" checked. Then as per article http://msdn2.microsoft.com/en-us/library/ms252587(VS.80).aspx I shouldn't be abled to delete the team project. But I could delete team project u ...Show All
SQL Server Gurus: Please help! SSIS package using custom dll fails on server
I have a SSIS package that has a script component. In the script I reference a custom dll that contains some functions. The dll is registerd with a strong name in the GAC on my machine and the SQL Server 2005 box. The package works fine in Visual Studio. The problem lies when I deploy the package to the server. (note: several other packages created without the dll work fine on the server). Is there something else that has to be configured on the server to be able to reference and use the custom dll Thanks for your help. Are you using SSIS Logging to determine what the problem is It could be a de ...Show All
