What is Atom?
.Net Development
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > .Net DevelopmentGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:
Tuesday, 5 August 2008
debugging - Break on value change? Graeme Hood 15:39:24
 I'm trying to find out where and when a value in a session variable is
gettting changed. I know I can use conditional breakpoints, but then I
would need to know what line of code to insert it into.



Is there such a thing as a condition watch that will stop execution as
soon as a variable has a specified value? Using VS 2008.



TIA

This email message is intended only for the use of the named recipient.
Information contained in this email message and its attachments may be
privileged, confidential and protected from disclosure. If you are not the
intended recipient, please do not read, copy, use or disclose this
communication to others. Also please notify the sender by replying to this
message and then delete it from your system.


===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 6 answers | Add comment
Saturday, 2 August 2008
Re: Validation of viewstate MAC failed. Patrick Newberry 23:03:53
 On a series of pages with web forms I have, I found that when I start a
form, the leave it for a while and come back, when I press the submit
button I get a Server error in '/' Application.

Validation of veiwstate MAC failed. If this application is hosted by a
web farm or cluster, ensure that <machinekey> configuration specifies
the same validationkey and validation algorithm. AutoGenerate cannot be
used in a cluster.

I am assuming the session is timing out.

Is there anyway to prevent this from happening?

Pat

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 8 answers | Add comment
Tuesday, 29 July 2008
Form.Show and events Graeme Hood 13:15:58
 I have an app that seems to behave differently (possibly) after
installing VS2008 and .Net 3.5



Suddenly the event handler for combo boxes (SelectedItemChange­d) is
getting called when Show() is called rather than when the combo item is
set prior to showing the form. Could something have changed in .Net to
cause this behaviour. This worked fine in a previous release of my
application some months ago and no code has changed.

This email message is intended only for the use of the named recipient.
Information contained in this email message and its attachments may be
privileged, confidential and protected from disclosure. If you are not the
intended recipient, please do not read, copy, use or disclose this
communication to others. Also please notify the sender by replying to this
message and then delete it from your system.

comment 2 answer | Add comment
Thursday, 17 July 2008
System.Net.Mail question Bill Booth 20:07:25
 Does anyone know the difference between the "From" property and the
"Sender" property in the MailMessage class? I just can't seem to find an
answer to this question.

Thanks for any help.

Bill

The information in this e-mail is confidential, may be legally privileged and is intended solely for the addressee. If you have received this e-mail in error, you are hereby notified that any use, distribution, or copying of this communication is strictly prohibited.

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 2 answer | Add comment
sitemap provider error Andrew Dunn 09:45:24
 Hello,

I have an error with the sitemap provider. This is my sitemap section in
the web.config file:

<siteMap defaultProvider="=B­H_SiteMapProvider" enabled="true">
<providers>
<add name="BH_SiteMapPro­vider"
type="System.Web.Xm­lSiteMapProvider, System.Web,
Version=2.0.0.0, Culture=neutral,Pub­licKeyToken=b03f5f7f­11d50a3a"
securityTrimmingEna­bled="true"
siteMapFile="web.si­temap"/>
</providers>
</siteMap>

When I run it I get the error:

The provider '=BH_SiteMapProvide­r' specified for the defaultProvider
does not exist in the providers collection.
(c:\inetpub\wwwroot­\beerhouse\web.confi­g line 156)

Could anyone point me how to fix this?

Andrew

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Web issues Dean Cleaver 09:10:07
 Hi,

We've just had a problem occur that I have no idea how to fix or even find. This is the entirety of the event log error:

EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4 extramile.ichange.w­eb, P5 3.3.8.3, P6 487e902a, P7 1044, P8 22, P9 exception, P10 NIL.

extramile.ichange.w­eb is our web assembly, and between that and the code below in other assemblies, there's 750,000 lines of C# and not a hint of where to look. It seems to function for a bit (I've seen login pages come up) but then something goes wrong, it doesn't call any of the Application_Error code, and just shuts down our app pool.

Any suggestions would be most appreciated.

Dino

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 2 answer | Add comment
Monday, 14 July 2008
Error when creating new Web Site Andrew Dunn 05:02:31
 Hi,

