|
Mark Nischalke wrote: There is not code to fix this, open the web page in the other browser.
I despair sometimes. I really do. It just boggles the mind why he didn't try this to begin with.
|
|
|
|
|
I really hope you mean you want to do this from Visual Studio as you're developing...if not, let me know and I will drop some abuse to you like the others.
Right click on project
Browse with.... select the default browser in there.
Knowledge is hereditary, it will find its way up or down.
Luc Pattyn
and since what every time when i want to add button to this control one add two times
posted in C# forum
|
|
|
|
|
|
Arun_mw wrote: I am using MS Active Accessibility thru oleacc.dll.
i want to use AccessibleObjectFromID in order to get the Interface IAccessible for the menu control of an MFC Application.
but for this an instance of IAccessibleHandler is required.
Wrong forum. Try the C++/MFC forums instead.
|
|
|
|
|
Hi!
I have some problem relating saving datetime variable in SQL Server from C#.net application. i use Datetime.ToShortDateString() while sending parameter to Database. now the format of resulting string depends upon the regional settings of windows and SQL server takes M/dd/yyyy format or ISO format yyyymmdd. I want my application to be independent of regional settings. so i want whatever the regional setting is i should send to DB after converting to M/dd/yyyy format. For this purpose i wanted to override DateTime.ToShortDateString() but DateTime is a sealed class. So what should i Do???
any suggestions??
May God help u solv ur problems as well,thx in advance!!
|
|
|
|
|
|
Don't use a string, use a parameter.
|
|
|
|
|
hi friends..
How to set mouse move(cursor movement) with some equal distances (like Autocad)...
|
|
|
|
|
Windows Form have a event MouseMove
The event gives you X and Y pos. After that it is all up to calculation
|
|
|
|
|
Hi friend..
can u send some sample code
|
|
|
|
|
private void Form1_MouseMove(object sender, MouseEventArgs e)<br />
{<br />
label2.Text = "Pos X: " + (e.X - posX).ToString();<br />
label3.Text = "Pos Y: " + (e.Y - posY).ToString();<br />
int a1 = (e.X - posX) * (e.X - posX);<br />
int a2 = (e.Y - posY) * (e.Y - posY);<br />
int a3 = a1 + a2;<br />
Double a4 = System.Math.Sqrt(a3);<br />
label4.Text = "Relative: " + a4.ToString();<br />
}<br />
private int posX;<br />
private int posY;<br />
<br />
private void Form1_MouseClick(object sender, MouseEventArgs e)<br />
{<br />
posX = e.X;<br />
posY = e.Y;<br />
label1.Text = "Selected: X=" + e.X + " Y=" + e.Y;<br />
<br />
<br />
}<br />
<br />
private void Form1_Load(object sender, EventArgs e)<br />
{<br />
posX = 0;<br />
posY = 0;<br />
}<br />
On windows form override the following events and place four labels. This is a simple math operation.
Edit: This is in pixel. If you write such programs and have zoom level you have to convert to mm ir inchecs.
|
|
|
|
|
Hi friend..
i need the cursor will move equal distance..
for example.. the cursor position e.x is 100 and e.y is 50 means... the cursor is in 120,60(e.x,e.y)...How to set manual values as cursor position...
|
|
|
|
|
Have the container for yours value. Check my sample as having click event. The current position mouse becomes 0,0 and then you can move.
But if you want to prgramaticly move mouse then i dont know. I will try look into MSDN Library
|
|
|
|
|
|
Hello!
I have a class with a bunch of properties. Sometimes I only have a string for which property I should set. Is there some smart way to copy how datatable["NameofDataColumn"] works? So I can call my class´s property as I´ve done in subject-text?
/regards
|
|
|
|
|
|
|
I was reading this article[^]
And is it possible to use additional modifier "fn" that laptop has?
And how to detect diffrance betwen left and right modifier?
And yes i am using Net Framework 3.5 with C#. I am using Interops services to wrap native dll calls.
|
|
|
|
|
Hi all I'm trying to get my app to read in all contacts in the contact folder of Outlook.
code
-----------------------------------------------------------------------------------------------
Outlook.ContactItem item = (Outlook.ContactItem)objOutlook.CreateItem(OlItemType.olContactItem);
DataTable dt = new DataTable();
dt.Columns.Add("FirstName");
dt.Columns.Add("LastName");
dt.Columns.Add("CompanyName");
dt.Columns.Add("Email");
dt.Columns.Add("HomePhone");
dt.Columns.Add("WorkPhone");
try
{
objFolder = objNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts);
Debug.WriteLine(objFolder.Items.Count + " Contacts found.");
for (int i=0; i < objFolder.Items.Count; i++)
{
item = (Outlook.ContactItem) objFolder.Items.GetNext();
dt.Rows.Add(new object[] {
item.FirstName,
item.LastName,
item.CompanyName,
item.Email1Address,
item.HomeTelephoneNumber,
item.BusinessTelephoneNumber
});
}
Debug.WriteLine(dt.Rows.Count + " Contacts exported.");
}
catch (System.Exception e)
{
MessageBox.Show(e.ToString());
}
----------------------------------------------------------------------------------------------------
m getting an error system.nullreferenceException for "item".
what to do?
thanks in advance.
|
|
|
|
|
i need the equivalent to System.Windows.Forms.Application.Restart() for console app.
any hint?
thanks
|
|
|
|
|
buchstaben wrote: i need the equivalent to System.Windows.Forms.Application.Restart() for console app.
any hint?
There isn't one. You'll have to write it yourself. All restart does is to start a new instance of the application with the same set of conditions as the original was started within then shut down the current instance.
|
|
|
|
|
hm..in this case, the "new" instance is startet before the old is killed.
i'm not sure right now if this can be a problem, but i'd prefer to avoid this..
|
|
|
|
|
buchstaben wrote: hm..in this case, the "new" instance is startet before the old is killed.
Yes - Which is also how Application.Restart works too. (I naturally assume that you know this already)
buchstaben wrote: i'm not sure right now if this can be a problem, but i'd prefer to avoid this..
Why? You were happy to use Application.Restart if it were available to you.
|
|
|
|
|
Colin Angus Mackay wrote: Why? You were happy to use Application.Restart if it were available to you.
I were happy because I didn't know the behaviour
However, it works now.
|
|
|
|
|
Call Main again - but don't forget to include an exit condition somewhere otherwise you'll end up in an infinite loop.
|
|
|
|