Coach24's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. imagebox
is there anyway i can get a picture with the format .dds in a picturebox or is there any other way i can show a dds I don't use DirectX. You might try asking on the DirectX 101 forum ...Show All
Visual C# Offsetting UserControl location...
I am having this annoying problem that I do not understand. I have a UserControl and I am trying to change its Location . I want to say: this .Location.Offset(iAdjustX, iAdjustY); However the above does not work. It seems I need to do this: Point pt = this .Location; pt.Offset(iAdjustX, iAdjustY); this .Location = pt; I do not understand why I cannot just apply the Offset method to the the UserControls Location . Am I missing somthing here Thanks, Bob Hi What I try to sey is that if we can change Location point directly we don't know what else we must do. Must we do Refresh, Invalidate or something else That's the reason why we must call properties set method. ...Show All
.NET Development RSA Cryptography with foreign public key
I must create application which will do next. I have console application(further APP1 ) which will read xml file, get needed node and decipher its value. Trouble is next. Console application should create par of public/private keys. XML file is created in another application(further APP2 ). APP2 uses public key from APP1 and private key from APP2. Q: how do i combine those two heys, so i can create ciphered text Q2. how do i import public key into RSAParameters object Private key should remain and all needed data for public key should be changed( i think they should). I tried this: RSACryptoServiceProvider RSAProvider = new RSACryptoServiceProvider(bitStrength); RSAParameters parameters = new System.Security.Cryptography.RSAParam ...Show All
Visual Basic List view control with multiple columns
How can we tell out list view control [that has multiple coulms in the columns collection] to add a specific list view item in 1st, 2nd or say n th column, I know to see columns we add in the columns collection [@ design time] we have to set the view property of the list view to DETAILS [from the combo], but how we can programatically add text in our desired column in other words how can we manage what item is gonna added in what column Me . ListView1 . View = View . Details Me . ListView1 . Columns . Add ( "C1" ) Me . ListView1 . Columns . Add ( "C2" ) Me . ListView1 . Columns . Add ( "C3" ) Dim I1 As ListViewItem = Me . ListView1 . Items . Add ( "Item1 colum ...Show All
SQL Server Very High CPU during Full Text population
I am building my first catalog on my 2005 server. It currently has been running for almost 3 hours now when in 2000 it took a little more than an hour. It seems the bottle neck is my sqlserver. I know that there are 2 other services associated with populating the catalogs but they don't seem to be doing much but the sqlserver.exe is sitting at 98% cpu or more. This obviously is not good. I tried searching for solutions and found nothing that helps. I increases the available memory to the server to 2gb from 1gb but the server is only using 40mb anyways so that did nothing. I am not sure what to do next... The table that is full text has 3 varchar(max) columns plus 10 other varchar fields but I wouldn't think that has anything to do with ...Show All
Windows Forms DataGridView UserDeletedRow event does not always fire
If DataGridView has only one row the UserDeletedRow event does not fire! We have two boxes here that confirm this. Can anyone else This isn't by design is it VS2005 The grids are databound. Last row is not the new row. By last I don't mean last ordinal row in grid (bottom row). I mean the last remaining row in the grid. If grid has only one row UserDeletedRow does not fire. ...Show All
Windows Forms Can installer grant folder read/write permissions?
I made a MSI install package for my VB.NET app. After installing it works fine for me, but not for non-admin users, because they cannot read/write the applications supporting files located in the C:\Program Files\App\Support folder ( UnauthrozedAccessException error). Can I configure something in the setup/deployment VS IDE while creating my install package to grant the folder read/write permissions Can I use the Orca MSI editor to do this Thanks, Mike ...Show All
Visual Studio Problem with the office 2003 addin
Hi, I have created an office 2003 addin with teh code given in the site http://msdn2.microsoft.com/en-gb/library/aa218648(office.11).aspx but the addin is being created and i was not able to get the addin with the frontpage. When i tried to manually add the addin to the front page it is giving an error saying invalid office addin. please help me i have no time...... Thanks, phani In advance Thanks Radvis, The first thing is iam using VS2005 for the development of addin..... Next In the 4 of 5 screen I tried all the possible 4 combinations but still the addin is not working in FP2003 it worked fine for FP2000 I was unbale to know the reason why........Also see the the code 2 It ...Show All
SQL Server use fixed name and password to access reports
I have an RS2000 report project that is working nicely. I have embedded the links to the reports into my web application. They come up fine but they prompt for username and password. Most of the users accessing these reports are being authenticated via the application, they do not have usernames and passwords on the local server and the server is not on a domain. Is there any way to have the link include a fixed username and password to access the reports Thanks, Eva Yes, after you have published the report to the report server, you can access the data source properties for the report (Accessible via Report Manager, on the properties tab in a report). You can store the user credentials securely i ...Show All
Windows Forms looping through controls in a usercontrol
suppose i have a few buttons in a user control. i need to set their properties during the run time by calling a method from the constructor. how do i loop through the controls of the usercontrol and set their properties if they are buttons or leave them as it is if they are anything else. foreach(Control currentControl in this.Controls) { if (currentControl.GetType() == typeof(Button)) { Button theButton = (Button)currentControl; //set properties of "theButton" } } ...Show All
Visual Basic Default Page in WebBrowser?
Hi! im fairly new to VB and i need to know how to do something really simple but the help files dont have any info. How do you make a default page in WebBrowser e.g a homepage thats displayed when the web browser opens ty in advance, matt you could navigate to the default homepage of your choice on say form load or when a now tab has been made which contains the webbrowser. Alternatively in the Design view of your form, select the webbrowser control and view its properties. There will be a property called URL. in here, set your default url to navigate to and this will automatically run/execute when you start your application ...Show All
Visual Studio 2008 (Pre-release) error logging in while publishing on uddi
Hi, I am trying to publish my service on uddi but even pefore publishing it is giving me error of user login failed while my login and password is correct. I tried to access the web UI on the link http://test.uddi.microsoft.com so that i can check whether there are some problems with my login information or not but i cant really access the publishing UI on this link. so can anyone help me with the prob why isnt it logging in programatically and secondly where can i find web UI to publish. the code is as follows: Publish .Url = "http://test.uddi.microsoft.com/publish" ; Publish .User = "my login name" ; Publish .Password = "*************" ; //Create tModel SaveTModel stm = n ...Show All
Software Development for Windows Vista Installation Directory Write Access Issue
Hi, I am a developer for a commercial program and we are working on a Vista-aware release of our product. It is a large install (6 CDs) abd is currently all put in Program Files under XP. The Microsoft suggestion of putting program executables and static data in Program Files and all other stuff in the appropriate users/... directory is not practical for our application. I have never liked that model. It makes things complex both for users and programmers. It is a road that we simply will not follow. The problem, of course, is that users don't have write access to the Program Files folder unless they explicitly and manually set it. We could require the users to do that but this is not a happy solution and we probably will not do that. W ...Show All
SQL Server Sending email to multiple recipient
I am trying to send emails to multiple recipient using the Send Mail Task, but it is failing with the error: " The specified string is not in the form required for an e-mail address." It works when I have only one emailID in the ToLine, I have a script task that build the emaiID list and saves it in a variable and the in the Send Mail Task, I am using the Expressions for ToLine to use this variable. If there is just one emailID in the list, everything works, but if there are multiple, it throws an error. For building the emailID list, I tried using "," as well as by ";". But none seem to work. Any help will be greatly appreciated. The Send Mail task likely doesn't su ...Show All
Visual Basic Catching and recovering from database exceptions
Is this a reasonable scheme for handling datbase exceptions when the program must keep running and must perform the update If not whats the recommended method Dim Done AS Boolean While Not Done Try updatedata Done=True Catch ex AS OdbcException logwriter(ex.ToString) Thread.Sleep(250) End Try A couple of thoughts of the top of my head to start with: First, if your not concerned with infinite loops, you should be, this is a real opportunity for them. Second, ( for mokeefe) When the customer is allowed to 'get away' with using a term like MUST, I find they rarely will care about the word "scope". Read what 'unthreaded' points out that "mechanical fau ...Show All