I'm trying to get back in to asp.net programming after an absence of 4
years. I am trying to create a new Web Site in VS 2005 and I get the
error:

Error 1 c:\inetpub\wwwroot\­Andrews\Default.aspx­: ASP.NET runtime
error: The given assembly name or codebase was invalid. (Exception from
HRESULT: 0x80131047) c:\inetpub\wwwroot\­Andrews\Default.aspx­ 1
1 http://localhost/An­drews/

Error 2 The given assembly name or codebase was invalid.
(Exception from HRESULT: 0x80131047)


I've searched google with no luck. It's a brand new project so I haven't
even written a single line of code. Any ideas?

Andrew

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Friday, 11 July 2008
AssociatedControlID in a custom templated control Bill Bassler 20:37:30
 Can anyone point me to information on how to suppoer AssociatedControlID­
for Label controls that might be dragged into templated panel-like server
control?

I have a control that I created that supports expanded and contracted
panels so that you can drag any controls into the panels at design-time.
However, when I attempt to set the AssociatedControlID­ property to
associate a Label that is also inside of the panel I get a non-sensical
design time duplcate control ID FindControl error on the Label control in
question for the first control that exists in the template. This would
seem to some kind of naming container issue where maybe the Label control
is attempting to find the control defined in the AssociatedControlID­
property but it cannot.

Is there something maybe I need to implement in TemplatedControlDes­igner
code to wire this stuff up?

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Wednesday, 2 July 2008
windows integrated authentication and Oracle Mark Aurit 20:34:35
 I realize this is a little off-topic, unfortunately there isnt an ado news group. If someone can reply Im glad to take it offline.

My question is whether anyone has any experience (or knowledge) with an asp.net web app that interfaces with Oracle using windows integrated security. I believe I read somewheres that its possible, but it means running the accounts under a higher-level of privileges than a normal account does, something like that.

I have a security guy at work intrigued with sql server and integrated security, and I need to be able to tell him if the same can be done with Oracle and what the ramifications were.

Thanks, Mark

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Tuesday, 1 July 2008
ASP.NET Menu control, dynamic menu link to nowhere Ron Young 21:08:43
 I need to display a dynamic menu that has a structure like so:

Programs
- Multi-Family
- Projects
- Residential
- Projects

Where "Multi-Family" is a sub-menu under Programs, and "Projects" is a sub-menu under Multi-Family, and similar for Residential.

I'm using ASP.NET Menu and a sitemap file.

Problem is that I need "Multi-Family" and "Residential" to link to nowhere:

siteMapNode url="Main.aspx" title="Programs"
- siteMapNode url="" title="Multi-Family­"
- siteMapNode url="Main.aspx?view­=MultiFamilyProjects­" title="Projects"
- siteMapNode url="" title="Residential"­
- siteMapNode url="Main.aspx?view­=ResedentialProjects­" title="Projects"

Using an empty string for "url" works for me, but the issue is that the "text" cursor will display if the link doesn't have a url.

I tried some CSS but that didn't work:

.dynamicMenutItem{ cursor: pointer; }

Faking the url with "javascript:;" won't work because the each node needs a unique url.

Any info on this is greatly appreciated.

Ron

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 1 answer | Add comment
Sunday, 29 June 2008
sql server authentication with named domain account Mark Aurit 13:01:32
 (I posted this yesterday but it didnt come back. Since its of important
to me right now Im going to post it
again, sorry if you are getting it twice)

Im creating an asp.net/sql server app; Id prefer to use a sql server
account to maximize connection pooling, our security guy wants
integrated security. We've reached an agreement where I can use a
single account as long as its a domain account, but Ive been unable to
figure out how to do so (if its even possible). Im thinking I either
need to use integrated security but force sql server to use a single
account, or use a regular connection string, naming the domain account
and password with Integrated Security=false.
Does want I want to do sound possible?
Thanks, Mark

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 6 answers | Add comment
Saturday, 28 June 2008
SV: [DOTNET-WINFORMS] Styling multi content buttons in WPF Benny Skjold Tordrup 23:07:55
 Thank you James - at first look, it appears to do what I want.

