Paul Hacker's Q&A profile
SQL Server report on two database
hi all i m facing a problem in reporting services. i have a global database, in which i m mainting user inormation like database name, server name and all credentails about user database. i want that when my report is open a user parameter will display, on the basis of that users id report will display data from his database. server name can be different, database name can be different but schema of database will be same for all user. so pls help me The DataSource string of the dataset is dynmaic which means that you are able to use Expressions within the Data Source, using the syntax ="DataSource=" & Parameter!SomeParameter.Value HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Software Development for Windows Vista App Verifier 3.3 Stop code heap 0x13 in IE7
Hi, I am testing our AP in App Verifier 3.3. The AP uses html pages as the UI. I got the following error when start AP. But if I use normal page heap, the AP launches successfully. If I test it under XP and IE6 with full page heap, AP also launches well. This error is only happened with IE7 and full page heap test in App Verifier3.3. What should I do to fix this bug Pls help. Raff - < avrf:logSession TimeStarted =" 2006-12-11 : 18:10:07 " PID =" 4052 " Version =" 2 " > - < avrf:logEntry Time =" 2006-12-11 : 18:10:24 " LayerName =" Heaps " StopCode =" 0x13 " Severity =" Error " > & ...Show All
Visual Studio Express Editions key change on press question
ok well i have a question for one i am using vb express 2005 and i am wanting to pretty much make a program that will send what ever i type to a text area but i want keys to be different i am pretty sure i cna find out what code sends the text ot the area but will this code work for me if i set it for every key i need System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown If e.KeyCode = Keys.A Then e.SuppressKeyPress = True If e.Shift Then SendKeys.Send("B") Else SendKeys.Send("b") and if so why is it when i put it in my project it give me erroes on all of it maybe im not writeing it right but its excatly the same in my project as i have in this post i egearly await a reply ...Show All
Visual Basic VisualBasic.Collection vs VBA.Collection
Hi. I have ported a good chunk of my project from VB6 to VB2005. There is a VB6 COM DLL that I will not be porting over any time soon. I have a custom list class with an Add method that accepts a Collection (of strings). The list class can accept data from the COM DLL as well as Collections created within the project. Example; Dim Col as Collection Set Col = New Collection Col.Add("String1") Col.Add("String2") Call MyList.Add(Col) As well; Dim Col as Collection Set Col = DBEngine.GetListFromDatabase '//Where DBEngine is the COM DLL Call MyList.Add(Col) The problem though, is that now, under VB2k5, COM DLL's return a VBA.Collection Type, and the normal collection type is VisualBa ...Show All
Software Development for Windows Vista Trouble with a while condition in a win designer
Hi all. My scenario: There is a custom workflow designer in a win application. I created sequental WF and added my custom activity on the design surface. Next I added "while activity" with a simple "code activity" inside. If I try to setup a "Code condition" of the "while activity", the exception occurs in the desiner. Here is the call stack: ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at System.Workflow.ComponentModel.Design.PropertyDescriptorUtils.GetBaseType(PropertyDescriptor property, Object owner, IServiceProvider serviceProvider) at System.Workflow.ComponentModel.Design.Activity ...Show All
Visual Studio Express Editions Controlling Remote Applications
I am developing a program which access the same application on some other system on a network. I want to know 'How it is to be done. How I can control the functionality of the same application from other same application sitting on some other computer.' Here I want to mention that I know the IP address of the system. Please give the solution in VB.NET IamWasim, Please read the article titled Remote Desktop Manager (MSTSCUI.NET) in the following link. You can download the source file and have a try to the project: http://www.codeproject.com/vb/net/mstscui_net.asp ...Show All
Visual C# NumericUpDown.ValueChanged firing twice
I am trying to understand how NumericUpDown controls work. I have some code if (control is TextBox ) (( TextBox )control).TextChanged += new System. EventHandler ( editor.Event_SomethingHasChanged ); else if (control is CheckBox ) (( CheckBox )control).CheckedChanged += new System. EventHandler ( editor.Event_SomethingHasChanged ); else if (control is RadioButton ) (( RadioButton )control).CheckedChanged += new System. EventHandler ( editor.Event_SomethingHasChanged ); else if (control is ComboBox ) (( ComboBox )control).SelectedIndexChanged += new System. EventHandler ( editor.Event_SomethingHasChanged ); else if (control is MaskedTextBox ) (( MaskedTextBox )control).TextChanged += n ...Show All
Visual Basic Is there an easy way to move from control to control
Hi I am woundering if there is a way to move from control to control by using the Enter button instead of the TAB button. In VBA you can use both the Enter- and the TAB button without any specific code, like SendKeys. Fia Hi Take a look at the selectnextcontrol method on the control base class ... it may help achieve what you are looking for (if not, manually code your logic to find the next control and call its select method) The enter key may be a challenge to preprocess as it is used as an input key for some controls and therefore consumed prior to being previewed by a form. You may find that you would be better creating your own controls (by inheriting from existing controls) ...Show All
Visual Studio 2008 (Pre-release) Convert UIElement to Image or BitmapImage
Hi ! I'm currently working on a huge project for a client. The application is fully based on WPF and we use translate, scale and rotation transformation all the time on very complexe interactive WPF UserControls. Unfortunatly, our tranformation animations run really slow and I guess this is due to the number of controls and bitmap effects used on our user controls we"re tryin to animate. I tried to replace the user controls with png images, and it's a whole different world. The application runs really fast (about 15 times faster). So I was wondering if they are any Class or piece of code I could use to temporary switch our user controls to Images when I want to anymate (transform) them, and then switch them back to user control when t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Tiger Model Textures don't look right...
I've been having some problems with textures and the content pipeline. I've tried exporting some textured objects and the textures seem to repeat a small section over the whole model. As a sanity check, I decided to load the Tiger.X model from the DirectX SDK, and it seems to exhibit the same problem. What exactly is going on here Sorry for breaking the code snippet guidelines here... Okay here is what "SetMatrices" does. public void SetMatrices() { OurWorldMatrix = Matrix .CreateRotationZ(Rotation.Z + RotationAdjust.Z) * Matrix .CreateRotationY(Rotation.Y + RotationAdjust.Y) * Matrix .CreateRotationX(Rotation.X + RotationAdjust.X) * Matrix .CreateScale(Scale) * Matr ...Show All
Visual Studio Lost Keys (Problem deleting chars)
I'm not sure using the right section. If there is a better one, feel free to move this topic. Now my Problem: I can't delete any chars from my Source using Visual Studio 2006 Professional. I can insert code but i can't delete it. I can't insert a line using ENTER. BSP and DEL doesn't work. Coding without this keys is very... complicated. Is there anybody who knows to fix this problem Thanks A few people on GameDev.net have had the same problem, as detailed at: http://www.gamedev.net/community/forums/topic.asp topic_id=412033 The solution they found (with a now-broken link to an MSDN post) was to delete all VS setting files: C:\Documents and Settings\<username>\Application D ...Show All
Visual C++ Project template for simple DLL?
I have just installed VC++ Express. What I want to code is a vanilla DLL (i.e. not MFC). It would seem that in order to do this, I need to have a project template that does this kind of program. Where can I get such a template [What does a 'project template' actually consist of ] I used Visual C++ 6 up to now, which made it very easy to do this; unfortunately the W32 features I want to access (Bluetooth etc) are not present in VC++ 6. MS site says VC++6 is not compatible with the latest SDK...gotcha. I am reluctant to spend a lot of money on the pro version of Visual Studio just to do a very simple thing. Hope someone can help, quickly please. You can actually do this from a command line: just ...Show All
Visual Studio Express Editions LINK : fatal error LNK1104: cannot open file 'user32.lib'.
Hello, I've tried everything to get ANY program to work and they won't. Not even "Hello World" or code copied directly from help. Always the same: LINK : fatal error LNK1104: cannot open file 'user32.lib'. I've read all the suggestions here, followed all the directions including from the websites: 1. Uninstall beta versions Before installing, you must uninstall any previous versions of SQL Server 2005, Visual Studio 2005, and the .NET Framework 2.0 (this includes Tech Preview, Beta, or CTP versions). 2. Download and install Visual C++ 2005 Express Edition!! 3. Register 4. ...Show All
Windows Forms Class with UserControl and multiple buttons - please help
How would I rewrite this code so that Class1, rather than the base class of the application, contains the controls The way I've got it here does it all on the base class and is just to demonstrate more or less what it ought to look like if I could figure it out. The part where I tried to make it work using Class1 is commented out. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Containers { public partial class Form1 : Form { public Form1() { InitializeComponent(); Button b1 = new Button(); Button b2 = new Button(); UserControl u = new UserControl(); u.Controls. ...Show All
SQL Server Cannot use credentials for proxy account
Hi, because my package does not run with SQL-Server-Agent, but without problems if started by "hand", I created a new credential which contains the information needed for the package. I did this as described on: http://msdn2.microsoft.com/en-us/library/ms190703.aspx . After that i tried to create an proxy account, but when I chose the created credential, Management Studio says "Der Proxy "[name_of_credential] ist kein gultiger Windows-Benutzer(Microsoft SQL Server, Fehler: 14529)". This means something like: "This Proxy is not a valid windows-user. Error: 14529". Any hints how to use a credential that is not a windows-user Regards, Jan Wagner GethWho wr ...Show All
