Swati Kumar's Q&A profile
Windows Forms Hosting Windows Form User Control in IE
I created a Windows Form user control that contains an inhouse Windows Form control. I use the object tag in the htm file: <object id="userControl1" classid="http://server/vdir/u.dll#userCtl.userCtl" height="200" width="200" VIEWASTEXT> </object> Everything works fine accessing the page on my local machine via http://localhost/... and http://server/... However, when  ...Show All
.NET Development Web services in .NET 2.0
With framework .NET 1.1, I write a lot of web services. I always pass the culture in the header. Do you know in .NET 2.0 if the culture is automaticly adding to the soap header Hi, The .NET 2.0 behavior is the same as 1.1 in this case. That is, it is not added automatically. ...Show All
Visual Studio Express Editions Difficulty adding a parameter to a querry
I am using two MS Access tables in my data source when I create a querry with a literal string everything works fine i.e. Select MyTable * from MyTable where (MyTable.Description Like '%' + 'Anything' + '%' I get the proper results When trying to use a user input field inside the query it doesnt work i.e. Select MyTable * from MyTable where (MyTable.Description Like '%' + @Description + '%' I get an unable to parse error If I use two SQL tables (non access0 everything works fine P.S. My head is hurting because I have been banging against my desk for the past two weeks trying everything I ...Show All
SQL Server Sum of last 30 rows?
I need to display the sum of the last 30 rows (i.e. top 30 rows) of a table. I thought this would be a 5 minute exercise, but it seems that the easy things are always what kick my butt :( Any ideas on how to do this I was hoping that there would be row number property, but it seems that the only way to do this is to use the RowNumber function, and an aggregate inside an aggregate is not allowed. Thanks Aus. For that to work, though, wouldn't I then need to sum the values in the hidden text box I tried that, and Reporting Services gives an error, stating that I can't use an item that uses an aggregate f ...Show All
Smart Device Development close the ppc
how to close the ppc with c# code in cf 2.0 and wm 5 platform. Thank you. I don't really understand the question. What are you trying to close Close the keyboard Close the form Close the application Close the COM port ...Show All
Visual Basic Hide caret
How to hide the caret from text box using vb.net textbox1. ReadOnly = True Regards, -chris ...Show All
Windows Forms Prinitng a file
Is there a "simply" way to send a file to a printer. What I want to do is select a folder and send every file to the printer. Some are pdf some are doc-- same as if I selected all and then right clicked and selected print. I not worried about looping the folder files-- but just sending each full path to the pr ...Show All
SQL Server Generating a PDF type report and embeding fonts
When a .pdf file is generated by reporting services, does it embed the fonts used into the .pdf , or is there any way to tell reporting services to "embed all the fonts" Thanks in advance. Hi Sunny -- No, the PDF extension does not do font embedding...There is no way to force this behavior, either. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Duplicate Item "Resources" parameter error
I have a partial class in two files that inherit from a form. I changed a property on the form in both Form Designer Files and now keep getting this error message: The item "obj\Debug\Game.App.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter. Can anyone help I only changed the FormBorderStyle and already changed it back, but keep getting the error message. Thank You Thanks for the heads up with this. I recently noticed the new partial class support and how it helps to separate classes in ...Show All
Windows Forms Databinding to a User Control
Hi. I'm using VB.Net 1.1 and have created a 'masked edit' control (from a blank user control) that works well for dates. I'm now wanting to distribute this control to other programmer's to use as their 'date' control. The problem I'm running into is being able to bind this user control using the BMB. Basically the way we bind now is we pass a ...Show All
Smart Device Development Threading issue?
Hello! I've got two threads, one which recieves data from a socket, and one which is a windows form. This two threads are both in different classes and I now wonder which would be the best way to update a progressbar in the windows form from the recieving class Noted should also be that the form and the reciever both is initzalized from another class which listens to the socket and sends it to the reciever when an connection is incoming. This "listener class" is inited itself by the mainclass of the application, another windows form. Thanks, Martin Be careful of updating controls in your UI thread from another thread. The rig ...Show All
.NET Development Any string function to do this...
Hi, I want to know if the framework has a built in function to do this: Dim strText as String = "This is an example test text, more text here and another is keyword" I want to retrieve everything between "is" and "text" something like: result = x.find("is","text",strText) result is equal to "an example test" Thanks! Diego i don't think that .NET Framework have provide any a function to do it. However, it could be done by finding the index of the "is", the index of the "text", and call the substring method in String class. Unfortunately, you still have to get rid of the spaces(the space at the start an ...Show All
Windows Forms Maintaining the selected row after sorting a DataGridView
Hi, Simple question, hopefully there's a simple answer: How can I maintain the same selected row even after a sort on a DataGridView In other words, after new items have been added to the binding source and a sort has been forcefully been carried out (in the custom BindingList), how can I ensure that the selected row is the same row as the one selected before the sort Bear in mind, I'm doing the sorting in a custom BindingList so I can't just handle the Sorted or SortCompare events and implement my own logic there. Thanks, Jiten You will have to record some info that can uni ...Show All
Windows Forms Regarding opening a application inside the Form
Dear All, I want to open a application inside a from.Can it be acheived I checked the "AxWebBrowser1" It is just allowing me to open the Microsoft Exe ..But if i want to open the Oracle Forms inside the Window how can i do it.. Can it be achieved.Please help me out in this... For Ex: I have a treeview menu in the left of the screen ...Show All
Visual Basic ? difference between: Me, MyBase and Parent
I don t know what the difference is between these three items: me, Mybase, parent When do we use each of them. Also is the quivalent of this in C#: Me or MyBase Gracias Amigos:) Me is a reference to the current object. Often optional to use, but helps clarify your code when accessing methods and properties with objects with similar names. MyBase is a reference to the base object: the current object may have inherited from a base object. Used when you explicitly want to access a property or method of the base class. Parent is the 'owner' or container of a control or form (Graphical controls) and is not relevant to a ...Show All
