|
hi,
can come one please guide me how to dock the first column in datagridview.so that when the number of columns increases and scroll is there the first column in visible even if we scroll to the last column.
treat this as urgent
|
|
|
|
|
As far as Datagridview is concerned, it does not provide this functionality.
You should look for some other datagrids available.
I know that Xceed provided this functionality
|
|
|
|
|
Cross-post. Another thread in C#
|
|
|
|
|
|
|
A few years ago I installed ESRI ArcInfo 9 on my machine at work. It's a bitch to learn, but I'm slowly mastering it. In December I upgraded it to version 9.2 and immediately noticed a different behavior - printing that used to take a couple of minutes now takes over an hour. The only installation difference I noticed was that the new version installed .Net Framework 2. I can't figure out what would cause such a performance hit. I wrote it off to my machine being underpowered for the new version and moved on to other tasks.
This week I got a new machine with gobs of RAM and a 2.33 GHz cpu, so I figured my troubles were over when I reinstalled the ESRI product. Nope. A single map with minimal detail still takes over an hour to print. Why? Did the .Net 2 data access model change significantly?
One possible explanation that comes to mind is that the data source is kept on a separate server to safeguard it with RAID and regular backups. It might be that the original product fetched all the required data in a single transaction, but the new model fetches only records that are needed at that moment. That would make the network and server hard drive access time the culprits. But I can't verify that, and worse, can't fix it.
Any thoughts about how I might restore the original functionality, short of uninstalling the newer version?
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Sounds more like an issue with Esri. You may want to raise a call with them to sort this out.
|
|
|
|
|
I'd love to call ESRI on this issue, but since our license is part of a blanket purchase by the US government, part of the deal is that the government, not ESRI, is responsible for tech support. In a blinding flash of brilliance, a couple years ago the government decided to close the GDSC in Denver, which focused on tech support and training for all government GIS applications. The tech support was transfered to the IT office in Washington, DC, where there are no employees who have ever used GIS software, and the training to Albuquerque, NM, where they schedule then cancel classes for a living. Our tax dollars at work...
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Roger Wright wrote: One possible explanation that comes to mind is that the data source is kept on a separate server to safeguard it with RAID and regular backups. It might be that the original product fetched all the required data in a single transaction, but the new model fetches only records that are needed at that moment. That would make the network and server hard drive access time the culprits. But I can't verify that, and worse, can't fix it.
You could verify this with a packet sniffer. Just watch the traffic that's coming across the wire and that should go some way towards confirming your suspicions.
|
|
|
|
|
Does anybody know where I can get a control like the picture control in Microsoft Word or PhotoDraw? I am in need of that type of image control that floats above another image (using layers), rotates freely and is resizable.
|
|
|
|
|
You can always write your own so that you have full control of what can and cannot be done. As for MSWord, it may be possible to to use VSTO to get the effect, but I have doubts.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
In order to have the functionality you want, you will have to write your own drawing code. Oh don't frown like that! The reason is because of the way windows controls behave. They were designed to look after their own paint code and they're definitely not designed for transparent areas. You can simulate transparencies with the Regions class but that option will produce jagged edges. Please don't force your users to put up with objects like that. If you've got some spare time, jump over to an article I've written on GDI+ code:
http://www.codeproject.com/KB/GDI-plus/gdi_plus_code_generator.aspx[^]
Download the source code and look at the structure I've implemented for drawing basic shapes. Use this as a spring board for your graphics code.
Cheers!
Richard
I've used up all my sick days, so today I'm calling in dead.
|
|
|
|
|
I think rotation is not so simple to be done
you should consider creating one or might be have to buy one
Vikas Amin
My First Article on CP" Virtual Serial Port "[^]
modified on Thursday, July 24, 2008 5:33 PM
|
|
|
|
|
I am trying to send a mail on a button click event
code for button click event is
/* using System.Net.Mail; included namespace*/
MailMessage msg = new MailMessage();
SmtpClient SmtpMail = new SmtpClient();
msg.To = "abc@reciever.com";//error 1 and 2 are in this line
msg.From = "xyz@sendername.com";//error 3 is in this line
msg.Subject = "test";
msg.IsBodyHtml = false;
msg.Body = "hi";
SmtpMail.Host = "localhost";
SmtpMail.Send(msg);
msg = null;
Label1.Text = "An Email has been send to " + "abc@reciever.com";
The errors are :
Error 1 Property or indexer 'System.Net.Mail.MailMessage.To' cannot be assigned to -- it is read only
Error 2 Cannot implicitly convert type 'string' to 'System.Net.Mail.MailAddressCollection'
Error 3 Cannot implicitly convert type 'string' to 'System.Net.Mail.MailAddress'
any suggest ion/solution will be highly appreciated
|
|
|
|
|
Hi,
To is a collection of MailAddresses and From is type of an MailAddress. For these reasons modify your code like below:
msg.To.Add(new System.Net.Mail.MailAddress("abc@reciever.com"));
msg.From = new System.Net.Mail.MailAddress("xyz@sendername.com");
Mika
|
|
|
|
|
Thanks I tried the following
MailMessage msg = new MailMessage();
SmtpClient SmtpMail = new SmtpClient();
msg.To.Add(new System.Net.Mail.MailAddress("abc@gmail.com"));
msg.From = new System.Net.Mail.MailAddress("xyz@rediffmail.com");
msg.Subject = "test";
msg.IsBodyHtml = false;
msg.Body = "hi ,how are you";
SmtpMail.Host = "localhost";
SmtpMail.Send(msg);
msg = null;
Label1.Text = "An Email has been send to " + "abc@reciever.com";
error:
Mailbox unavailable. The server response was: 5.7.1 Unable to relay for abc@gmail.com
now where is the problem?Please help me out...
One more thing In my last question even if there were errors but amazingly an email was sent to my inbox!!!!! What's going on?
|
|
|
|
|
|
I had same problem, try msg.To.Add(new System.Net.Mail.MailAdress("sendtoemail") this works for me.
|
|
|
|
|
Hi, I'm writing a web service that talks to a windows service via remoting. The windows service is configured to remote the object as a singleton. Since multiple web service threads can be spawned by multiple client requests the Remoted object has been written to b thread safe, but what about the web service (client) proxy to the remoted object?
Worded another way - I have multiple threads firing methods on a single remoting proxy that is connecting to a singleton object. Will there be any problems with the proxy itself?
Here's some psuedo code:
static RemoteObject remObject; <-- globally stored
main()
{
remObject = GetRemoteConnection(); <-- obtain connection
...
...
DoSomethingThread1.start();
DoSomethingThread2.start();
}
static void DoSomething()
{
remObject.DoSomething(); <-- Will get called by two threads at virtually the same time.
}
Thanks in advance for any insights.
Assert(this);
|
|
|
|
|
I answered this question myself. I could not find the information in the MSDN, so I made a test app. that connected to the service. The connections were done from 256 threads that then proceeded to make 50,000 calls at the same time. The server registered these calls and marked the begin and end of each call along with the thread ID. The trace log indicated multiple calls were being executed at the same time with no problems.
So the answer seems to be that he remoting proxy is thread safe, and will make multiple calls per connection instance instead of sequencing the calls over one connection. The only other thing I need to do is sniff the wire to see if multiple connections are being made, or if they are getting to the server over one connection.
BTW: Anyone know if after a remoting call over a TCP channel if the TCP connection is dropped, or does it stay connected for the life of the proxy?
Assert(this);
|
|
|
|
|
I do a development of applications that have both a Web site component and Windows support applications. I would like have a library that is common between the two. Many of the routines handle mapping between the UI and the data objects. Since the UI are rooted in System.Web or System.Forms, I am looking for a way to seamlessly (as possible) abstract out this mapping layer.
In pariculiar I am struggling with loading/saving lists from the combo boxes, list boxes etc.
What I am thinking of doing is having 3 libraries.
1) MappingLayer that has the abstractions
2) WebMappingLayer that has the implementations for Web UI
3) WinMappingLayer that has the implementations for the Windows UI
Is there a better way of doing this?
|
|
|
|
|
Hello
I am using VS2008 and C#.
I wanted to add a split button to my form but could not find one in my toolbox. So, I set about writing my own with help from various articles on the web. When it came to adding my new control to the toolbox I discovered the "Choose Items" option on the toolbox and that there was already a split button control available:
<br />
namespace Microsoft.Office.Tools.Ribbon (version 9.0.0.0)<br />
However, while it is selected, it is still not available in the toolbox.
I am going to continue developing my own control as a learning experience however im confused as to why this control is not available.
Any ideas?
Rich
|
|
|
|
|
Well I didn't know anything about it when I read your post but a quick glance at the documentation [^]and this jumped out.
The Microsoft.Office.Tools.Ribbon namespace contains components, controls, and supporting collections, classes, and enumerations that enable you to customize the Ribbon in the user interface (UI) of several Microsoft Office applications. All of the controls in the Microsoft.Office.Tools.Ribbon namespace can be added to your Office customization by dragging them from the Office Ribbon Controls tab of the ToolBox onto the Ribbon Designer.
I know it's popular these days to do software development without reading documentation but I still think all it does is waste a lot of time.
led mike
|
|
|
|
|
HI,
I want to make an application which is creating video using its own intelligence.
Explaination:
User will provide number of images,text,audio sound, In short all the multimedia options as well as user will select the size of resulted video along with the type of the resulted video extention(.mov, .avi etc).
Now the aplication will be selecting all the inputed resources and will create video ,which will be of specified size and having extention as per the users requirement.
I'm confused that where do i start from and where can i find API which will help me going ahead.
I need the API in .net-c#.
Please help me out ASAP.
Thanks in Advance....
|
|
|
|
|
krutishukla wrote: I'm confused that where do i start
I started in a university course titled "Programming Logic and Design". No programming languages were involved.
krutishukla wrote: from and where can i find API
For development on the Windows platform the MSDN web site has the API documentation. I search it with Google using "MSDN" as the first keyword.
led mike
|
|
|
|