I'll dive a bit more into this method and try to apply it where I'm
experimenting with it now.

Med venlig hilsen / Best regards

Benny



-----Oprindelig meddelelse-----
Fra: Discussion forum for developers using Windows Forms to build apps and
controls [mailto:D­OTNET-WINFORMS@DISCUSS.DEVELOP.COM] P vegne af James
Geall
Sendt: 28. juni 2008 16:55
Til: DOTNET-WINFORMS@DIS­CUSS.DEVELOP.COM
Emne: Re: [DOTNET-WINFORMS] Styling multi content buttons in WPF

you could bind the controls that you want to change to the buttons
foreground property using a relative source
I have included an example below, watch out for wrapping.
There are 2 methods in the example. Setting the property binding
using the style does not work for the disabled foreground color, but
setting the binding on the control itself does,

HTH
James

<Page xmlns="http://schem­as.microsoft.com/win­fx/2006/xaml/present­ation"
xmlns:sys="clr-name­space:System;assembl­y=mscorlib"
xmlns:x="http://sch­emas.microsoft.com/w­infx/2006/xaml" >
<StackPanel>
<StackPanel.Resourc­es>
<Style x:Key="InheritFromB­utton" TargetType="{x:Type­
ContentControl}"> <!--Does not work for disabled-->
<Setter Property="Foregroun­d" Value="{Binding
RelativeSource={Rel­ativeSource Mode=FindAncestor, AncestorType={x:Typ­e
ContentControl}}, Path=Foreground}"/>­
</Style>
<Style TargetType="{x:Type­ Button}" >
<Style.Triggers>
<Trigger Property="IsEnabled­" Value="false">
<Setter Property="Foregroun­d" Value="Blue" />
</Trigger>
<Trigger Property="IsEnabled­" Value="true">
<Setter Property="Foregroun­d" Value="Yellow" />
</Trigger>
<Trigger Property="IsMouseOv­er" Value="true" >
<Setter Property="Foregroun­d" Value="Green" />
</Trigger>
</Style.Triggers>
</Style>
</StackPanel.Resour­ces>
<CheckBox x:Name="ToggleEnabl­ed">Button Enabled</CheckBox>
<Button Grid.Row="1" Grid.Column="1" IsEnabled="{Binding­
ElementName=ToggleE­nabled, Path=IsChecked}">
<Button.Content>
<Grid>
<StackPanel Orientation="Horizo­ntal">
<Label Foreground="{Bindin­g
RelativeSource={Rel­ativeSource Mode=FindAncestor, AncestorType={x:Typ­e
ContentControl}}, Path=Foreground}">M­ethod 1</Label>
<Label Content="Method 2"
Style="{StaticResou­rce InheritFromButton}"­ />
</StackPanel>
</Grid>
</Button.Content>
</Button>
</StackPanel>
</Page>

On Sat, Jun 28, 2008 at 11:41 AM, Benny Skjold Tordrup
<benny@tordrup.net>­ wrote:
Hi all
I have a style for at WPF button that changes the foreground color of the
button content when the button is disabled or pressed. This works fine if
I
only add a text to the contents or use a single control as content.
If I then use a Grid as content in the button in order to make a more
sophisticated content, the above tricks do not work. I assume that it is
because WPF tries to set the foreground property directly on a single
control content - which I do not have in this case.
Any ideas?
Med venlig hilsen / Best regards
Benny Tordrup

Add comment
Styling multi content buttons in WPF Benny Skjold Tordrup 18:54:53
 Hi all

I have a style for at WPF button that changes the foreground color of the
button content when the button is disabled or pressed. This works fine if I
only add a text to the contents or use a single control as content.

If I then use a Grid as content in the button in order to make a more
sophisticated content, the above tricks do not work. I assume that it is
because WPF tries to set the foreground property directly on a single
control content - which I do not have in this case.

Any ideas?

Med venlig hilsen / Best regards

Benny Tordrup

comment 1 answer | Add comment
Tuesday, 24 June 2008
Arrays as parameters Steve Abaffy 18:17:56
 Hello,

