|
Thank you for you timely help. It's easy to change the width of the column's header. But there is no place in DataGrid that support us to change the height. It seems that DataGridView in .Net 2005 has this features. However, I want this for my application. Can you give me the answer?
|
|
|
|
|
How to get first object of checked listview without using foreach loop.
|
|
|
|
|
does this help
DataGridItem Item = lstLeads.SelectedItem;
//get value of checkbox
CheckBox aptCheck = (CheckBox)e.Item.Cells[5].Controls[1];
|
|
|
|
|
tidy up a bit
ListView Item = dtgLeads.SelectedItem;
//get value of checkbox
CheckBox aptCheck = (CheckBox)Item.Cells[0].Controls[1];
|
|
|
|
|
ListViewItem it = lstGuarantee.SelectedItems[0];
if(it.Checked)
{
}
|
|
|
|
|
dataset i created with some merges, i want to put that dataset into another empty database that has the same datastruture already.
|
|
|
|
|
just use t-sql
select * into [your new table] from [source data table]
or
insert into [dest data table] ... select ... from [your source table]
even you can write a c# function also use the same
ASP.NET C# VB VC & SQL Windows APP ...
|
|
|
|
|
Dear Friends,
When i am opening my web page from my localhost which is in ASP.Net with C#.
the page is simple nothing is there on page. it gives me error like
Parser Error Message: Could not load type 'talibgroup.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="talibgroup.Global" %>
Source File: c:\inetpub\wwwroot\talibgroup\global.asax Line: 1
Please help me to solve this problem.
Thanks
Murtuza Patel
|
|
|
|
|
The code is as follows:
this.client = new RTCClientClass();
this.client.Initialize();
this.client.EventFilter =RTCConst.RTCEF_ALL;
this.client.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(OnRTCEvent);
void OnRTCEvent(RTC_EVENT rtcEventType, object rtcEvent)
{
Trace.WriteLine("Entering RTCPresenceCore.OnRTCEvent " + rtcEventType);
switch (rtcEventType)
{
case RTC_EVENT.RTCE_REGISTRATION_STATE_CHANGE:
this.OnRTCRegistrationStateChangeEvent((IRTCRegistrationStateChangeEvent) rtcEvent);
break;
case RTC_EVENT.RTCE_CLIENT:
this.OnRTCClientEvent((IRTCClientEvent)rtcEvent);
break;
case RTC_EVENT.RTCE_BUDDY:
this.OnRTCBuddyEvent((IRTCBuddyEvent2)rtcEvent);
break;
case RTC_EVENT.RTCE_ROAMING:
break;
case RTC_EVENT.RTCE_PROFILE:
this.OnRTCProfileEvent((IRTCProfileEvent2)rtcEvent);
break;
case RTC_EVENT.RTCE_PRESENCE_PROPERTY:
break;
case RTC_EVENT.RTCE_PRESENCE_DATA:
break;
case RTC_EVENT.RTCE_MESSAGING:
OnIRTCMessagingEvent((IRTCMessagingEvent)rtcEvent);
break;
default:
break;
}
}
But I can not receive the event when other client send message to me? Why ?
Help.........
Great thank to those who help me.
|
|
|
|
|
I have a registry search launch condition in my deployment project that store the value that it retrieves in a property called DAVERSION.
The problem is that I need to use that property to get another value in the registry based on that value.
e.g. if DAVERSION = "1.0.3 (en-US)"
i need to go to
HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\1.0.3 (en-US)\Main
and get certain keys from it.
The problem is that apparently the regkey property cannot take in the DAVERSION property like so
HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\[DAVERSION]\Main
Is there a way to do this??
|
|
|
|
|
No.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi!
I am working on a Storage Area Network (SAN) performance mesuarement system by simulating Microsoft Word usage.
I've used Filemon to get the fileoperations MS Word are using during open/write/save/close on a document stored on another computer. I'm gonna use this information to create a program that simulates many MS Word users at the same time, accessing a file on the Storage Area Network. What is the best way to do this? Should I create a file filter for these operations?
Thanks for any help.
|
|
|
|
|
i would make shaking a window form as Yahoo messanger chat make if the user click on a button.
How can i do?
Someone speak about DirectX, but where are expleining about?
If the user of my application haven't got directx on its computer can i use other ways to do that?
Thanks.
|
|
|
|
|
Sasuko wrote:
Someone speak about DirectX, but where are expleining about?
No, if you just want the window to move a bit, DirectX is certainly not required. In fact, I'm not sure how it could help.
All you need to do is create a loop and set the window position within it to differing values, and possible call Application.DoEvents() to make sure the app responds to the events for you.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi Good to See you.
For shaking two windows form in same machine or remote machine you can use Remoting Concept of .NET.In Three steps you can achieve this.
1. Create Server:That handle your request
2. A client: request Sender
3. your From.
For details mail me.
|
|
|
|
|
Please always search on your own before posting.
If you would just have searched for 'shake form' with this little field right beneath the CodeProject logo you would have easily found this.
|
|
|
|
|
Thanks Christian, tnx robert!
|
|
|
|
|
Hey!
I am using System.IO.serialport(Framework 2.0 beta 1) to communicate throw the serial port(com/USB).
I have connected a function to the event DataRecived, and there is a steady incoming dataflow on this serial port. To be able to read the data I had to set DTEnabled = true.
Problem: Now I need to send some data back out on the serial port, but as long as I have a steady dataflow in to my program (that im reading) I cant send?
The data is not received on the other end.
|
|
|
|
|
I need to make some calculations from milimetres to pixels in my programme (for drawing) and I need a Dots-per-inch current value for this. Where can I get it? Supposedly in the WMI but isn't there a class which handles this in standard libraries by any chance? (It would even better if DirectDraw objects could perform drawing operations using milimetres coordinates, but I highly doubt it can be made
|
|
|
|
|
I thought GDI+ allowed you to set drawing units as inches ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
You can indeed set drawing units as inches (System.Drawing.GraphicsUnit.Point is 1/72 inch). Plus, you can get the DPI values from the System.Drawing.Graphics.DpiX and DpiY properties.
|
|
|
|
|
you can use the folowing function to make calculations and transformations betwin different coordonating spaces
Graphics.TransformPoints
|
|
|
|
|
I have a web service that has to log a few bits of information when a method is called. One bit of information i need is the external IP of the client...
Context.Request.UserHostAddress.ToString()
and
Context.Request.ServerVariables["REMOTE_ADDR"]
both will return 192.x.x.x addresses for users who have a local address (almost everyone).
there has to be a way to see the actual remote ip that is calling the request, right?
|
|
|
|
|
Hi. I'm adding a bunch of XmlNodes into a ListBox control. Now, when I look at the list box, I see a bunch of System.Xml.XmlElements (which is expected).
I would like to be able to display in the ListBox some specified text, but the problem is, the text is not just a public property in the XmlNode class, so I can't use DisplayMember . In order to get the text, I need to run a XmlNode.SelectSingleNode().InnerText . So far, I haven't had any luck putting anything like that into DisplayMember .
Is it possible to get the inner text of a single node from an object in my ListBox and have it displayed instead of System.Xml.XmlElement? Or am I going to have to wrap it in a class or something?
/\ |_ E X E GG
|
|
|
|
|
For any item added to a ListBox, the text returned by .ToString() is displayed.
The simplest solution is to create a wrapper class that overrides ToString()
public class NodeItem
{
private XmlNode m_node;
public XmlNode Node {...}
public NodeItem(XmlNode node)
{
m_node = node;
}
public override string ToString()
{
return m_node.InnerText;
}
}
myListBox.Items.Add( new NodeItem(myNode) );
|
|
|
|