How do I limit the amount of blog entries per page?
.Net Development
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

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

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:
Wednesday, 25 March 2009
Re: vb.Net treeview control (New problem) Robert N. Harris 08:08:03
 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 14 answers | Add comment
Thursday, 12 February 2009
REGASM Leaves Type Library Brady Kelly 08:28:33
 When I run REGASM /u on an assembly I register, it tells me "Types
un-registered successfully", but using the old OLE/COM Object Viewer, I see
the type library is still registered.


===================­================
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
Tuesday, 27 January 2009
ASP.NET Menu control, dynamic menu link to nowhere Ron Young 13:20:22
 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
Friday, 9 January 2009
Expiration of your subscription to the DOTNET-WINFORMS list PEACH.EASE.LSOFT.COM LISTSERV Server 14:01:13
 Fri, 9 Jan 2009 06:01:13

Your subscription to the DOTNET-WINFORMS list has expired and you have
failed to confirm it in the 14 day delay that you had been granted.
Therefore, you have been automatically removed from the list. If you want
to re-subscribe to the list, then send the following command to
LISTSERV@PEACH.EASE­.LSOFT.COM:

SUBscribe DOTNET-WINFORMS


Add comment
Friday, 2 January 2009
Expiration of your subscription to the DOTNET-WEB list PEACH.EASE.LSOFT.COM LISTSERV Server 14:00:22
 Fri, 2 Jan 2009 06:00:22

Your subscription to the DOTNET-WEB list has expired and you have failed
to confirm it in the 14 day delay that you had been granted. Therefore,
you have been automatically removed from the list. If you want to
re-subscribe to the list, then send the following command to
LISTSERV@PEACH.EASE­.LSOFT.COM:

SUBscribe DOTNET-WEB


Add comment
Friday, 26 December 2008
Renewal of your subscription to the DOTNET-WINFORMS list PEACH.EASE.LSOFT.COM LISTSERV Server 14:00:52
 Fri, 26 Dec 2008 06:00:52

Your subscription to the DOTNET-WINFORMS list is due for renewal. If you
wish to remain subscribed to DOTNET-WINFORMS, please issue the following
command to LISTSERV@PEACH.EASE­.LSOFT.COM at your earliest convenience:

CONFIRM DOTNET-WINFORMS

You will be automatically removed from the list if you do not send a
CONFIRM command within the next 14 days. The simplest way to do this is
to click on the following link:

http://peach.ease.l­soft.com/scripts/wa.­exe?LCMD=CONFIRM+DOT­NET-WINFORMS&L=DOTNE­T-WINFORMS


Add comment
Friday, 19 December 2008
Renewal of your subscription to the DOTNET-WEB list PEACH.EASE.LSOFT.COM LISTSERV Server 14:00:23
 Fri, 19 Dec 2008 06:00:23

Your subscription to the DOTNET-WEB list is due for renewal. If you wish
to remain subscribed to DOTNET-WEB, please issue the following command to
LISTSERV@PEACH.EASE­.LSOFT.COM at your earliest convenience:

CONFIRM DOTNET-WEB

You will be automatically removed from the list if you do not send a
CONFIRM command within the next 14 days. The simplest way to do this is
to click on the following link:

http://peach.ease.l­soft.com/scripts/wa.­exe?LCMD=CONFIRM+DOT­NET-WEB&L=DOTNET-WEB­


Add comment
Friday, 12 December 2008
i need a project on employee reposi... ranji 12:04:52
 i need a project on employee repository portal using c# and asp.net
Add comment
how to disable image saving in dotn... Guest 11:58:24
 how to disable image saving in dotnet using c# n asp.net
Add comment
Monday, 1 December 2008
Expiration of your subscription to the DOTNET-CLR list L-Soft list server at DevelopMentor 10:26:17
 Thu, 18 Sep 2008 06:00:05

Your subscription to the DOTNET-CLR list has expired and you have failed
to confirm it in the 14 day delay that you had been granted. You have
therefore been automatically removed from the list. You can re-subscribe
to the list, if you want to, by sending the following command to
LISTSERV@DISCUSS.DE­VELOP.COM:

SUBscribe DOTNET-CLR

comment 1 answer | Add comment
Tuesday, 18 November 2008
Trying to trap a "first chance exception" Lee P. Gray 02:08:59
 I keep getting a somewhat random first chance exception when filling a
DataTable:

"A first chance exception of type 'System.IndexOutOfR­angeException'
occurred in system.windows.form­s.dll"

Sometimes it happens on the first fill, and sometimes it takes several.

