|
There are several types of collections that you can use for handling lists of dynamic size, like ArrayList, HashTable, Queue, SortedList, ListDictionary, HybridDictionary, NameValueCollection, et.c. It all depends on how you want to access the data. If none of the list types meats your requirements, you can easily extend some of the list classes and add the functionality you need.
---
b { font-weight: normal; }
-- modified at 11:53 Thursday 9th February, 2006
|
|
|
|
|
Hi @ all,
after reading the sources of the Webcam project like Motiondetection und Webservice I think I understand how to get a picture from my Webcam. But how can I get the Live Video from my Webcam? Like the one you see in the Eindows Explorer by clikcing at your Webcam? I saw a Delphi Code where the LivePicture was associated with a Panel and so the LivePic was in the Panel. But how can I do that with C#? In all Projects here they use the camserver.dll but how can I do that with own code? Can anyone help me?
Thank you so much
twickl
|
|
|
|
|
I cannot figure out how to trap the event that occurs when a Panel is scrolled by the user either vertically or horizontally. I have AutoScroll set to true.
What EventHandler do I use?
Thanks,
Mark
|
|
|
|
|
|
That's the problem! There doesn't seem to be a Scroll event available that I can override or one that I can set up a delegate to.
What am I missing here?
Mark
|
|
|
|
|
I'm looking at Visual Studio 2005 with .NET 2.0, and there is a Panel.Scroll event. Perhaps there wasn't such an event in .NET 1.1? Or perhaps it is hidden (much like some of the RichTextBox events)...
In any case, there's always custom controls you can use, such as this one[^] that should suit you.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Connor's Christmas Spectacular!
Judah Himango
-- modified at 12:17 Thursday 9th February, 2006
|
|
|
|
|
Hi,
Simple question for experienced programmers, I think.
I used to work with Visual Studio 2003 in combination with .NET framework 1.1
The development webserver now runs .NET framework 2.0
Now I've installed .NET Framework 2.0 on my development computer.
But when I try to create a new C# web application project on the server, VS tells me that the server does not have .NET framework 1.1, which is true.
What do I have to do to make .NET framework 2.0 the default framework in Visual Studio for new projects?
Greetings
Henk
|
|
|
|
|
redkite wrote: What do I have to do to make .NET framework 2.0 the default framework in Visual Studio for new projects?
You upgrade to Visual Studio 2005. AFAIK, there is no way to get VS 2003 working with the 2.0 framework.
|
|
|
|
|
I am trying to create classes with Shared methods for use with .net and VB6. Does anyone know how to expose the shared members to COM???Thanks
CSMOD
|
|
|
|
|
Firstly, you keep saying "shared", yet there is no "shared" in C#. There is a "shared" in VB.NET, is that what you need? The C# equivalent is "static".
As far as getting your .NET code exposed to COM, have a look at this MSDN article on .NET/COM interop[^].
|
|
|
|
|
Don't cross post. Especially as this is clearly a VB question, and has nothing in the C# forum to do.
---
b { font-weight: normal; }
|
|
|
|
|
In a web application (ASP.NET 2.0), I want to send the correct HttpResponse.ContentType of a file I'm streaming to the client, based on the file extension of that file.
E.g. ".jpg" == "image/jpeg"
Is anyone aware of such a built-in function in the .NET Framework?
--
Affordable Windows-based CMS for only 99 €: try www.zeta-producer.com for free!
|
|
|
|
|
How can I avoid the default node selection in a TreeView in C#? I mean I don't want that the first node of the tree to be selected for the first time when the TreeView control gets the focus.
|
|
|
|
|
Well if you want the selection to stay the same and appear selected even when the TreeView does not have focus you can write your own ShowSelectAlways property using the Win32 API SetWindowLong function like this
private bool mShowSelectAlways;
public bool ShowSelectAlways
{
get
{
return (mShowSelectAlways);
}
set
{
mShowSelectAlways=value;
if(value == true)
{
int style = GetWindowLong(this.Handle, GWL_STYLE);
style |= TVS_SHOWSELALWAYS;
SetWindowLong(this.Handle, GWL_STYLE, style);
}
else
{
int style = GetWindowLong(this.Handle, GWL_STYLE);
style &= TVS_SHOWSELALWAYS;
SetWindowLong(this.Handle, GWL_STYLE, style);
}
}
}
If you want to change the selected node each time the TreeView receives focus then just handle the OnFocus event and make your node selection.
I hope this helps.
Andy
Human beings were not meant to sit in little cubicles staring at computer screens all day, filling out useless forms and listening to eight different bosses drone on about about mission statements. -- Peter Gibbons
|
|
|
|
|
|
.NET COMPACT FRAMEWORK
I am trying to open database which content is more than 10 000 rows.
I using DataSet but loading is too long . Can anybode help?
PIUS X, rpiusx@hotmail.com
|
|
|
|
|
Using a data set means that the results of the query are loaded in their entirity into the dataset first before you can do anything with it. This can take a long time (as you've seen) and take a lot of memory.
There isn't an easy solution for this.
Could you consider using a DataReader instead and processing the data one row at a time? Do you need all 10,000 row in the dataset? Could it just be that the query is very complex and the database needs the time in order to find the relevant rows?
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
Did you try executing the query by itself (like in Query Analyzer) to see if it is the query that takes a long time to execute?
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
For this kind of situation, I usally divide the rows in Pages driven by Combo Box Items and for every Combo Item, I use a FillBy Method of Table Adapter and I set the query of start up fill method to load data for only first page. Now, you can programmatically load the combobox with page numbers so that on Selected Row changes of the Page Combo Box, the appropriate FillBy Method of the table adapter will be triggerred.
EMRAN
-- modified at 16:27 Thursday 9th February, 2006
|
|
|
|
|
Hi all,
I am using a Wizard with a number of WizardSteps.
One of these steps should only be visible if an option on the previous page has been selected.
I thought that should be an easy task:
if (cbxOption.Checked)
{
wizOrderProduct.WizardSteps[1].Visible = false;
}
I have tried to make this check in both the page_load but also in the checkbox click event.
But when using that code I get a;
'The Visible property of a View control can only be set by setting the active View of a MultiView.'
And that message I'm not able to digest.
Can anyone out there help me on this one?
ZeedijkWhore
|
|
|
|
|
i made a webbrowser using axwebbrowser...
1-how can i handle history events on it..
2- how can i retrive the position of mouse on that control
3- how can make
file--->workoffline,
file-->import,and export,
file-->create shortcut on desktop,
edit-->find
view--->fullscreen
view--->encoding
in statusbar, how to access security ,being offline,zone,connection
|
|
|
|
|
i made a text_box & "GO" button.
button code is:
[code]
private void browserGoButton_Click(object sender, EventArgs e)
{
Navigate();
}
private void Navigate()
{
if (!browserUrl.StartsWith("http://"))
{
browserUrl = "http://" + browserUrl;
}
try
{
webBrowser1.Navigate(new Uri(browserUrl));
}
catch
{
MessageBox.Show("Invalid Url.", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
[/code]
on button click open my URL.
How can i do this simple?
& second question: how made progress bar for indicate load of internet page?
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Athlon 64 3500+, Gigabyte GA-K8NXP-9, 2x512 DDR400 Kingston, Inno3d 6200 PCIe, SS2 B2C2 v2.6, HDD := 450gb, Genius 56k int, NEC DVD-RW и мать его Суньмастер 550.
|
|
|
|
|
To your first question, that code looks like it would work. Is there something wrong with it?
You can add a progress bar using the System.Windows.Forms.ProgressBar control, or optionally, add a StatusStrip with a ToolStripStatusBar on it. You can adjust the progress using events from the System.Windows.Forms.WebBrowser control, such as WebBrowser.ProgressChanged event.
|
|
|
|
|
Judah Himango wrote: To your first question, that code looks like it would work. Is there something wrong with it?
no its ok, its work, but seems to me it can be simpler
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Athlon 64 3500+, Gigabyte GA-K8NXP-9, 2x512 DDR400 Kingston, Inno3d 6200 PCIe, SS2 B2C2 v2.6, HDD := 450gb, Genius 56k int, NEC DVD-RW и мать его Суньмастер 550.
|
|
|
|
|
YYYYYYYYYYYYYYYYEEEEEEEEEEEEEEEEESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS i did it
this a BIG code may be replaced by this^
[code]
{
this.webBrowser1.Navigate(this.toolStripTextBox1.Text);
}
[/code]
maybe its be useful for someone
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Athlon 64 3500+, Gigabyte GA-K8NXP-9, 2x512 DDR400 Kingston, Inno3d 6200 PCIe, SS2 B2C2 v2.6, HDD := 450gb, Genius 56k int, NEC DVD-RW и мать его Суньмастер 550.
-- modified at 14:15 Thursday 9th February, 2006
|
|
|
|