PeterRoot's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Multiply alpha from texture and vertexcolor
I can't find a way to use both my texture's alpha information, and also apply a alpha blend "on top" of that. Texture alpha is no problem, I just use SourceBlend = Blend.SourceAlpha; DestinationBlend = Blend.InvSourceAlpha; but I also want to "dim" the output arbitrarily. First I was hoping that I could set the alpha value of the material's diffuse or ambient properties, or maybe use RenderState.BlendFactor, but that doesn't seem to be the way to go. Now I'm trying a custom vertex with color: X,Y;Z;Tu;Tv;Color; using RenderState.ColorVertex = true But it doesn't matter what I set the color to - only the texture's ...Show All
Windows Forms xpLoginEntry
When using xpLoginEntry no button with an arrow is displayed when the textbox appears prompting for a password as in the project which demos the controls. I looked at the source code and it appears that Private WithEvents picNext As System.Windows.Forms.PictureBox is the control which paints the button/arrow but it's not showing on my development computer. Any thoughts why it& ...Show All
.NET Development Saving data array as bitmap
Hi there, I have what should be a simple question: Using VS C++ 2003, how do I convert and save my data array(s) into bitmap files so that I can display them on my windows forms image window Thanks, Joe You can create a bitmap, use LockBits to get access to the byte array and copy your data in using memcpy. What's the source of your data What's the format ...Show All
Windows Forms Use DataGrid to display simple Excel Table?
Hi everyone, I'm starting to use VB.NET i figured it wouldn't be such a bad transition after all the VBA in Excel and a some in Access i've been doing. But i'm getting stuck with all these components available. Two questions: 1) To display a simple table in excel, one where there is a header on the top (2 headers actually) and the first&nbs ...Show All
Visual Studio Team System Install Testing Tools
Hi, I installed VS 2005 Beta 2 (not from Team Suite dvd, but from VS 2005 DVD) and then installed Team Foundation Client. I can connect to Team Foundation and make most of the PM tasks, but I don't have the Testing tools. What is necessary to get those tools Thanks a lot For convenience, let's end this thread here and shift to: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=5088 --- Eric Jarvi http://blogs.msdn.com/ejarvi ...Show All
Windows Forms Stupid DataGrid Question
This is my first attempt at using a datagrid and I'm having MAJOR problems. I can't get the grid to show up on my webpage! Everything seems to be working fine but NO GRID! I've followed all the code examples I could find but to no avail! Everything is fine. The connection opens, the data is returned but the no grid where it should be on the page its just blank! PLEASE can someone point out what I'm doing wrong!!!! See code below I have the following code in my .apsx file asp:DataGrid id="dgridCustomers" style="Z-INDEX: 106; LEFT: 72px; POSITION: absolute; TOP: 240px" runat="server" and the following function is calle ...Show All
Visual Studio Express Editions VB.NET Express Beta & Crystal Reports
How i can implement a Report in my project .. i use the beta version of VB.NET Express.. in VB.NET 2003 i can add ... but in this version doesnt show ... Salu2! Compare the editions of VB/VS2005: http://msdn.microsoft.com/vstudio/products/compare/default.aspx Crystal reports only comes with VS2005 Professional, but there are other reportig options available. See the comparison chart. ...Show All
Visual Basic VB.Net 2003 Programming Proper Case
How do I convert a string like "john doe" to proper case; i.e., John Doe I would prefer a method like ToProper rather than having to write a loop to scan across each letter. Thanks in advance. Use STRCONV... strNewText = StrConv(strOldText, VbStrConv.ProperCase) ...Show All
Visual C# Resize Window and move controls
Hi, i want to do something like windows explorer when u resize the explorer window... for example if u open an instance of windows explorer and browse to a folder with some files in it, and u resize it to make it smaller u will se that it never have an horizontal scroll but a vertical scroll , and the folders and files are moved to a new location so it never needs the horizontal scroll. i was wondering if there is a control that auomatically do this, or if some 1 can help me to think in a formula to do this... thx mig16 sorry for the post, i found that vs includes the flow layout panel that makes exactly wh ...Show All
Visual Studio Team System Web Testing using Anthem (ajax)
I am using web tests within team system and I am trying to record a test on pages which uses Anthem (ajax similar to Atlas) - the teste arent recording the ajax and I have attempted to use fiddler to record the traffic and have managed to do this, however when I try to manually add the steps in I am getting an issus wheer the test cannot find one of the anthem controls. WebTestRequest request2 = new WebTestRequest ( http://localhost/Default.aspx ); request2.ThinkTime = 7; request2.Method = "POST" ; request2.QueryStringParameters.Add( "Anthem_CallBack" , "true" ); FormPostHttpBody request2Body = ne ...Show All
SQL Server I can't deploy a Cube
I have installed the client version of Sql Server 2005 on my machine and the server version is Installed on a server of my company (VALLEY). I have created a Cube with the wizard to test Analysis Services 2005 and see the result after the deployment. The cube works with a database called ROI on the server VALLEY, But, when I try to deploy the cube, I have this error message: " the user XXXX don't have permission to modify the object or the object does not exist" I don't know if I must configure some specific access. Could you help me please, I search a solution since 2 days with any results. Be ...Show All
.NET Development Custom mail sender with Password Recovery Control
Hi All, I am using Password Recovery Control in my website, to send recover passwords to the users. The control now is using built in Email Sender class. I have developed Custom email sender class and now i want to use the newly created email sender class, to send email to the user. How can i integrate the new class with Password Recovery Control. Regards, Pavan Hi! The best place for asking ASP.NET questions is on the ASP.NET community site, and in the forums there. Check out http://www.asp.net/welcome.aspx tabindex=1&tabid=39 . HTH, PEte ...Show All
Visual C# Questions about Objects in C#
1. Do we need to pass objects by ref, if we want to have the changes made in a calling function 2. And the same question for the objects passed by Remoting 3. Do we really gain performance in calling Dispose method of DataSet while leaving from a function(the dataset is no longer required) If yes, then what does the Dispose do there Is it freeing the memory occupied by the objects If yes, then basic definition of GC itself gone right. And while the function got executed the DataSet objects declared within the function will also be removed from the reference list. Then is it required to do a Dispose while leaving a function. (I’m ...Show All
Visual Studio Express Editions XML Documentation
I have just finished a project in beta 2005 of VS. I have generated the XML Documentation file, which is obviously not very readable. I have tried using NDoc to compile it, but this does not cope well with generics or inface .NET v2.x. Are there any programs that will compile this into a nice format Cheers, Chris I heard very useful information that Microsoft will provide alternative solution. Please look at following URL for more information: http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=2d65db5c-7bf5-43f3-8496-083aa966c411 ...Show All
.NET Development removing protection from vba code
Hi there! I have protected vba code for an Access db by doing the following: Project explorer > right-click > properties > protection > lock project for viewing. I assume my code can be unlocked by supplying the password I used to lock it, so I'm trying to access the project's properties to do this but I'm getting a "Project Locked - Project is unviewable" message. Any ideas how I can unlock my project Thanks. Here's what I learned from our internal support team: If password is lost, we don’t have any way to recover database. I think this breaks password policy and we can’t encourage our customer to do that. I still t ...Show All
