snamaki's Q&A profile
Windows Forms Form at back
Hi a form that is loaded goes to back behind my main form. My main form loads and does frmUpdateNews.Show() frmUpdateNews.BringToFront() but that dosn't work. I even tried putting it on the main forms click event and still no luck 2 solutions exist try, frmUpdateNews.Parent = this;//This makes frmUpdateNews and owned form of the current form and is guarenteed to work and stay on top secondly try fromUpdateNews.ShowDialog(this);//makes it a modal form Hope this helps ...Show All
Software Development for Windows Vista vista 5308 activation error
Is anyone else getting an activation error for Vista x64 5308 Internet connection is working fine but I keep getting error code 0x80072F8F. Does anyone have a solution I'm getting the same error when Defender (Beta 2) trys to get updated definitions. ...Show All
SQL Server data mining and SS05
I've seen a couple of article on creating and scoring some mining models -- very cool stuff. Is the only way I can do this from an OLAP cube Can I create, train, and score a model just from relational data Thanks! You can create models directly from cubes using the wizard. Scoring models can be done using an MDX input to a prediction join statement e.g. SELECT Predict(MyColumn) FROM MyModel PREDICTION JOIN <MDX Statement> ON <bindings> ...Show All
Visual Basic substring problem
May i know how to write the coding for separating a string. For example , the string look like this 55555^787878 how can i get the substring before this symbol ^ and the substring after this symbol^ The result i want is substring 5555 and substring 787878 You should read the MSDN docs to see all the operations the string class offers. In this case, you want the split method, which will return an array of strings, split by the char you provide, in this case ^. ...Show All
Visual C# Constructing an ENUM from a simple ResultSet
Hi all, Is it possible for me to Construct an ENUM from a ResultSet returned from a Database. For example, I want the following ENUM... /// <summary> /// A list of all filter types, Status. /// </summary> public enum StatusFilter { All = 0, Open = 1, Complete = 2, Unfinished = 3 } Where I want this to be identical to what is returned from my Status's Lookup table, where I have four entries (along with their primary keys). Basically, what I want, is to be-able to filter rows in a ListView by clicking on a specific ColumnHeader on the ListView. So effectively I want to be able to cycle through the status' (o ...Show All
Visual C++ Important Question About USB or Serial Ports.
In input (in my Program) I have some string like abdrfgthjgy6t3rr5y6y6y6u6.... rate is 4000 byte per second. I want that ... CString myStr[10]; myStr[0]=a; myStr[1]=b; myStr[2]=d; myStr[4]=r; ...............and after myStr[10] ,again myStr[0]=number 11 input..... this information coming from 10 channel. I want design channel1 ... channel 10 Keep reading characters from the original string, and use a for loop to iterate from 0 to 9 until the original string is done with. I am refraining from giving you actual code because it looks like you are a student, and it'd be better for you if you can figure that o ...Show All
SQL Server SubTotal
example: Account Sales New John Doe 1,000,000 George Bush 2,000,000 Juan Luna 3,000,000 6,000,000 Old Michael Tell 5,000,000 Billy Banks 2,000,000 7,000,000 where Account and Sales are table columns, New and Old are group names. i want to display the total of the group. ...Show All
.NET Development visual web developer 2005 express edition
i am new to this, but have developed a working web page in visual web developer express 2005 edition. It works fine on my computer when i run it, it opens a perfect working web page. However does not seem to work on any hosting sites. I have tried quite a few that say they are for ASP etc , but none seem to work. Frustrating to see it working on my computer but not anywhere else. Is there anyone out there who can help me please before this drives me mad chrisuk2006 wrote: i already tried this, and set up on a number of diferent sites, I have experienced an unexpected behavior on such sites: Genote ...Show All
Visual Basic Control.Invoke and ByRef parameters
I'm currently invoking a function that takes ByRef parameters using Control.Invoke (which I notice specifies the Object parameter array to be ByVal) but the array of parameters I give it isn't updated by the function. Is this possible with VB.Net 2003 or must there be some error in my code That works for me. Surprised I didn't find anything when searching the net..would have figured more people would have this problem. Thanks ...Show All
Visual Studio Team System Customizing Code Analysis
Hi, I understand that you can customize the code analysis for a specific project. However, I've been asked 2 questions and do not know how to work it out: Can the configuration made by someone in a specific project be exported to a different project Is it extensible so that internal coding policies be checked And if so how can I do this Thanks, Luis Luis, There is no UI available that allows rule selections to be copied between projects (unless you are using Team Foundation and Code Analysis policy), however, if you use a text editor to edit the project files (.csproj/.vbproj), ...Show All
SQL Server Slow execution of queries inside transaction
I have some VB.NET code that starts a transaction and after that executes one by one a lot of queries. Somehow, when I take out the transaction part, my queries are getting executed in around 10 min. With the transaction in place it takes me more than 30 min on one query and then I get timeout. I have checked sp_lock myprocessid and I've noticed there are a lot of exclusive locks on different objects. Using sp_who I could not see any deadlocks. I even tried to set the isolation level to Read UNCOMMITED and still have the same problem. As I said, once I execute my queries without being in a transaction everything works great. Can you help ...Show All
Visual Basic Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Develop a console program that calculate and displays the charges for each customer who parked a car in this garage yesterday. ...Show All
Windows Forms How can I make my forms move faster ?
Dear .NET I have a C# solution on .NET v2 that has a GUI project in it, The Forms are defined as "global" static objects on the Main() so that I will B able 2 use them from anywhere through MainApp.MyForm.Is_Flag_On; I start the application from the Main() like this: Form_Main = new GUI. Main_Form (); Application .Run(Form_Main); The problem is that the Forms became TOO SLOW !!! 1. You can see it when you Show / Close any Form (the controls in it are being painted on the form - first the control area is black and then it paints - like if something was overriding the OnPaint event) 2. When any of th ...Show All
.NET Development Problem updating child table i relational database
Hi folks, realy hope to get some help...I have a problem trying to update the child table in two relational tables (let say Orders 1 --- 00 OrderDetails). I'm getting the folowing error every time: " You cannot add or change a record because a related record is required in table 'datatable'" The fact is I have the desired record and records in the child table, but when I'm trying to add some more - this message shows up... I'm using VB.NET 2005 and Access 2003 Database What Am I missing Any ideas Thanks! As far as i think you are facing the following problem. Suppose t ...Show All
Visual C++ allocating native pointer from managed clas
guys, i have a native struct in a native dll. and in a managed c++ dll i make a pointer to that struct as follows NVector3 *v; and in the managed class constructor i create the pointer like so: v = new NVector3(); it compiles fine. now i create a c# app. and it uses the managed class i did. and i create an object from the class in managed c++ dll. and that compiles fine too. but at runtime, i get a stackoverflow exception in the managed dll, where it is initializing the native pointer "v = new NVector3();" wat u guys think the problem is can somebody help me I thi ...Show All
