|
Reported here[^]
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Have you got anywhere with this?
Microsoft have been able to reproduce it which is a good first step, but doesn't mean they have a fix or workaround for it of course!
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
They better ought to be able to reproduce it... I've been battling this for quite a while now.
Thank you for reporting this, I must admit Microsofts reponse so far has pleasantly surprised me.
Still no luck in getting around this issue though.
Does anyone else know a solution for putting a complex compound control in a toolbar?
|
|
|
|
|
I have been trying this with a "compound"control on this same form as the toolbar is.
The compound control is a Panel with a Texbox inside (child control) on the very Form.
In the Form's Constructor i do;
toolStrip1.Items.Insert(2,new ToolStripControlHost(panel1));
With the same results. I think this narrows the bug to:
When using a ToolStripControlHost to host any ContainerControl with any focusable controls in a ToolStrip, tabbing between controls on the ToolStrip does not cycle through all controls.
You might wanna link Microsoft to here. Thanks again.
|
|
|
|
|
Continuing from the previous code... In my example i had 4 ToolStripButtons and panel1 inserted at position2 in a Toolbar.
Put a break on the added code in the Constructor and debug. Step once withF11.
In the watch Window add 'toolStrip1'. Follow the tree to:
toolStrip1.Items.base.Non-Public members.System.Windows.Forms.ToolStripItemCollection]. owner.Items.Non-Puclic members.base._innerList
Each of the Items in the List represent the Properties of a Control on the ToolStrip. And each of these (toolStripButtons) have their CanSelect property to true. Except for the inserted Control (ToolStripHostControl) at position 2 == Item[2], the third item in the List, which has CanSelect false.
This might be an explanation for the problem.
Now how does the CanSelect property get there? And how do I set its value? Better yet, how to solve this???
|
|
|
|
|
hi.i have a confusing problem. i used mssql 2005 developer version for a pc.
it worked well with all functions. but when i installed it for my own pc with same cd's, it worked as if it was express edition. There is no import, export, full-text-search functions and even there is no sql manager studio. i installed it manually. what can i do?
|
|
|
|
|
And what does it has to do with C#?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
i am sorry. i know here is not appropriate place of the board but many of experienced friends look here and i cannot get answer from database board.
|
|
|
|
|
|
i read it but couldn t fix my problem. İ checked all of those
# SQL Server Database Engine
# Analysis Services
# Reporting Services
# Notification Services
# Integration Services
# Management Tools
# Documentation and Samples
|
|
|
|
|
Sorry for stating the obvious, but when you install more than one database on a machine, they would have different names, and your connection strings need modified including the name.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Hi,
I would like to know is there any way where we can read excel file in blocks("x" rows at a time) so that the entire file is not loaded into memory.
Replies would be appreciated.
|
|
|
|
|
sankar i wrote: any way where we can read excel file in blocks("x" rows at a time)
means you want to read for example A1 to A20, something like this
|
|
|
|
|
I assume you're talking about loading the data from an excel spreadsheet into a datatable (for example). I wrote the following snippet that will extract the top 10 lines from an excel file using a database connection:
static void Main(string[] args)
{
string connStr = @"Provider=Microsoft.Jet.OLEDB.4.0;;Data Source=C:\temp\XlsJetTest.xls;Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"";";
OleDbConnection conn = new OleDbConnection(connStr);
OleDbCommand comm = new OleDbCommand("select top 10 * from [Sheet1$]", conn);
conn.Open();
OleDbDataAdapter da = new OleDbDataAdapter(comm.CommandText, conn);
DataTable dt = new DataTable();
da.Fill(dt);
Console.WriteLine("RowCount:\t{0}", dt.Rows.Count);
Console.ReadLine();
}
A little bit of SQL manipulation should allow you to be able to 'page' through chunks of the spreadsheet (you might have to write a couple of functions to do something clever).
It definitely isn't definatley
|
|
|
|
|
I think he want's to read the first ten lines without opening up the excel file in memory as a whole (which is done above).
If that is the case, then no, it cannot be done that way.
|
|
|
|
|
exactly......I want to read first 1000lines so that entire file is not loaded in memory....
Is there any mechanism to read excel file itself through some binary reader line by line?
|
|
|
|
|
Hi,
I am working on apop3 application. In this I connected to gmail and retrieved the selected number of mails. After this I closed the connection using "Quit" command. Then the number of emails that I selected are deleted from the pop3.
To solve this I used "RSET" command before "QUIT". But even then the emails are deleted.
If anyone have any idea to solve this please reply me.
Thanks in Advance.
Note:I didn't found any correct forum to post this. So I posted it here. If this is not the correct forum please suggest me the correct forum to post this.
|
|
|
|
|
this has nothing to with the application but the way you have configured the Email Server.
Especially, gmail has this option When messages are accessed with POP [^]where you can define what to once the email is accessed through POP3.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi all,
I have one windows service made in C#. I want My service to create CSV file every two minutes... but it should overwrite the existing file every two minutes. but whenever I try - it says file is already open - while I am sure that file is processed during those elapsed two minutes.. How do i programmatically close the file or overwrite the same. My file creation is through windows utility CSVDE (so have no control over creation except for the time and name!)
please suggest, thanks,
Jeet
|
|
|
|
|
I think you forgot to close the stream or something like that if you send the code, maybe i can have better ideas.
|
|
|
|
|
hi all,
came across to wonderful code, i am deleting older files now!
protected void CleanImageFolder()
{
string imgFolder = Server.MapPath("~/lab/maskemail/img/");
string[] imgList = Directory.GetFiles(imgFolder, "*.jpg");
foreach (string img in imgList)
{
FileInfo imgInfo = new FileInfo(img);
if (imgInfo.LastWriteTime < DateTime.Now.AddMinutes(-3))
{
imgInfo.Delete();
}
}
}
thanks
jeet
|
|
|
|
|
Can anybody tell me the parameter values for OFNHookProc Procedures..
|
|
|
|
|
What did you try to find the params yourself?
A simple google search [^]gave me these reults.
And the first one [^]seems to answer your questions.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Have a look at this[^].
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Hi Experts
i using Visual Studio 2005.
I Fill a grid using Dataview in C#.NET winForms.
I Filter it with Dataview RowFilter then the result Come After Row Filter
Show in Different Grid now i want to Filter The Data from Second Grid not from first grid.
I mean to say that suppose e.g I Have Grid Result first Time
ID Name
1 Hello How R
2 i am fine
3 this is my book
4 this is C# Book
5 this is C# Example
6 Book is black
now i apply Row Filter on the 'this is'
dvs.RowFilter =Name like '%this is %'
now Result Come
ID Name
3 this is my book
4 this is C# Book
5 this is C# Example
Now i am again apply Row Filter not on the first case but apply on the second case.
now i apply Row Filter on the 'this is'
dvs.RowFilter =Name like '%Book%'
now Result Come this
I want this result set
ID Name
3 this is my book
4 this is C# Book
but result come
ID Name
3 this is my book
4 this is C# Book
6 Book is black
then how to fix this problem
this search within search in n time untill zero result is come....
Thank u
Dinesh
modified on Friday, July 3, 2009 7:14 AM
|
|
|
|