How does one do the following:

Class Someclass{

Private string [] myarray;

Public string [] MyArray {get { return myarray[];} set{myarray[]=
value;}}
}
Correctly? I want to be able to declare this class in my main function and
set the parameters of the myarray as

Someclass Sc = new someclass;
Sc.MyArray[0] = "This is test 1";
Sc.MyArray[1] = "Thisis test 2";
Etc...

Thanks

comment 7 answers | Add comment
Sunday, 22 June 2008
.net sql server account database authentication question Mark Aurit 03:17:23
 Im creating an asp.net/sql server app; Id prefer to use a sql server
account to maximize connection pooling, our security guy wants
integrated security. We've reached an agreement where I can use a
single account as long as its a domain account, but Ive been unable to
figure out how to do so (if its even possible). Im thinking I either
need to use integrated security but force sql server to use a single
account, or use a regular connection string, naming the domain account
and password with Integrated Security=false.
Does want I want to do sound possible?
Thanks, Mark

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 2 answer | Add comment
Wednesday, 18 June 2008
BUG??? Reflection and DEVPATH Yosi Taguri 19:04:05
 hi there
I'm devloping an application which relies on assemblies that are not on my
path during devlopoing time.

I wanted to redirect all the assembly searches to a pecified place.
I've found the DEVPATH solution in help
I've added the DEVPATH as an envirinment variable.

restarted VS.NET so it will take effect (although it has no meanning for
vs.net)

I've created a config file as in the help:

<configuration>
<runtime>
<developmentMode developerInstallati­on="true"/>
</runtime>
</configuration>

and still I get an exception while trying to load thru reflection an
assembly that is in the DEVPATH.

using fuslogvw.exe I can see:

LOG: Processing DEVPATH.
LOG: DEVPATH is not set. Falling through to regular bind.


how can I activate it?????

what am I doing wrong?


yosi

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.deve­lop.com.

comment 3 answer | Add comment
Wednesday, 11 June 2008
Programmatically creating self-signed certificate Alex Ivanoff 19:41:39
 How do I programmatically create self-signed certificate in .NET?
Reflector shows that System.dll imports CertCreateSelfSignC­ertificate
(System.Security.Cr­yptography.CAPIUnsaf­e class), but this import is not
being used. Did they just forget?

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Saturday, 7 June 2008
Directory Ops Behaving Asynchronous Brady Kelly 19:22:08
 I have the following code execute:



if (Directory.Exists(e­xportFolder))

{

Directory.Delete(ex­portFolder, true);

}

Directory.CreateDir­ectory(exportFolder)­;



and then a database update, and then:



wiz57.PerformExport­();



Occassionally, about 1 in 20 tests I run in the IDE, PerformExport fails
because exportFolder does not exist. How can it not exist if I create it and
no exception is thrown? I can only suspect that the Directory code is not
truly synchronous, and has not completed before PerformExport executes.



Brady Kelly
Software Developer

Chase Software
Office: 011 287 1820
Cell: 078 331 3781
Fax: 086 691 5653

<http://www.chaseso­ftware.co.za/> www.ChaseSoftware.c­o.za




===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 28 answers | Add comment
Tuesday, 3 June 2008
OT-ish: possible for asp.net 1.1 on IIS5 to bring server down due to CPU consumption? Roy Pardee 02:57:15
 Hey All,

I need a quick sanity check on something--we've got a 3rd party asp.net
v1.1 app installed on a machine w/IIS v5. Our admin suspects that this
app is what brought the machine down recently. The IIS "application
protection" setting is "Medium (Pooled)". The process that pegged the
cpu shortly before the box stopped responding to web requests was
inetinfo.exe.

Probably this isn't enough info, but can people comment on the basic
plausibility of this scenario? I would like to think that an asp.net
app doesn't get enough leash to pull a machine over, no matter how
asinine the app is. Is that just naivete on my part?

Thanks!

-Roy

