ravindra_pn's Q&A profile
Windows Forms bringtofront()
Hi, i get problem with main menu and children case ( true ): // //I need to bring the form to the front. //If it is minimised, how do i open it back to original //state. foreach ( Form F in this .MdiChildren) { if (F.Name == aForm.Name) { if (F.WindowState == FormWindowState .Minimized) { //code to open the form ( not maximise it ) } F.BringToFront(); break ; } } break ; if (fm.Name == "Form2" ) { fm.BringToFront(); }; okay thats rite, see my code, where i have the part to see if the form is minimised, i want to open the form, it actually does not open with bringtofront, nor ActivateMdiChild ...Show All
.NET Development XSD.exe generation of <remarks>
When one uses xsd.exe to generate class files from an XSD, it inserts empty <remarks> comments above each member. These do not seem to be persisted back when one uses xsd.exe to generate an XSD from the generated class. Do these sections get filled from a particular attribute or element in the XSD If not then why are they there I think the main reason most code generaters (xsd.exe, wsdl.exe ect.) make empty <remarks/> is to avoid warnings from the compiler about missing documentation. For that reason it makes sense that it isn't persisted back to the XSD. ...Show All
Visual Studio Express Editions Import data (csv or Excell Spreadsheet) to existing table
I need to import data from another source database. I don't have access to that database only a csv or spreadshhet that the database provides. I have data already in the table and need to append the imported data to it. Using either a csv file or a excel spreadsheet, Can somone please explain how i import data into an existing table in vb2005 express. You don't mention what type of database you are working with but I will assume SQL Server. There are a few ways to do this but probably the easiest method would be to use BULK INSERT . ...Show All
Windows Forms How to make controls appearance independed from windows theme
Hello. I've developed an applicaition that uses lots of controls that change their appearance depend on Windows theme. For example this is a ToolStrip. With Windows XP theme it has required appearance, but I switch Windows theme it looks terrible with another application components that do not change their appearance (panels for exaple). Do you know how to make my applcation independed with chosen Windows theme Mostly I mean ToolStrip control. Problem with tab control is fixed using custom-drawn TabControl. Thanks in advance Hi, you can change ToolStrip's looks by changing its Renderer (through RenderMode property). You can choose between two built-in renderers (System, Professional) or you can write your own by deri ...Show All
.NET Development Update requires a valid UpdateCommand when passed DataRow collection with modified rows
I m coding with VB.Net. I have a datagrid on my form with a dataset as its datasource. The dataset contains rows from a joined two tables: Feature table and Price table. Feature table contains the customers'features. It has the ID of the features, the date the feature was added, the expiry date, the employee who added it.... The Price table is a look up table that contains the ID,price, Code, description and name of each feature. So my SQLquery is: SelectFeature_ID,Feature_DateEfect,Feature_DateExpiry,Feature_Employe, Price_Name, Price_Code, Price_Name... The reason why I use that joined query is that I need to display all the columns on my datagrid including the values from the Price look up table. But I update only the Feature table wit ...Show All
Visual FoxPro Excel & Foxpro 5.0
Looks like I'll end up writing your whole code step by step. Please create a new thread next time so others would also deal with your questions. oExcel = Createobject("Excel.Application") With oExcel .Workbooks.Add .Visible = .T. With .ActiveWorkBook.ActiveSheet .Range('A1:F10').Cells.Value = 'filledbefore' .Range("1:6").EntireRow.Insert Endwith Endwith ...Show All
SQL Server Is there anyway to do SUM on join table?
I would like to start using SQL Server CE rather than SQLite for an application I am developing, due to it's replication support for SQL Server however there appears to be a gaping hole in it that means I can't even consider it. Specifically to do with aggregates against detail tables. Is there any way to do the equivalent of the following in SQL using SQL Server CE SELECT [Customer_Id], [Customer_name], COALESCE([OT].[Count_Orders],0) [CountOrders], COALESCE([OT].[Sum_Value],0) [OrderValue] FROM [Customers] LEFT OUTER JOIN (SELECT .[Customer_Id], COUNT(*) [Count_Orders], SUM( .[Order_Value]) [Sum_Value] FROM [Orders] GROUP BY .[Customer_Id]) [OT] ON [OT].[Customer_Id] = [Customers].[Customer_Id]); Any help would be most welcome Adrian ...Show All
.NET Development FileStream
Hi, i have a big data file >5gig, i want to store the data before the old data or in the middle of the old data without overwrite the old data. Exsample: <Old data size:1gb><NewData size:500mb><Old data size:5gb> how i can do this Thanks are you trying to do a virtual file system I think you should do a VFS Stream reader/writer and use an index at the start of your big file. then with the writer you write chunks and upodate the index, with the reader read the index to find which chunks are used by your files inside, and ultimately a defrag tool to write all the chunks in the right order. ...Show All
Windows Forms ImageList property's attributes
Hello. I have defined ImageList property in my custom control which inherits from the ComboBox. The pprrty can be defined via combobox. However it has a plus from the left which can be pressed and expand to the subtree of properties of the ImageList itself. I want to block this (the plus) functionality. How i can do it I see no attribute that lets you specify that. Note that the ImageList property of the Label and Button controls have the same behavior. ...Show All
Visual C++ C++/CLI problems/issues
I have some questions on C++/CLI issue. Let me explain my situation: I have an existing native COM dll that contains my logic. It has been tested and works fine with native C++ client using CoCreateInstance. I would like to add a new logic and notice that BCL has a class that I can use. So I add a new source file and header which I compile with /clr since I need to use one of BCL classes (actually, at this point, it is just an empty shell). When I tried to CoCreateInstance in my native client, it couldn’t create. But if I go back to my COM dll project and take out the /clr in my new source file, it works fine. After some debugging, I found out the problem and have been able to fix the issue. However, I would like to get more detai ...Show All
Visual C# How to create a LogFile...?
Hi... I want to create a Log file in my application. I want to use this log file to put the text received & transmitted on my PC serial port throgh my C# application. I am receiving large text on my PC serial port. Is there is any special class to create a log file in C#. Thanks in advance, Vinay Thanks, It will surely help me... One last thing...wont that StringBuilder variable "theLogEntry" will cause any problem to my running application if data to logged goes beyond say 10000 or more lines... (means if my logged data becomes too large) Can i check file size or stringbuilder length by any chance(say 100KB)... If it is greater than this size then close first & ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Voiding xBox 360 warrenty
Someone told me that if I deploy my project to my xbox 360 along with the xna framework it would void my warrenty. Is this true Unless by "deploy" you mean "take hard drive out and copy your project onto it directly". No need to worry. Btw, you deploy your project onto the Xbox using Game Studio Express via the network. The launcher has everything necessary to run your compiled project. No need to send the "XNA framework" to your box. ...Show All
Windows Forms BindingSource: when to add form data to underlying list
I have a BindingSource with an underlying list assigned as a datasource. I create the list from a flat file using the list contructor and then assign the list to my BindingSource's DataSource property. The BindingSource is assigned to a BindingNavigator. I use the Position Changed event to move data from the list to the form for display. This works perfectly for the MoveNext, MovePrevious, MoveFirst, and MoveLast events. Now I am ready to add a new record. My first thought was to use the AddNew event; however, the AddNew event is called prior to having entered the new data into the form. So, what is the proper event to catch for moving the data from the form to the empty record (which is created by the default AddNew processing) ...Show All
Software Development for Windows Vista elevate(UAC) activeX in vista?
Hi, We have an activeX dll which does file/registry writing and spawns childs process which also seems to need elevated UAC access. I have searched net, and found you could elevate executables by embeding 'manifest' file into the executables. I've also found analyzing tool 'standard user analyzer' for exe files, but it won't help me with activeX What should I do for activeX to be able to perform restricted writing and such One solution I found is that I could run IE as 'Run as administrator', and the activeX control could perform all neccessary actions. However, I don't want the user of the activeX to do that. Any help will be much appreciated. Thanks On Windows Vista, a process contains a single token an ...Show All
Visual Studio 2008 (Pre-release) What is the difference between DataContract and MessageContract?
What is the difference between DataContract and MessageContract Contract Type Member Attributes Description ServiceContract OperationContract Describes the operations a service can perform. Maps CLR types to WSDL. DataContract DataMember Describes a data structure. Maps CLR types to XSD. MessageContract MessageBody, MessageHeader Defines the structure of the message on the wire. Maps CLR types to SOAP messages. http://dotnet.org.za/hiltong/pages/53552.aspx ...Show All
