Rizzlers's Q&A profile
Windows Forms CrossPagePostBack
Please! Need Help! I have two pages as followed 1. Loading.aspx (contain a TextBox1 and a Button1.) 2. PrintL.aspx (contain a TextBox2) Both pages has the same MasterPage.master When click Button1 on Loading.aspx page, it will PostBackUrl to PrintL.aspx The question is how can I pass a value from TextBox1 to Text Box2 I try using this but it doesn't work (code in PrintL.aspx) TextBox SourceText = ( TextBox ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Model animation
Hi, I'm working with XNA gamestudio for a while now, it's really great but there's no support for model animations I already searched the entire internet for some good tutorial or example but there isn't any. I just can't believe model animation isn't supported by standard Because...what is a game without animated models Also if anyone has some information about loading bones it would be welcome. I really hope that there's someone out here who can help me with this. I really enjoy using XNA gamestudio and I wan't to start writing games! Thanks for any help, jeroen That would be cool indeed :-) And actually I did write a sample showing exactly how to do this. I can't just go and post that on my blog, though, becau ...Show All
SQL Server Merge Replication differences between SQL 2000 and SQL 2005
We have developed a mobile system that uses merge replication for SQL Mobile to SQL 2005. Previously we have developed mutliple mobile systems using merge replication for SQL Ce to SQL 2000. Based on the knowledge we had gathered over about 4 years, we applied the synchronisation parameters for the SQL 2005 solution as we would for the SQL 2000 solution. We have found there are some differences. Not too surprising I suppose, only some of these have us a little baffled. For instance, there was a little flag called keep_partition_changes in SQL 2000 that is supposedly superceded by the use_partition_groups flag. However, if you don't set up your filtering to conform to the standards required by the use_pre_computed_partitions flag if you wa ...Show All
Visual Basic Evaluate a variable
Is there any way to evaluate the code stored in a variable similar to PHP's eval() function I have code that takes user input like a console. There are so many commands, I would find it much easier if each command was its own sub, so I wanted to call the sub whose name is in the variable cmd. Is there any way to do this without a select case Thanks, Paul Spangler Thanks a lot! That will help organize things so much better. I wish Visual Studio would allow you collapse Case statements like they do Subs in the IDE. Thanks, Paul Spangler ...Show All
Visual Studio 2008 (Pre-release) Building expressions at runtime
Hi all :) I've started experimenting with the whole expression tree stuff and it looks really interesting. I'm thinking of a way to let a user specify certain operations ( +, -, / , * for example) and build a function out of it which can be saved and used later on. I know I can do something like this: ParameterExpression p0 = Expression .Parameter( typeof ( float ), "x" ); ParameterExpression p1 = Expression .Parameter( typeof ( float ), "y" ); var e = Expression .Lambda< Func < float , float , float >>( Expression .Subtract(p0,p1), new ParameterExpression [] { p0, p1 }); Console .WriteLine(e.Compile()(3,4)); And this will print -1 as output. But how can I generalize this I wou ...Show All
Visual Studio Express Editions Seems simple enough shareing out a remote directory in visual basic code.
But of course it doesn't appear anyone has done is sucessfully outside of using WMI. The current code i have makes calls to the netapi32.dll that really wants to work but stumbles on the VarPtr of which it appears their is no one size fits all solution to replace this function in VB.net. Very Frustrating at this point any help would be appreciated. Essentailly what i am trying to do is create user shares remotely and assign permissons to the remote share(which i have working beutifully thanks to some VB.Net code i snagged someplace) on a Netapp. if this were a windows server it would do it automatically of course. Any help wpuld be appreciated. you could share out the directly by making some net use calls ...Show All
Audio and Video Development Pixel Buffer Questions
Where in the spec is the Pixel Buffer discussed My kingdom for an index. Is the Pixel Buffer for markup elements only Or does video also use the Pixel Buffer If I scale a 10x10 image to 10x20, is the Pixel Buffer footprint 100 or 200 From my experience, you can make as many slides\x,y movements with divs as you want...the only thing that overheats the pixel buffer is having many high res individual frames animating at the same time. ...Show All
SQL Server "Current day" MDX
Hi, is there any "update" on how to do the "current day" as a set in MDX with SQL 2005 based on the actual system date If you don't want to base that on the system date is this still the "best practice" to introduce some "flags" in the time dimension to identifiy the actual day, last week, ... Just the way it was introduced with the BI Accelerator tool... Thanks, Good thinking! I would be very interested in knowing how you accomplish this, as I have already tried to implement your suggestion (without success). ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Visual C++ 2005 and Direct X opening header problem
I have a beginner understanding of another c++ compiler and have decided to try this for learning about 3D. When the direct sdk is installed and the line #include<d3d9.h> is added. I get the error on compile 1>.\main.cpp(8) : fatal error C1083: Cannot open include file: 'd3d10.h': No such file or directory What am I doing wrong 1>.\main.cpp(8) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory Sorry that was an error from me trying to link anything I found in that directory. The error should have been as above. I did eventually get it working by adding the locations to the VC++ directories. But that was me guessing. Is there anywhere that explains this As it s ...Show All
Visual Studio Express Editions Cannot register filter with win98se
I have built a capture filter with VS Express on a pc with xp pro, where it registers ok thru regsvr32.exe. But if I try to register it on another pc with win98se it fails to register. It happens with both the debug version and the retail version. Any comment or advice please Regards, pcd. Native C++ code I'd guess. Yes, you need to install the C++ runtime library DLLs . ...Show All
Visual Studio Programmatically display Add Reference dialog
Hi, Is there any way I can reuse the standard VS2003 IDE Add Reference Dialog from my custom project type. How can I display it from my VS2003 package Thanks, Nitin It doesn't shows the Add Reference dialog. I think Project.AddReference command is to add the reference to an assembly rather than displaying the Add References dialog. Any other way to bring up the dialog and then to catch the selection made by the user. ...Show All
Visual C# None of the System.Windows.Forms.TabPage eventhandlers are called ever
Hello Using VS2003 & .Net1.1 I've created a simple Windows Application with a single TabControl and two TabPages. Then I add handlers for the GotFocus LostFocus events on the tab pages. The event handlers are never ever called! using unmodified source with VS2005 & .Net2.0 i get the expected events. I assume this is a bug. How do I work around As CommonGenius.com stated they cant have or loose focus! Now your next question will be why those events are there then The Answer is truely simple and straighforwad that to support the overall architecture of language to be unique. Simple example: RichTextBox has a property BackgroundImage, Setting that image never displays anything. In MSDN its wri ...Show All
Visual Basic Modifying datagrid doesnot update the dataset
Hi folks, I populated a Sql Server table into a datagrid using SqlDataAdaptor and dataset, which works fine. What I want to do now is to update the table when the data in the datagrid is modified. I added these 2 lines, but doesn't work, ds.AcceptChanges() da.Update(ds.Tables(0)) It seems that changes to the datagrid doesnot update the dataset. Any comments appreciated. Thanks! well first things first, your SELECT command is incorrect, you are specifing proper select command followed by an update command. The update command should be set in the UpdateCommand property..... Dim ds As New DataSet Dim conn As New SqlConnection("Persist Security Info=False;Integ ...Show All
Visual Studio 2008 (Pre-release) Error 403 when browsing to Service.svc file
I am trying to run one of the wcf samples. I am deploying the server to IIS 6 and keep getting Http Error 403 Forbidden when I try to browse to the service.svc file. The directory and files appear to have the right permissions set. I added a Default.aspx page to the same directory and it works fine. I changed to Basic authentication and the Service.svc file returns the 403 error before I am even prompted to login. The Default.aspx page prompts me to login and then displays correctly. I had the sample working fine on my Windows XP workstation it just won't run on Windows Server 2003. Does anyone know what else I can check to get this working Thanks, Matthew Sajay, Yes, That is exactly what I ...Show All
Visual Studio Express Editions Window design questions
hey all, I'm extremely new to programming and i had a few questions. I just finished designing the window for my app, and after looking at the code, i saw it has a line containing "TODO: Add the constructor code here", and i was wondering exactly what i needed to add in that line. Aside from that, my app consists in a few textboxes that contain numerical values and execute a formula. I already declared the variables, but i needed to know how can i set the variables' values equal to the input from the textboxes (As of now, i have set them as "Variable = textBox.text"). I also wanted to know how can i impose a Button being pressed, or a checkbox being checked as conditions for something else to happen. (IE: i want that af ...Show All