I've wrapped the DataAdapter.Fill() statement in try/catch block, and
I've set the IDE to "Break into the debugger" for that exception, but I
can't figure out how to view any more details about the exception to
troubleshoot any further.

When the debugger kicks in, it's on the .Fill() statement, but when I
step through it, the catch block doesn't catch the exception. Does that
mean it's getting caught in the DataAdapter's internals?

Any suggestions?

Thanks,
Lee

comment 9 answers | Add comment
Wednesday, 12 November 2008
Re: Filter what the FolderBrowserDialog­ shows? Peter Ritchie 06:15:24
 FolderBrowserDialog is a wrapper for SHBrowseForFolder which does support
custom filtering; but FolderBrowserDialog­ doesn't implement that
particular feature. You'd have to re-write FolderBrowserDialog­ to do what
you want. Even if it wasn't sealed you'd have to re-write most of code
(RunDialog override and the callback method) anyway.

http://msdn2.micros­oft.com/en-us/librar­y/ms647664.aspx describes the
detail of FolderBrowseDialog and the use of the IFilterSite interface to
do the custom filtering. Arik Poznanski wrote a series of articles on
shell programming in C# that included a bit of detail on custom filters in
the first of the series:
http://www.codeproj­ect.com/csharp/csdoe­sshell1.asp.

HTH

On Mon, 27 Aug 2007 14:11:03 -0600, Bhatnagar, Amit
<Amit.Bhatnagar@GDC­ANADA.COM> wrote:

Using the FolderBrowserDialog­, is there a way to filter what directories
that it shows? For example, say I only want the user to pic folders that
end in the word "Mail" or something. If the FolderBrowserDialog­ doesn't
support this, would I have to create a custom folder picker and filter
the list manually?

comment 1 answer | Add comment
Monday, 10 November 2008
LINUX AND C# Guest 15:57:54
 Does anyone have an idea hot to make c# work on linux if so could u give me detailed explanation coz I don’t know linux but my project is done in c# and linux please mail to me at ammaps_dev@zyberops­.com
Thanking u in adavance
comment 2 answer | Add comment
Tuesday, 4 November 2008
Server.Transfer Brandon Manchester 10:36:24
 Can someone please explain why I get a parse error when using
Server.Transfer if I do not include the assembly of the web app that I'm
transferring to in the bin directory of the calling web app?

Both apps are running on the same server so I would think that I would be
able to do a Server.Transfer between the two. Maybe I don't fully grok the
use of Server.Transfer. What I'm trying to do is keep the Session state
alive between two separate web apps and I was under the impression that the
only way to do this is via Server.Transfer. Maybe I'm going about this all
wrong.

Any help would be appreciated.

Thanks,
B.

Brandon D. Manchester
Software Developer
Financial Brokerage
2238 South 156 Circle
Omaha, NE 68130
ph (402)778-4999
http://www.fb-inc.c­om <http://www.fb-inc.­com/>



Notice of Confidentiality: This transmission is intended only for the use of
the individual or entity named above. It may contain information that is
privileged, confidential, and/or exempt from disclosure under applicable
law. Further, disclosure of this information may be specifically prohibited
under state or Federal law. If you are not the intended recipient, or the
employee or agent of the recipient responsible for delivering it to the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is strictly prohibited. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format.



===================­================
This list is hosted by DevelopMentor® http://www.develop.­com
NEW! ASP.NET courses you may be interested in:

Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.­com/courses/gaspdotn­etls

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

comment 18 answers | Add comment
Thursday, 30 October 2008
Anyone got MiniDumpWriteDump working in managed code? Keith Hill 10:10:48
 I have gotten this far:

[DllImport("DbgHelp.dll")]
private static extern bool MiniDumpWriteDump(I­ntPtr hProcess,
int processId, IntPtr fileHandle, int dumpType,
IntPtr excepInfo, IntPtr userInfo, IntPtr extInfo);

However, the following WIN32 struct definition for the 5th parameter seems
to be required to make MiniDumpWriteDump useful (using IntPtr.Zero results
in not very useful dumps). Unfortunately I am not sure if it can be
filled in from managed code:

typedef struct _MINIDUMP_EXCEPTION­_INFORMATION {
DWORD ThreadId;
PEXCEPTION_POINTERS­ ExceptionPointers;
BOOL ClientPointers;
} MINIDUMP_EXCEPTION_­INFORMATION, *PMINIDUMP_EXCEPTIO­N_INFORMATION;


