Answer Questions
Psilo create procedure
Peace on you I want procedure writen in Oracle same this procedure in sql server which return record to fill it in DataSet in c#: create proc myproc @log varchar(250) as select * from users where loginname = @log return Pleace write the procedure in oracle return record Bye! You want a procedure in Oracle which can be called from C#...If this is correct let me know, I will give you an example.... ...Show All
ElChairo Get a windows object from its handle
How do I get a windows object from its handle in C# IntPtr pointer = MyControl.Handle // this is fine but how do I .... Control c = GetControlFromIntPtr(IntPtr). Thank you. I had trudged through MSDN, this forum and Google with no luck. I even missed in Intellisense cus I had declared an instance. Control.FromHandle() With all the different cla ...Show All
Sohrab reference-type objects allocated on the stack?
I'm curious how intelligent the Visual C# compiler is regarding memory managment of reference-type objects. All reference-type objects are said to be "destroyed at an unspecified time after the last reference to them is removed". I'm wondering whether or not the compiler uses any data flow analysis to recognise reference-type objects that don't actually need to allocated on the heap. For example: namespace ConsoleApp ...Show All
Joe Szymanski Is it possible to show FileProperties Dialog in C# without P/Invoke?
Hi all, In Win32, I use SHELLEXECUTEINFO structure, and invoke ShellExecuteEx to display the FileProperties dialog: SHELLEXECUTEINFO proc = {0}; proc->hwnd = NULL; proc->lpVerb = "properties"; proc->lpFile = "c:\\layout.txt"; proc->nShow = SW_SHOW; proc->cbSize = sizeof (SHELLEXECUTEINFO); ShellExecuteEx(&proc); Or simply invoking ShellExecute like this: ShellExecute(NULL,"properties","c:\\layout.txt"," ...Show All
Tadeusz_EIF Raise event from IE hosted windows user control and catch it in the Web Form that’s hosting the control
Hi. I have a web app that uses a IE hosted windows user control. I would like that, somehow, lounch an external event from that hosted control that I could catch in my web form’s code behind. If possible, please send me a small sample project ( bozesan_mihai82@yahoo.com ). But, of course, I would appreciate any suggestions! Thanks in advance! Sorry that I'm pushing you...It's just that I'm a beginner and I don't ...Show All
Nakkeeran R Design Time Collection Editing
I am creating a custom menu. I would like to edit it in the same mannor as the ContextMenuStrip is done. Such as the menu on the design form, etc. Is this possible My object contains a ToolStripItemCollection just like the Context Menu Strip... If you could help or atleast point me to a place that would be very helpful. Thanks, Mike Anyone Is this even possible... If its not tell me that ...Show All
Andrew SES Form Instance
Ok. I have 3 forms. On form1 I want to declare an instance of form1. How would I make this new instance available to the other forms Can someone help me What do you mean by 'available' How are you creating and showing these forms Why do you need two instances of the same form hi cgraus, I was just having an example to put it on the form_load event. He can try it using the button_click event. Hi, To declare a n ...Show All
vkumarme Mouse Events
Im trying now to get the coords of the mouse on the SCREEN out side my form i was thinking to use win32 WindowProc function on the desktop handler ( using getDesktopWindow() ) im familiar with using external functions like getDesktopWindow but i just have no clue how to user WindowProc function .. it suposed to get callback function or something how to do it in c# thanks :) You can get the coordinates of the ...Show All
enaim254 How to catch windows messages in normal class
Hi, During the development of a project with threads i was supposed to use windows messages. I know how to catch windows messages in forms, but not in a normal class. Can anybody help me with this problem With kind regards, Jeroen Olie I’m sticking my neck out here, but I’m not sure what you mean by a ‘normal’ class. The Windows message pump that you’re talking about is specific to Windows Forms. In other words, the form is neede ...Show All
Steve Stirrup Limit results set in a query?
Hello, Is there a way within the plain search syntax to limit the number of returned rows from a query Using the WDS front-end the optimized query (i.e. from the query.log) it looks like there is a: CMD-PROP=\"Maximum Rows=100;\" annotation on the SQL Select. Is there anything I can use in terms of the non-SQL query syntax, i.e. something like: "foo date:last month returnmax:100" Or should I be doing this ...Show All
PC-Gram Database connection Dilema
Hi I am working on an application with two main parts. The first part is the database I am connecting to and the second is an activeX control. I am also using SQL 2005 Express as my database server. The way I have incorperated the database into the app is by using a auto-generated dataset and table-adapter and then doing the rest of the coding myself. My app has to do a few simple queries and occationally write some information to the database. ...Show All
POSKOK How in the world?
I have a text file that I am reading that looks like this: "2002", "1", "500", "2003", "1", "501", "2001", "1", "500", "2000", "1", "503", "2001", "2", "500", "2000", "2", "540", "2003", "2", "550", "2002", "2", "523", The first column is 'year', the second is 'internal/external (1 means internal, 2 means external)', and the third is 'amount'. I want to use these numbers to make a report that looks like the following: Year: &nbs ...Show All
naveen73 OLE Problem
Hello, I am working with COM interoperability. i.e, i am trying to access objects exported from unmaged code, from C# . But i am getting a Run-time error as "Specified OLE variant is Invalid" i go through many web-sites and forums. i failed to get my luck. Finally, i decided to post in microsoft forums, as this is belongs to microsoft product. Please help to solve this problem. Thanks in ad ...Show All
Markus Wöß windows forms + popup +variable value
Looking for some help, if you have the time (anyone) it'd be great. Here's the deal. I've got a windows form...dropdown list of states. If Florida is selected, I want a pop-up window to ask for a $$ amount. Then that value in the pop-up has to be stored in a variable so I can do some math on it before displaying it in a summary box. Any idea how to do a windows pop-up, grab a value entered, and then display in a text box with something like ...Show All
RayVI Turn off space after curly brace on same line
Can someone please tell me how to set the c# editor so that it does not place a space before a curly brace that occurs on the same line as a class/namespace definintion I just can't seem to figure it out and it is annoying the heck out of me. example: class foo { } I want to read: class foo{ } It is possible in Whidbey however it is not possible in prior versions. In ...Show All
