|
I used to know how to get a WinForm to display AND have the Console Window appear at the same time-
I don't really care if they overlap as long as both appear.
-- thanks in advance
|
|
|
|
|
Set the project type to Console Application.
There you go, you now have a console.
Then create any forms you wish.
There you go, you now have both.
|
|
|
|
|
i've created a form with 2 panels 3 button, 1 controlbox...
I need to draw a blue rect over all.
Can i do it directly using Graphics (no with picturebox)?
|
|
|
|
|
You can draw the rectangle in OnPaint, but I suspect you'd need to hide the controls, they will show through.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am killing myself trying to figure how to use something like AutoItDLL in C#. I posted the question to their forum, and they obviously don't seem to have a big C# following. Does anyone know of any tools like AutoItDLL.
(AutoIt is a simple tool that can simulate keystokes, mouse movements and window commands (maximize, minimize, wait for, etc.) in order to automate any windows based task (or even windowed DOS tasks).)
I am trying to avoid having to build this functionality from the ground by inheriting a bunch of stuff from the user32.dll (not lazy, but up against agressive timeline)
Any help would be GREATLY appreciated.
I am not apposed to using AutoItDLL but I can't find any sample code or produce and personal success with it thus far.
Thanks!!
|
|
|
|
|
Here's the deal:
I have a pointer to some unmanaged code, in the form of IntPtr.
It's a callback. Now how do I call it?
|
|
|
|
|
See if this helps
http://www.codeproject.com/csharp/Win32_to_NET.asp
Live Life King Size
Alomgir Miah
|
|
|
|
|
No, I'm afraid that is doing the thing in reverse. It is calling a .Net callback from unmanaged code. I, however, have the callback in unmanaged code and need to call it from .Net.
Every article about this seems to assume that the .Net app is "in control", which is really annoying, since right now, .Net is taking the orders from unmanaged code and I have no reference to go by
|
|
|
|
|
|
Nono, it's the opposite.
I don't need to make a delegate into an IntPtr, I need to basically make an IntPtr into a delegate.
|
|
|
|
|
Looks like a mixed-mode wrapper might be the answer. I haven't managed to get it to work yet, though (due to the PtrToStructure problem a few posts above).
|
|
|
|
|
Hi all,
I am building this GUI for a client I wrote some time back. I have done all the work on a Desktop machine in my office and it works fine. I have put it in a jumpdrive and tried still works fine (on the same machine). But when I bring it home and try it on my laptop, its has som weird problems.
My GUI has 2 dropdowns or the boxes called listboxes. When I run the program, these boxes are empty, they dont show me the items inside, tough they scroll and do take some random value from the list while excecuting. Is this some kind of property setting I am missing? Please do help me on this, as I am completed with everything else, and stuck here.
Sowmya Mulukutla,
UAB
|
|
|
|
|
|
Hello,
I have a datagrid: dataGridRevenues.
and tablestyles : styleLotYields.
How can I access particular cells in my datagrid, and how can I raise an
event on leaving a particular cell.
Thank you
|
|
|
|
|
int currentGridRow = 0;
int currentGridColumn = 0;
this.dataGridRevenues.CurrentCellChanged += new EventHandler(this.OnGridCurrentCellChanged);
styleLotYields[0].TextBox.Leave = new EventHandler(this.CellLeave);
private void CellLeave(object sender, EventArgs e)
{
if ( this.currentGridRow == 9 && this.currentGridColumn == 2 )
{
//Do some stuff
}
}
private void OnGridCurrentCellChanged(object sender, EventArgs e)
{
DataGridCell dataGridCell = this.dataGridRevenues.CurrentCell;
this.currentGridRow = dataGridCell.RowNumber;
this.currentGridColumn = dataGridCell.ColumnNumber;
}
Live Life King Size
Alomgir Miah
|
|
|
|
|
Adding to this i have a new question. How would i find the cell if it is a master detail datagrid and i want to fing cell in the inner grid?
Srinivas
|
|
|
|
|
Hi, I have a distributed application conecting presentation and busines rules tierswith remoting in tpc channel.
I want to send messages to the client (presentation tier) from server (business rules tier) but not with exceptions.
I want to show these mesaages into popup ballon un the presentation aplication. In most of the cases these mesaages will be abou sqlinfomessages of the connections.
I think i need to use Message queue MSMQ but I dont Know how.
What I need to do to acommplish this or watha othre way can I do and how. Please help me!
Thank you!
La realidad no es más que impulsos eléctricos del cerebro - Morpheus
|
|
|
|
|
I'm not sure if this is the best forum for this, but I'll give it a shot. We have a large Win32 app (not MFC) - with many windows. We have developed many re-usable business-specific panels that we load into these windows at runtime based on a users configuration.
Now that we are moving to .Net and C#, it would be a big advantage to be able to create re-usable panels in C# and add them to our Win32-based framework. We have successfully done this before with ActiveX components - like the browser control for example. Basically we manage the activex control window's geometry in place within our Win32 window.
Would we be able to do something similar with a C# user control? Any ideas on how to proceed here?
|
|
|
|
|
You can use Interop to achieve this. tlbexp utility is the answer.
Please visit msdn.microsoft.com for the details. I have done this
successfully in my project.
Alomgir Miah
Live Life King Size
|
|
|
|
|
Hello there!
I am trying to import data from excel spreadsheets to store it in datasets using OleDB, but something really weird is happenning for some cells.
What´s happening is that some cells (with non-null values)simply returns null.
Does anyone have any clue? Has someone experienced the same behaviour?
I would be thankful if someone could hel me with this issue.
Hugs,
Fernando Miranda
M.Sc., Software Developer
dollar_br@yahoo.com
Rio de Janeiro - Brasil
|
|
|
|
|
|
can find article how to do it..can you help me
|
|
|
|
|
See if this helps
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrcore/html/wrwlkUsingXMLSchemaToPushTextToWordDocument.asp
Live Life King Size
Alomgir Miah
|
|
|
|
|
You can try brute force...you can use the ExcelSheet.Range method/property to access the cell value.
|
|
|
|
|
I have a combobox that displays a list of dynamically loaded "plugin" objects, using the code below:
Assembly ControlLib = Assembly.LoadFrom( Location );<br />
<br />
object objPlugin = ControlLib.CreateInstance( ControlName );<br />
<br />
cboList.Items.Add( (IFTPlugin)objPlugin );
I have set the combobox "DisplayName" property to "Caption" (a member of the IFTPlugin interface), but it always calls ToString on the object instead and shows the assembly name instead of the friendly name.
I know that the object is loaded correctly, and that the "Caption" method is working, because I can call the following code and get the expected result:
string strCaption = ((IFTPlugin)objPlugin).Caption;
Rather than override the objects ToString function, is there a way to get the combobox to correctly call IFTPlugin.Caption ?
Thanks for your help.
The StartPage Randomizer
|
|
|
|