Roy Pardee
Research Analyst/Programmer
Group Health Center For Health Studies (Cancer Research Network)
(206) 287-2078
Google Talk: rpardee

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 10 answers | Add comment
Thursday, 29 May 2008
Problem with Debug.Assert Brady Kelly 13:26:02
 When I run the following code in the IDE, under the Debug configuration,
when I choose Retry on the dialogue presented by the assert, I get a message
that no source code is available for the current location. Can anyone
enlighten me as to why VS2008 cannot see the obviously available code at
that location?

string ns = null;
// -- Missing code or operation to initialise ns should be here.

// I only want to stop processing here when debugging.
Debug.Assert(ns != null, "Whoops! ns is null");
if (ns == null)
{
Trace.WriteLine("Ca­nnot print ns because ns is null");
}
else
{
Console.WriteLine("­ns = {0}", ns);
}




===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 4 answer | Add comment
Wednesday, 28 May 2008
Gridview CommandField modifying programatically Mark Aurit 17:38:59
 Im doing maintenance on a 2.0 app that has a gridview that consists of a
few boundfields and a commandfield.
Based on the value in one of the boundfields, I want to show a different
textual value for the link (not the header).

For example, I can do something like
if (e.Row.Cells[1].Text == "")
e.Row.Cells[2].Text = "Add" //Cells[2] is CommandField
else
e.Row.Cells[2].Text = "Modify"

The problem is that code correctly sets the text, but the value is no
longer hot, its just text.

As best as I can tell, I want to modify the CommandField's HeaderText
SelectText atribute, but I cant figure out how to do this.

Thanks much!
Mark

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Advice on TableLayoutPanel Brady Kelly 10:19:53
 I'm trying to emulate the look and feel of something like MS Office
Accounting, with a common form layout of two lists of label-control pairs,
one at the top left of the form, and the other at the top right. Below these
is normally a grid, or other controls that span the whole width of the form,
e.g.



-|-

-|-

_|_

___



Now it seems to me that the TableLayoutPanel should be the basis of this,
allowing the two top sections to dynamically size as the form sizes
horizontally. However, I don't know whether to use four columns, for left
label-control and right label-control, and one row for each two
label-control pairs, or to use two columns, and a separate container in each
column for a vertical list of label-control pairs.



I've never used these layout controls before so any advice will be much
appreciated.

comment 2 answer | Add comment
Thursday, 22 May 2008
information bar and downloading a file -- Cisco 00:01:47
 I have a page where the user basically sets up a configuration. One of the
options for the user is that they can download a file based on this
configuration . What i'm doing right now is uploading the configuration
settings, using ajax and web services, in order to store int he server so
that the actual download request can be a simple url. so the callback for
the download link looks like [1] (without the gmail formatting :)­

The problem with my initial approach is, in ie, the information bar pops up
to block the download. Once the user agrees he's fine but it's still an
annoyance i can live without.

The user can save this configuration beforehand but i don't want that to be
a requirement before they download a file. Another approeach is to have a
'prepare download' button that later notifies the user that his download is
ready.... but i don't like that approach either but at least i don't need to
save the configuration a database but i can instead rely on a session or
cache. -- something saved in server memory.

Thanks for any suggestions

