|
Hi All,
I add a comobobox to my form and I can't use the mouse in the edit portion. I can use it to click and move the caret, but if I try to select anything it doesn't work. Anyone know what this is? I do have the style set to the one where you can edit the box (don't remember what it's called at the moment though).
- monrobot13
|
|
|
|
|
|
monrobot13 wrote:
Anyone know what this is?
Its a bug in .NET 1.0, fixed in 1.1.
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|
|
First thanks,
Second, how would I start using the .NET 1.1 controls?
Thanks!
- monrobot13
|
|
|
|
|
That is a bit harder to answer, if you are using VS.NET 2002 you are stuck with .NET 1.0 so long as you use that for building/debugging your application.
If you have VS.NET Professional or Higher (not Academic) then you should try to get the $30 upgrade to VS.NET 2003 so you can take advantage of .NET 1.1 right out of the box.
If you can't upgrade, or don't want to; you can still make use of .NET 1.1, its just a LOT harder to do.
First, I recommend getting, installing, and learning NAnt[^] for building your application. The samples and documentation are thorough enough that it'll only take an hour or two to work out what you need to do to duplicate your VS.NET build setup in NAnt.
Once you do that, you can have NAnt target .NET 1.1 for the build and your application will be use .NET 1.1 by default, only dropping to .NET 1.0 by using a config file.
Debugging is a bit harder to do. What I did was start my application, then use VS.NET's Attach to Process command to debug that process while it was running. A very large PITA but it got the job done while I waited for VS.NET 2003 to arrive.
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|
|
Thanks again for the help James.
I just have one more question. I did some reading at the NAnt site and noticed that it doesn't seem to have support for MC++ (It has a task that wraps the "cl" complier, but I don't think this works for MC++). Am I right in assuming that? If that's the case I guess I'm SOL unless I get VS.NET 2003.
Thanks again James!
- monrobot13
|
|
|
|
|
Hi everyone...
if i select a node in a treeview that displays a panel on the form, how can i dispose of that panel after another node is selected?
I don't want to have to use the
panel1.Dispose();
method whenever a different node is selected. Can someone help a gnuB figure this out?
thanks
.gonad.
|
|
|
|
|
I'm not sure if i've understood your Problem, but what about storing a reference to the active panel and call the Dispose()-Function to this, so you don't have to close all Panels.
Roland
|
|
|
|
|
Hi All,
I would like to get the position of the cursor inside a text box. And I would like to place a combo box following the cursor as the user types in the text box. Basically I am trying to bring "Intellisense features " Inside the text box. Can any one suggest me some methods to do this ?
Thanks and Regards
Balachandar Ganesan.
|
|
|
|
|
|
Hi all!
I'm working on a .NET data provider, and the DateTime Constructor is killing me. The data is coming from a byte array (which is an ODBC TimeStamp structure) and I'm tearing it apart and stuffing it into a DateTime.
In my test application, it takes me 10+ seconds to return 10,000 records from the DB. If I comment out the DateTime constructor line and just return null for the DateTime, it only takes 2 seconds to return the 10,000 records.
So far, I've tried every constructor to see if there was any different performance. The only constructor that had any difference was the DateTime(long) (ie, number of ticks since 1/1/1), but how do you calculate how many ticks a given date is?.
All of the properties are read-only, so I can't create a temp DateTime and just set my values (or can I?). I'm really kind of at a loss here...
Anyone have any ideas?
Josh
Find a penny, pick it up, and all day long you'll have a back-ache...
|
|
|
|
|
You might consider running the fetch in a thread so that the user is less affected by the delay.
α.γεεκ Fortune passes everywhere. Duke Leto Atreides
|
|
|
|
|
Thanks for the suggestion, but it really isn't an option . I found that the only constructor that is worth anything (performance-wise) is the DateTime(long ticks), but I was having a hard time converting the date from an ODBC structure to the tick value. I found a work-around by using the FromOADate(double date) static function that had similar speedy performance. I wrote some code to convert the ODBC date to an OLE Automation date, and , I'm back in business!
Josh
Find a penny, pick it up, and all day long you'll have a back-ache...
|
|
|
|
|
I am doing an windows application and i need to make the mouse click automatic,
My code:
...
if(int = 5)
{
//mouse auto click
}
How can i make the mouse click=
|
|
|
|
|
use SendMessage
|
|
|
|
|
|
Hello,
I'm trying to parse frames from pages using the WebBrowser control and sometimes when frames or iframes are not from the same domain as the main page, I get an interframe security problem.
This problem (or feature of IE) is well known and a workaround exists for C++. My problem is that I'm not comfortable with COM object and don't known how to translate the workaround into C#.
Any help on translating this will be greatly welcome.
Here is the KB article from MSDN:
KB196340 - HOWTO: Get the WebBrowser Object Model of an HTML Frame
<br />
LPDISPATCH lpDisp = NULL;<br />
lpDisp = m_webBrowser.GetDocument();<br />
<br />
if (lpDisp)<br />
{<br />
IOleContainer* pContainer;<br />
<br />
HRESULT hr = lpDisp->QueryInterface(IID_IOleContainer,<br />
(void**)&pContainer);<br />
lpDisp->Release();<br />
<br />
if (FAILED(hr))<br />
return hr;<br />
<br />
IEnumUnknown* pEnumerator;<br />
<br />
hr = pContainer->EnumObjects(OLECONTF_EMBEDDINGS, &pEnumerator);<br />
pContainer->Release();<br />
<br />
if (FAILED(hr))<br />
return hr;<br />
<br />
IUnknown* pUnk;<br />
ULONG uFetched;<br />
<br />
for (UINT i = 0; S_OK == pEnumerator->Next(1, &pUnk, &uFetched); i++)<br />
{<br />
IWebBrowser2* pBrowser;<br />
<br />
hr = pUnk->QueryInterface(IID_IWebBrowser2, (void**)&pBrowser);<br />
pUnk->Release();<br />
<br />
if (SUCCEEDED(hr))<br />
{<br />
pBrowser->Refresh();<br />
pBrowser->Release();<br />
}<br />
}<br />
<br />
pEnumerator->Release();<br />
}<br />
Thanks,
R. LOPES
Just programmer.
|
|
|
|
|
In Winform, I would like to put a linkedlabel, by click it, it will show up IE web browser, ( Browser will totally seperate from Windform, not within a winform control), how can I do it?
|
|
|
|
|
See Process claass.
Mazy
No sig. available now.
|
|
|
|
|
this should help you :
VB:
<font color="#0000FF">using</font> System.Diagnostics;
<font color="#006400">
<font color="blue">Private</font> <font color="#0000FF">void</font> button1_Click(<font color="blue">Object</font> sender, System.EventArgs e)
{
Process processToStart =<font color="#0000FF">new</font> Process();
processToStart.StartInfo.FileName="IEXPLORE.exe";
processToStart.StartInfo.Arguments="http://google.com";
processToStart.Start();<font color="#006400">
}
hope it helps
<font color="blue">Private void</font> ExpectingTwins(<font color="blue">string</font> twins)
{
<font color="blue">switch</font>(twins)
{
<font color="blue">Case</font> ("twins on the way"):
MessageBox.Show("for mr and mrs dynamic","twins on the way");
<font color="blue">break</font>;
}
}
|
|
|
|
|
use combination of Process and ProcessInfo class
and call method start ;)
|
|
|
|
|
This should do the trick. (I think I originally picked up this from MSDN or something):
private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)<br />
{<br />
linkLabel1.Links[linkLabel1.Links.IndexOf(e.Link)].Visited = true;<br />
System.Diagnostics.Process.Start(e.Link.LinkData.ToString());<br />
}<br />
|
|
|
|
|
Is it possible to call a C# DLL(or really any other way to use C#) from a C DLL?
|
|
|
|
|
Yes, but you will have to work with COM. Look into the topic of Com Interop. You will need to tell the project to register the c# dll for com interop.
Hope this helps,
Nathan
---------------------------
Hmmm... what's a signature?
|
|
|
|
|