Jassim Rahma's Q&A profile
Visual Studio Express Editions Visual Studio C# problem
Hi All, I have an issue with Visual studio 2005. I add a private ArrayList arrayList to my main form class. This arraylist is used to dynamically change collection values of certain toolbox items used on the form. However, after co0mpiling a couple of times, Visual Studio removes all statements that include 'arraylist' except for the the declaration of arraylist. This has happened many times now and I find myself replacing the same lines of code continuosly. I htink that this is pretty strange and I am wondering if anyone knows how this can be resolved so that 'arraylist' isn't removed Thanks, Rachad Keep the files separate. The code in the Form1.Designer.cs file is modified by Visual Studio a ...Show All
SQL Server TimeOut Expired!------How to handle this?
The following program is to write a whole year's month,day,weekday in a MSSQL table. But somehow, for many times I have tried, but each time I got only part of what I intend to get: the whole year with 12 monthes, instead, I only got 3 or 4 months' content in the table. Can anybody tell me how to handle this The error is: System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. at System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) at System.Data.SqlClient.SqlConnection.Open() at database.DBCl ...Show All
Visual Studio Express Editions Label
I know theres a way to chage the text of a label while a programs running, something like text.label ="something" but i dont remeber how... It depends on which technology you are using. C++/CLI does it like: labelVarName->Text = "Text"; MFC does it like: staticClassName->SetWindowText("Text"); Windows API is: SetDlgItemText(hDlg, nDlgItem, "Text"); Thinking about it, since this is the express forum you wont need the MFC version. ...Show All
Windows Live Developer Forums v3 gives an error; v2 does not
When I call CampaignManagement.GetCampaigns(..) and reference to v3 wsdls, I catch this error: "There is an error in XML document (1, 552)." If I change all the references to v2, it's smooth sailing. The context of the call itself is some of the very first I wrote and has worked countless times before. Why do you think there is a difference and what do you advise -Tal Tibor, Thank you for confirming that this now works for you. I can't say why dotnet 2.0 worked for you when 1.1 did not... it could have been some odd configuration issue. Please dont hestitate to reply should you have any further questions or comments; or if I can be of assistance in any other way. Best Regards, Jason ...Show All
Windows Forms MessageBox doesn't do anything on Application Exit
i'm not sure why this is, maybe some of you guys can help me out. i have an MDI application. i have a MDI child inside the parent. i click the "X" of the MDI window to shut down the application. i have a call to MessageBox.Show in the Dispose(bool) method of the child. nothing shows. i put a break point, and i can actually step through it and it hits the line where i show a message box, but it passes through it and nothing comes up. i need this functionality because when the application closes i need to ask a question for each MDI child. it works fine if i close the child inside the MDI parent. is there some event i can listen to or something like that the ApplicationExit event occurs too late. thanks! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. New XNA Game: Warriors of the Shining Star.
I just wanted to see what people thought of the game I’m working on with XNA. I’ve been posting updates to my blog if you are interested. Right now I only have movies on the site; hopefully I’ll get a demo up in the next couple of weeks. http://www.stressedgamer.blogspot.com/ -tom That's looking really good. Are you planning to share any of the source for this Your 3D Tile editor looks particularly interesting. ...Show All
Visual Studio Express Editions Formulas like excel
Can anyone tell me how a program like excel handles formulas. From what i can see it looks like it stores the formulas somewhere away from the database. How does this work Or am i even close Can someone tell me how to create something similar Please see this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1214164&SiteID=1 ...Show All
Visual Basic Object reference not set to an instance of an object.
Hi, I wrote a function and when i'm calling it i keep getting this error. Null reference exception was unhandled. Object reference not set to an instance of an object. Here is the code: -------------------------------------- Function myReplace( ByVal mytxtCtrl As TextBox) As String If Not IsNothing(mytxtCtrl) Then Dim vartxt As String = Replace(mytxtCtrl.Text, "%" , "" ) myReplace = Replace(vartxt, "£" , "" ) Return myReplace Else MsgBox(mytxtCtrl.Name) mytxtCtrl.Text = "" Dim vartxt As String = Replace(mytxtCtrl.Text, "%" , "" ) myReplace = Replace(vartxt, "£" , "" ) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Screen layout for 360 games
Dave made a blog entry yesterday pointing to another blog entry that should be a must-read for all of us considering doing 360 development. I know I had no idea about what he talks about. I'm a bit more guilty than you. I've had several people mention that (Yes, ZMan, I remember you telling me that) and I STILL didn't listen. I need to make a mental note to start following a few more of these recommended best practices. Having that helper class should go a long way to reminding me though. Nice job on pointing it out Dave and great job in providing such a wonderful resource Mr. Anderson (boy, what a name to have and be a geek! bet he doesn't get tired of those Matrix jokes...) ...Show All
Visual C# Help in Execute Scalar
hi i creating a form in VS 2005. I want to have this error at execute scalar(). Invalid casting. Can someone please help SqlConnection conn = new SqlConnection ( this .ConnectionString); try { conn.Open(); SqlCommand cmd = new SqlCommand ( "Select sum(qty) from Inventory where prodNo = @prodNo AND qty <> @qty" , conn); cmd.Parameters.Add( "@prodNo" , SqlDbType .VarChar); cmd.Parameters[ "@prodNo" ].Value = prodNo; cmd.Parameters.Add( "@qty" , SqlDbType .Int); cmd.Parameters[ "@qty" ].Value = 0; int qty = 0; qty = (int )cmd.ExecuteScalar(); return qty; } finally { conn.Close(); } ...Show All
Visual C# execute program
How to execute "msiexec /I ...." i tried through Process.Start, but it doesn't work System.Diagnostics.Process.Start(unistall); error: O sistema nao pode encontrar o arquivo especificado traduction is like "the system couldn't find the specificated file" i'm sure i'm getting this error because of the parameters after de path ! ...Show All
Windows Live Developer Forums vista and live messenger
hi, i dont know if im posting this in the right place but ive recently bought a new laptop ACER Aspire 9300 with Vista. It will not let me run Live Messenger and says something about a DEP (Data Execution Prevention) Can anyone tell me how i can get Messenger to work because as soon as it opens it get shut down again. Thanks. Hi, I am having same problem on Acer 5636. Have found if you right click on the MSN Live Messenger Icon and select Sign in as Administror it runs. However sound on video calling was very broken and cracky. Must be something to do with compatability to vista although I find that very strange as is Microsoft Progarm. i am no expert and finding this very frustrating as well having just upgraded to Ne ...Show All
Smart Device Development Repainting whole screen on application exit
Hi When I exit my application the OS does not refresh the menu bars. Both the start menu bar on the bottom of the screen and the "battery" bar don't refresh. Is there any command I could issue before exiting my application so that all screen components are refreshed on exit I use C++ so no C# code please. many thanks, Martin Malek Hi again Is there anyway to get handles to the two menu bars and invalidating them explicitly It seems that they are not children to the main window so invalidating the main window and it's children is not the way to go. Thanks, Martin Malek ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What about PRT lighting? I didn't find out PrtEngine =(
AFAIK Mdx included PrtEngine, it was great. It is to be regretted that PrtEngine hasn't been included in the Xna beta. I would like to see it in the next version.. Ok, go to https://connect.microsoft.com/feedback/ViewFeedback.aspx FeedbackID=226160&SiteID=226 and vote, please. Alternative: go to https://connect.microsoft.com/feedback/default.aspx SiteID=226 and find the suggestion using "PrtEngine" keyword.. ...Show All
Architecture Windows Service OR Win App
I have been told to write a windows service which 'periodically' checking for messages and application updates from the web service. The user has the choice to download updates and messages automatically or to be prompted to download them when they are available. Note: A Message may contain documents. Now my question is is it the right approach to do this using a windows service or windows app/form. Please help me out on this. Thanks kash In my opinion, there should not be any problem while using win service as you are going to check for it periodically and the process will be running in background. You might need to think of more while trying to prompt as Windows Service does not support UI. ...Show All