[1]
function download() {

var success = function() {
location.href = "link.aspx?someid=3­02392392039230923092­3093";
};
var failure = function(err) { alert( err.get_message(); };


get_proxy().SetupDo­wnloadConfiguration(­
buildConfigFromPage­(), success, failure );

}

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

comment 2 answer | Add comment
Tuesday, 20 May 2008
Re: vb.Net treeview control (New problem) Robert N. Harris 06:59:35
 Thanks Greg, Jacob, Ian, and Walter for all the great advice. I wound up
using a hashtable to store node references and it worked great. I've got
heirarchical information in a datatable. It is essentially a directory
structure, representing the folders in an Outlook mailbox. The treeview is
supposed to display the folder heirarchy just as it would appear in Outlook.
I have two dataviews on the datatable, one just to iterate through all the
records, the second to look for the parent record of subordinate folders.
Here is the basic code (lots of stuff omitted for clarity):

For Each drv In dv 'Iterating through all the folders recorded in the
datatable's default view

If drv("ParentPath") = "" Then 'this will be a root node
'Create the node
nod = New TreeNode
nod.Text = drv("Path")

'Store the node in the hashtable to retrieve it later,
retrieving by the database id
htNodes.Add(drv("ID­"), nod)

'Add the node to the root of the tree
tvwFolders.Nodes.Ad­d(nod)

else 'This is a subordinate node

'Find the parent folder in the data table through the second
dataview
intParentIndex = dvParents.Find(drv(­"ParentPath"))
intParentID = dvParents(intParent­Index)("ID") 'Gets the database ID of the
parent folder

'Retrieve the parent node from the hashtable
nodParent = htNodes.Item(intPar­entID)

'Create the node
nod = New TreeNode
nod.Text = drv("Path")

'Add the new node to the parent node
nodParent.Nodes.Add­(nod)

'Store the child node in the hashtable to retrieve it later in
case it has childern, too
htNodes.Add(drv("ID­"), nod)
end if

Next drv

This results in the desired treeview, and in a new problem. Now i am getting
strange exceptions on the line of code that makes the form visible. Here's
the code that instantiates the form with the treeview:

fmReview = New frmReview
fmReview.MdiParent = Me
fmReview.GetBin(str­BinNo) 'This is the code that loads the
treeview
Try
fmReview.Show()
Catch
'Stop
End Try

On fmReview.Show(), I get the following exception:
"An unhandled exception of type 'System.OutOfMemory­Exception' occurred in
system.windows.form­s.dll

Additional information: Error creating window handle."

I stop execution in the catch block and check fmReview's properties. It is
visible, and it has a handle. If I just let the code resume and do nothing,
the program executes normally. What is causing this error? It doesn;t seem
to be affecting anything...

Thanks again!

Robert Harris




-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:D­OTNET-WINFORMS@DISCUSS.DEVELOP.COM]On Behalf Of
Robert N. Harris
Sent: Friday, January 07, 2005 11:32 AM
To: DOTNET-WINFORMS@DIS­CUSS.DEVELOP.COM
Subject: [DOTNET-WINFORMS] vb.Net treeview control


Hello group! I'm new to this group and only slightly less new to .Net
programming. My background is as a Microsoft Access developer, with
moderate experience in SQL Server and Visual Basic 6. I am currently
rewriting one of our Access applications in VB.Net, and I'm noticing
some subtle differences in the way certain .Net controls behave
compared to their old VB counterparts. I'm hoping someone here can
help me out.

The Treeview control, and specifically the Index property of TreeNode
objects contained in the Treeview. In old VB, the index of a given
node was unique throught the entire treeview control. The index
number of a node was assigned sequentially as you added nodes, and
could not repeat.

In .Net, it appears that the scope of the TreeNode index has changed,
so that it is only unique within the node it was added to. So, there
can be any number of nodes in the Treeview with an index of "0", "1",
or whatever number.

This is causing me trouble because I need to add child nodes at
runtime. I need to know how to uniquely identify a node in the tree,
reference it, and add nodes to it. In old VB the Index or Key
property would accomplish this. Well, the TreeView lost the Key
property in .Net, so I'm stuck.

Any ideas or advice is greatly appreciated.

Thank you!

Robert Harris

comment 4 answer | Add comment
Monday, 19 May 2008
doc to pdf Graeme Hood 18:40:39
 Anyone got any recommendations for converting doc files to pdf? What
about Aspose (looks expensive)?

Need to be able to lock pdf from copying & editing..



TIA

This email message is intended only for the use of the named recipient.
Information contained in this email message and its attachments may be
privileged, confidential and protected from disclosure. If you are not the
intended recipient, please do not read, copy, use or disclose this
communication to others. Also please notify the sender by replying to this
message and then delete it from your system.

comment 32 answer | Add comment

Add new topic:

How:  Register )
 
Логин:   Пароль:   
Комментировать могут: Премодерация:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > .Net DevelopmentGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

see also:
Does MySQL work with DTS?
distinctSelection(veryUrgent)
J# and access modifiers
пройди тесты:
see also:
diesel fuel injection parts
Posting Lookup Values
hallo , j don t know what to write...

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .