Joe K's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. XNA Game Studio vs. C++
I was excited to hear about the XNA game studio but found out it uses C#. I went to college for game programming and mainly used C++ but did learn a bit of C#. I have a basic DirectX game engine made so I know a good amount about DirectX. I don't know realy how powerful C# is and when I learned about it in school I was told it really isn't all that great for games at least deal with 3D models . My main question is should I try out XNA game studio and learn more C# or stick with C++ and not deal with the XNA game studio. I know DirectX has XNA stuff in it but I have not looked into it to much. Thanks in advance for the info. The little I used C# it was cool and very easy to get things working, I just thoug ...Show All
Visual Studio Changing devenv.exe.config for AddIn purposes
Hi! We have VS2005 AddIn that connects to the web services published on the remote server. As a result of different time zones, the clients usually get the following error: Microsoft.Web.Services2.Security.SecurityFault: Message Expired ---> System.Exception: At least one timestamp has expired. The known solution for this issue is adding timeToleranceInSeconds property to the app.config. This is the code: <microsoft.web.services2> <security> <timeToleranceInSeconds>86400</timeToleranceInSeconds> </security> </microsoft.web.services2> However, it should be added not to the AddIn config file, but to devenv ...Show All
Windows Forms DataGrid
Dear all, I'm using VS2003 framework 1.1 , DB oracle,connection using System.Data.OracleClient. I'm working on Client/Server Application so the query is done in server side and send the result using binarywriter in the client side receive the result using binaryreader now i want to fill the result in DataGrid because i dont have DataGridView and also i dont have DataTable any help Thanx Yes sir in the form_load it is working :) but i need it in switch case becase the value will depends on server message if server send "ref" then it will excute this case to show the customer , but if server send "invoice" then another Dataset will fill in DataGrid. ...Show All
SQL Server receive notification from server in application
Hello, I have an application which is running on multiple computers and is connected with one sql server. I would like to that the user is notified when another user is performing some special action. So I thought that when this action begins, the server is notified either by writing some data in a table or something like this. Then I would like other applications to be notified so is possible that notification service notifies the application If yes how Thanks I want the users of the application to be notified when a particular field in particular table changes. How can the server find all the instances of my application that are connected to it and how can it send the information How can my application r ...Show All
Windows Forms Coloring TabControl.
As far as I can see TabControl object has no properties of either Back or ForeColor. Is it possible to assign these properties to this object Another question: TabPage object does have both properties but when you assign a color to it it does not cover the whole TabPage: the tab itself remains gray. Is it possible to give it colors Many thanks. AlexBB wrote: Mick, thank you again. I want to add one more challenge for you. This is the problem I've encountered and haven't been able to solve so far cleanly. It works only partially for me, although I haven't given it a lot of attention yet. I generate TabPages at runtime and frequently have to reduce their number. I want to completely destroy the object, ...Show All
Visual Basic Can you run a process through a UNC path?
Hello All! I know I can launch a program on the same computer, but can I run a process through a UNC path Thanks! Rudy Hi Glenn! I'm looking at System.management docs. Yikes!! It does alot of stuff, any thoughts of what area I should concetrate on Thanks! Rudy ...Show All
Visual C# Help - folder's property dll
Hi.. In windows , when we right click on any folder or file, we get properties . In the properties we can see General/Security etc.. Is it possible to get the properties dll in c# please help Thanks for the reply.. Before Continuing, Let me wish all Belated Christmas.. I would like to create an application in which it has the folder property items. I would like to have the Type,location,size,contains,created that we see in properties in my own application. How to create such an application please help ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Best place to check input
Hello everyone, I'm fairly new to XNA, but not to c#, .net or programming. I've created a couple of Hello World applications using XNA, and I am now working on my first game. The game has a small engine beneath it that has helper classes for textures, resources, sounds and so on .. The only scenario in my game currently implements the one that renders the menu. I'm using the update method to check for keystrokes to be able to select different menuitems. However, this method is called so frequently, it passes through all the menuitems with half a second. I'm going to time-out the keystroke processing, and I'd like to know what my best approach would be. I can't sleep the thread, and keeping the tickcount and check for differenc ...Show All
Visual C# Construct Enum dynamically possible ????
I was wondering if it was possible to construct an enum at runtime Let's say i have a lookup table, and i'd like to have an enum for that lookup table. Is it possible to construct the enum dynamically Thanks, so if i make a custom control and compile it to a dll assembly then import it to my toolbox when i drop that control on my form is that design time or run time for the control I know that is technically design time for the application and everything in it but could you not write runtime code that runs during design time somehow to get the binding i suggested above to act more intuatively (if at all) Im just curious being new to all this en all :) ...Show All
SQL Server Transmission queue ?
Hi There I have sent messages and they are all sitting in the transmission queue with a blank status, why is service broker not trying to send them They are no errors in the sql log. BOL says this is blank when it has not tried to send the message Service broker is definately activated in the database. How do i force sql server to send anything in the transmission que I have no idea what is wrong or where to check Thanx To clean up individual conversations, use END CONVERSATION ... WITH CLEANUP. To cleanup everything in a database, use ALTER DATABASE ... SET NEW_BROKER (see also http://blogs.msdn.com/remusrusanu/archive/2006/01/30/519685.aspx ). The failures you see are not random. It mea ...Show All
Visual Basic Hide/Show form causes form to reload
Using VS 2005. Creating windows forms application. I have a search form that the user can enter their search criteria and then find records. The records found populate a grid. The user selects a record in the grid and then clicks open record button. The click event of the open record button does the following: Dim frm As New frmRS_ModMenu frm.Show() Me .Hide() 'This is frmSearchForm This works great. The user can enter data for the selected record and then close the form. When the data entry form is closed I do the following: frmSearchForm.Show() Me .Close() However, when I close the data entry form and call show on the search form the form load event fires only on the initial hide/show. This causes the sea ...Show All
Smart Device Development How to create more than 1 toolbar in Win Mobile 5.0?
Hi, I'm currently developing for Win Mobile 5.0, and in urgent needs to create multiple toolbars (1 menu bar and 1 toolbar) in an application. My problem came as I need to migrate the application from Win Mobile 2003 to Win Mobile 5.0. The application shows the 2 Toolbars perfectly in Mobile 2003, but as the Mobile 5.0 version has double the resolution, the buttons I have in the toolbar seems very tiny. Thus, I doubled the size of the button (from 30 pixels height to 60 pixels height), so that it would seem similar to the previous version. To my horror, CToolBar doesn't seem able to display button sized larger than 30 pixels in height. In this case, I have tried to use CCommandBar. Yet, to another frustration, CCommandBar doesn't ...Show All
SQL Server Help with mail that send mail when database bakcup fails
Hello I have got a script which gives the mail to the dba mail box when database backup fails. In the script I want to make a change so that I get the particular database name , on what ever database i implement. Can you tell me some suggestions. The script I am using is : use master go alter PROCEDURE dbo.SendMail @to VARCHAR(255), @subject VARCHAR(255), @message VARCHAR(8000) AS BEGIN SET NOCOUNT ON; DECLARE @rv INT, @from VARCHAR(64), @server VARCHAR(255); SELECT @from = 'testsql2000@is.depaul.edu' , @server = 'smtp.depaul.edu'; select @message = @message + char(13) + Char(13) + @@servername + '-'+ db_name()+ '-' + 'Backup Status Failed' + Char(13) EXEC @rv = dbo.xp_smtp_sendmail @to = @to, @from = @from, @messa ...Show All
Visual Studio Tools for Office Outlook add-in example
Hi. im trying to implement the outlook add-in presented in http://msdn2.microsoft.com/en-us/library/ms788695.aspx I have vs2005 sp1 professional and vsto 2005 SE installed. But in the connect.cs file, where i change the signature to public partial class Connect : Outlook. FormRegionStartup I am getting this error: 'InternetHeaderAddin.Connect' does not implement interface member 'Microsoft.Office.Interop.Outlook._FormRegionStartup.GetFormRegionManifest(string, int)' Any help will be wellcome! thx in advance Thx Guys! I appreciate your help. I was trying to execute the example in http://msdn2.microsoft.com/en-us/library/ms788695.aspx but in the class connect.cs, ...Show All
Windows Forms Opening / Closing Forms
Hey guys, Really simply, how do you open forms when you click a button! ! (i.e. in VB its docmd.open 'Form'). I just want to click a button and it pop up another form i have designed. Thanks in advance Tom Try as this,I hope this will help u: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Form3 As New Form2 Form3.Show() End Sub ============ form2 is the form you want to show ...Show All