Specifically, how could I get a pointer to EXCEPTION_POINTERS from managed
code?

--
Keith

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 4 answer | Add comment
Thursday, 23 October 2008
Dynamically invoke web service Alex Ivanoff 12:44:13
 I am trying to invoke a web service for which I do not have generated client proxy at run time using WCF. How do I do this?

===================­================
View archives and manage your subscription(s) at http://peach.ease.l­soft.com/archives

comment 2 answer | Add comment
Friday, 17 October 2008
DataGrid Paging Problem in IE Brady Kelly 13:31:31
 I have a single templated column in a DataGrid, in an ASP.NET 2 web site.
The DataGrid is paged, with ten rows per page.



In Firefox, all is good, as nearly always, but when I view the site trough
IE, I get the following exception:



" Invalid postback or callback argument. Event validation is enabled
using in configuration or <%@ Page EnableEventValidati­on="true" %> in a
page."



Any ideas on what may cause this?




===================­================
View archives and manage your subscription(s) at http://peach.ease.l­soft.com/archives

Add comment
Wednesday, 8 October 2008
Ajax & WYSIWYG text editor Lior Levi 16:10:51
 Hello,

I have installed WYSIWYG <http://www.openweb­ware.com/> text editor in an
ASP.NET page. (It worked fine)

Now I am upgrading the web site to work with Ajax that includes a Script
Manager and UpdatePanel.

The page loads correctly but when the Ajax postback occurs the page returns
with just the Textbox and no WYSIWYG text editor control.


Any ideas?
Regards

Lior.


===================­================
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
Thursday, 2 October 2008
OT: Test John Warner 18:46:22
 456


John Warner




Add comment
New lists are now active Richard Blewett 11:44:27
 The lists are now migrated. The web address is:



http://peach.ease.l­soft.com/scripts/wa.­exe



And the address to post messages is



DOTNET-WINFORMS@PEA­CH.EASE.LSOFT.COM
<mailto:D­OTNET-CLR@­PEACH.EASE.LSOFT.COM­>



Enjoy the new home



Regards



Richard

comment 1 answer | Add comment
Friday, 19 September 2008
PropertyGrid + FileNameEditor + TypeConverter not working. Jamie Seward 09:30:04
 I am having difficulty getting a FileNameEditor working with a Property that get/sets a custom Type (let's call it TextureNameType).



First here is what does work:

1) If I add the FileNameEditor attribute to a Property that get/sets a System::String everything works fine. I can open up the OpenFileDialog and it will change the Property as desired.

2) If I change the Property from a System::String to a TextureNameType (that has a fully operational TextureNameTypeConv­erter attribute) everything works fine. I can edit the field in the Property Grid and it will convert to and from a System::String properly.



The problem is when I try to give both attributes (FileNameEditor / TextureNameTypeConv­erter) to TextureNameType at the same time. The OpenFileDialog will open but selecting a file will bring up: "Invalid property value: Object type cannot be converted to target type."

I have set breakpoints in the TextureNameTypeConv­erter functions and it doesn't hit any of them. So it seems the PropertyGrid doesn't even check my TextureNameTypeConv­erter to see if it can convert the value returned by the FileNameEditor.

Does anyone know what is causing this? Thanks for any help!


Note: all of the classes are in a Managed C++ Class Library. The PropertyGrid is in a C# project.


Jamie Seward


===================­================
This list is hosted by DevelopMentorВ® http://www.develop.­com
Some .NET courses you may be interested in:

Guerrilla ASP.NET, May 17, 2004, in Los Angeles
http://www.develop.­com/courses/gaspdotn­etls

Guerrilla.NET, June 28, 2004, in Los Angeles
http://www.develop.­com/courses/gdotnetl­s

Guerrilla.NET, July 5, 2004, in London. UK
http://www.develop.­com/courses/gdotnetl­s

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

comment 1 answer | Add comment
Tuesday, 16 September 2008
a problem with auto fit the height of an iframe Lior Levy 01:46:12
 

Hi,

I have a problem with auto fit the height of an iframe.

Can I use a xmlhttprequest and load the responseText into a div?

instead of using iframe?

in that way the div can shrink and grow with the content.



someone have a sample of something like this?



Thanks


===================­================
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

Add new topic:

How:  Register )
 
Login:   Password:   
Comments by: Premoderation:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


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

see also:
Access a PDF file from inside VB6…
for kinsley: super news server - gow…
[Aplaws-devel] RE: Navigation sections…
pass tests:
ДЛЯ РУССКИХ ЧУВАКОВ
see also:

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .