| Re: Treeview and Listview |
|
 |
Index ‹ DotNet ‹ Net Framework
|
- Previous
- 1
- 2
- Net Framework >> the brotherhoodYes... it is fight for democracy...just fool yourself.....:
http://www.jameswickstrom.com/iraq/photos_show_rape_of_iraqi_women.htm
PS: I can't ignore the brotherhood you american show to the world.....
Shame on you all.
- 3
- Microsoft Project >> What type of relationship?I am trying to setup a new project and I'm a little stumped about how to
accomplish this. I have an event setup as a milestone, this is a must start
on date. I have many tasks that need to be completed by this date. What is
the easiest way to make sure that all of these tasks are scheduled to be
complete by the milestone date? I have more tasks than will fit in the
predecessor field.
Thanks
- 4
- Dotnet >> Run RCMD on VB .NET program problemHello all,
I have the urgent problem. Pls help me.
I have written VB .net program to fax PDF document. The program hasn't
screen interface and runs in Command Prompt.
Here is some program segments.
faxserver.connect(LocalComputerName)
faxserver.createdocument("c:\test.pdf")
...
faxserver.send()
That's ok when I run in local computer Win2000 Server.
But, I can't run it remotely. I use RCMD.
RCMD \\ServerName "C:\FaxProgramName Param1 Param2"
There is no error code prompt. I can see the program process in server
computer. I have created and used the same username account both in server
(Win 2K server ) and Remote computer (WinNT WKS) with the administrator
right.
Thanks in Advance.
IVAN CHAN
- 5
- Winforms >> Converting a Job into a VB.Net AppHello All
I have a Job which used 2 Stored Procedure and runs on
SQL-Server 2000.I Need to write a Application in VB.Net to
do same work of JOB on a Application Tier instead of SQL-
Server.Any Hints Please.
Thanks
- 6
- Visual C#.Net >> changing the defualt languagehello,
i'm wiriting in in C# and my windows is locolized meaning my default
language is not english, but i want that is some textboxes my language will
be english. is it better way to do it then chaging each char to it's english
char on the keyboard (meaning better then catching the event of the
KeyPress/Down/Up check which char is it and replace it)?
thanks
- 7
- Microsoft Project >> Connecting to MS Project Server from Windows VistaI am experiencing a problem connecting from MS Vista to Project Server when
the client computer is not on the same domain as the Project Server. This
happens only in Vista.
I am getting the following error:
Project was not able to connect to Project Server Because of the following
error:
Bad Certificate (CERT_REV_FAILED) (ID=0x800a1529)
I tried to find any info on this error but was unsuccessful. Any help would
be greatly greatly appreciated!
Thanks
Yanek
- 8
- Microsoft Project >> Windows SharePoint Services and Project 2003Hello,
One of the gold certified partner got the below error
while installing Windows SharePoint Services for Microsoft
Project Server 2003 on Windows 2003.
Error: Share point configuration wizard cannot create the
ms_projectserver_publicdocuments site with the template
you have selected.You must use the project workspace
template or any other template you have created by using
the project workspace template. Ensure that the template
has been installed into the correct directory and that run
share point configuration wizard again.
After a while he wrote the below mail stating the problem
is solved :
Alex,
I made two changes and seem to have resolved the problem.
1. I ran PSCOMPlus.exe and changed the accounts to
domain\administrator - that resolved an error that I got
trying to get WSS Admin COM+ to run properly.
2. When running the sharepoint config utility I added
the domain to the user name (domain\administrator) and ran
the wizard.
One of these two things resolved the problem.
If you could just reply with your observation and view
explaining which option would have solved the problem
could be quite helpful. (Any relevant kb article)
Thank you very much for your help.
Alex Mathew
- 9
- Visual C#.Net >> How to share a .csI have write a clss, say DM.cs, and I save it in a independent directory
like c:\MyUtil
I have a new project in c:\proj1.
When I use VS to add the existed c:\MyUtil\DM.cs to the new project, the VS
will copy DM.cs form c:\MyUtil
to c:\proj1.
How can I left the DM.cs in the independent directory ?
- 10
- Visual C#.Net >> P/Invoke Problem....Why does the following cause an EntryPointNotFoundException when I do
ExitWindows(0,0); ?
>>>>>>>>>>>>>>
[DllImport("user32.dll", CharSet=CharSet.Auto)]
static extern bool ExitWindows(ulong dwReserved, uint uReserved);
<<<<<<<<<<<<<<<<<<
- 11
- 12
- Visual C#.Net >> Exception Handling QHi All, my errMsg string never gets initialized when there is an exception.
Can someone explain me why?
Thanks
string errMsg=null;
try
{
MyFunction();
}
catch(Exception e)
{
throw new Exception("Failed in MyFunction",e.InnerException);
errMsg="Some error:
}
return errMsg;
- 13
- Dotnet >> Content missing from pages - CMS2K2I posted this in the CMS newsgroup and it was suggested that I post it here.
Here's the problem:
I have a problem where an entire page of information disappears from an
intranet website. The website uses Microsoft CMS2K2 and is installed on a W2K
server w/SP4. All other pages on the site are accessible. The event logs show
the following errors:
Event ID: 0
Exception in ActiveDirectoryManager::GetEmployess2(), before
for--System.Runtime.InteropServices.COMException (0x8007203A): The server is
not operational
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_IsContainer()
at System.DirectoryServices.ChildEnumerator..ctor(DirectoryEntry container)
at System.DirectoryServices.DirectoryEntries.GetEnumerator()
at
Mywebsite.IntranetCMS.BusinessServices.ActiveDirectoryManager.BuildEmployees(DirectoryEntry
objTop, ADEmployees objEmployees)
at
MyWebSite.IntranetCMS.BusinessServices.ActiveDirectoryManager.GetEmployees2(ADEmployees
objEmployees)
Event ID: 0
Component: Compaq NIC Management Agent Error: Unable to open the registry
key "%1". Cause: This error can be caused by a corrupt registry or a low
memory condition. Rebooting the server may correct this error.
If I reboot the server or restart the service the data on this page
re-appears but not for long. It's only happening on this one page.
Anyone have any ideas on how to begin troubleshooting this?
TIA
- 14
- Net Framework >> LinkDemand ErrorHello,
I have a class that implements the interface IMessageFilter. When I run
FxCop on this class the following error appears:
The virtual method IMessageFilter.PreFilterMessage(Message&):Boolean
defined by type 'System.Windows.Forms. IMessageFilter' and its override
MessageFilter.PreFilterMessage(Message&):Boolean do not have the same
LinkDemand status. Add a LinkDemand where required.
I have placed the folloing code:
[CustomPermissionAttribute(SecurityAction.LinkDemand)] but still have
the same error. I tried with the
[CustomPermissionAttribute(SecurityAction.LinkDemand),
Unrestricted=true] and also with Unrestricted=false but nothing, same
error.
Can someone tell me what I do wrong.
Thank you.
- 15
|
| Author |
Message |
AndrewSiffert

|
Posted: Thu Aug 12 04:58:48 CDT 2004 |
Top |
Net Framework >> Re: Treeview and Listview
Albert,
I have a question: why is your timer not working when your form doesn't
have focus? In my opinion, it should keep working fine. Are you getting
some sort of exception? Can you shed some more light on your
implementation? Perhaps you could post some sample code. Are you
building a MMC plugin, or is this a pure C# WinForms application?
DotNet81
|
| |
|
| |
 |
Albert

|
Posted: Thu Aug 12 04:58:48 CDT 2004 |
Top |
Net Framework >> Re: Treeview and Listview
I'm using VB.Net, it is a windows form handled by an application context.
The application starts when the server does. You will only see an icon in
the systray. When double-clicking this icon you will see the form.
The timer is working ok, don't have any problems with that.
Been looking into it a little bit more closely and I know how i can get it
to work if you can tell me how members of the tree-/listview can be kept
"selected" after the form loses focus. Take windows-explorer for example.
When you select a directory on the left, it'll become blue, when it loses
focus, it isn't blue anymore, but you can see it is still selected. This is
what im looking for.
The tree-/listview wasn't refreshing because the refresh trigger also uses
the node which is selected. (and none are selected when not focussed)
Albert
"Shell" <EMail@HideDomain.com> schreef in bericht
news:cffap2$EMail@HideDomain.com...
> Albert,
>
> I have a question: why is your timer not working when your form doesn't
> have focus? In my opinion, it should keep working fine. Are you getting
> some sort of exception? Can you shed some more light on your
> implementation? Perhaps you could post some sample code. Are you
> building a MMC plugin, or is this a pure C# WinForms application?
>
|
| |
|
| |
 |
| |
 |
Index ‹ DotNet ‹ Net Framework |
- Next
- 1
- Microsoft Project >> Average percent workI'd like to have a column where i display the AVERAGE percent work per
resource. is there a way to do this.
I want it to take the work and divide it by the length. for example, if i
have 20 hours per week on a project, have it display 50% in a resource usage
view. I can even do it manually and just take the column "work" and divide it
by the duration...
This is my third time posting the question, but its not showing up...
- 2
- Net Framework >> huge TMP files (windows\temp)Hi,
I did create .net application that is using .net remoting. When I start the
application temp (.tmp) files are created into the "windows\temp" folder.
When I close the application the tmp files are deleted. I'm not sure of all
files are deleted properly because sometimes files are still there. When I
kill the application by the task manager the tmp files are not deleted
anymore. I discover also some generated assembly files in the temp folder.
[assembly:System.Security.AllowPartiallyTrustedCallers()]
namespace Microsoft.Xml.Serialization.GeneratedAssembly {
public class XmlSerializationWriter1 :
System.Xml.Serialization.XmlSerializationWriter {
On many computers I don't have this problem. There are also computers where
this problem occurs.
Thanks,
Bart Plasmeijer
- 3
- Net Framework >> EndInvoke still required?I've read a lot of comments from the 1.1 framework era about a page of the
documentation that claims you have to always call EndInvoke on an
IAsynchResult.
Various comments I've read suggest that this wasn't strictly required in
the current implementation (1.0 and probably 1.1) but that the runtime team
reserved the right to leak if you didn't call EndInvoke.
I've been looking through the 2.0, 3.0, and 3.5 documentation and can no
longer find this reference. The Asynchronous Programming Overview page no
longer says anything about this being a requirement, and the BeginInvoke
method doesn't mention anything about it.
Is EndInvoke still a requirement? I've read elsewhere that the the
framework team has guarnateed that BeginInvoke won't leak, so it's a bit
confusing.
- 4
- Winforms >> Hard disk running out of spaceI have two hard disk c: 6 gig and d: 40 gig. My windows XP was installed in
c: drive. I got less than 200mb left in c:. Thinking of transfering win XP os
into d:. How can I do that? Pls help. Thank you.
- 5
- Microsoft Project >> TimeSheet utility for ProjectServer 2003Hi All,
we published a solution demonstrating new PDS capabilities and
providing timesheet functionality.
It downloads your tasklist to System Tray and tracks time you spend on
each task.
At the end of the day it submits timesheet automaticaly.
FREE version located at: http://www.pmprofy.ru/rtt/
Hope you'll find it useful!
With best regards,
Vadim Bogdanov
- 6
- Dotnet >> sln associationHi,
Suddenly clicking on an SLN File type will not open Visual Studio on my PC.
Not sure what I have done. The association settings still look to be correct
but I get an error message saying that there is no program association for
the file type.
Any hints on how to fix this?
Thanks
Doug
- 7
- Winforms >> Threading, InvokeRequiredI have an exception handling procedure which displays an error message
to the user. This is done by creating an instance of the custom form
ErrorDisplay and showing that instance as a modal dialog, parented to
the main MDI window. The code is as follows.
Private Shared Sub DisplayExceptionMessage(ByVal ToDisplay As String)
Dim frmError As New ErrorDisplay(ToDisplay)
frmError.StartPosition = FormStartPosition.CenterScreen
If frmError.ShowDialog(MdiParent) = DialogResult.No Then
Application.Exit()
End If
End Sub
This procedure normally runs on the main thread, however I have
recently introduced multithreading to the application and am now
finding that it will sometimes run on one of the worker threads I have
created.
The problem comes when showing the error form as its behaviour is not
exactly the same as when the procedure runs from the main thread. I
believe this is because the MdiParent variable, which is a reference to
the app's MDI window, was created on the main thread and frmError on
the worker thread. I probably need to use the Control.Invoke method
here but can't quite see how. This theory is backed up by the fact that
MdiParent.InvokeRequired returns true when running on the worker
thread.
Any suggestions would be gratefully received.
Thanks,
Ross
- 8
- Winforms >> .NET Windows authenticationI have a vb.net application that connects to Web Service
pages *.asmx running on a local instance of IIS. These
webservices connect to a SQL server on another machine.
The web services are set to impersonate user, and Windows
authentication. All is well.
Next, I moved the webservices to another server running
IIS, which happens to be the SAME machine as SQL server
that these services connect to. My app can connect to the
Web service pages, but the web service fails to propgate
the CLIENT user/login credentials to the SQL server, and
it uses the NT AUTHORITY\Anonymous account for some reason.
I can't figure it out, but I've heard mention of similar
issues being solved with modifications to
Machine.config... any ideas?
The point of this is that I want to use the SQL SUSER_SNAME
() functions to restrict/change the views in SQL, so that
function needs to return the username of the authenticated
client.
- 9
- Dotnet >> RewritePathHi everybody,
I'm developing a simple web site for a friend of mine and I need an help for
the folloeing situation: I am planning to map friendly page name (like
'/faq.aspx') to more complicated ones (like '/displaypage.aspx?id=1'). I've
done an internet search and I found that I can achieve this using httpModule.
My first attempt was to using RwritePath in the BeginRequest event handler,
retrieving the id associated to the friendly page and rewrite the path (using
RewritePath) with the "complicated" one. Everything worked fine.
Then I thought to optimize the site in order to reduce the number of
connection to the database which stores the link between friendly pages and
ids: to do this I thought to put the Dictionary containing the associations
into the Session object in order to avoid connecting to the db after the
first load.
To do this I moved all the code from the BeginRequest handler to the
PostAcquireRequestState one. Everything seems to work fine but the
RewritePath as no effect.
Here's the bit of code:
private void context_PostAcquireRequestState(object sender, System.EventArgs
e)
{
String RequestedUrl =
HttpContext.Current.Request.Path.ToLowerInvariant();
if (System.IO.Path.GetExtension(RequestedUrl)==".aspx")
{
String ButtonKey =
RequestedUrl.Substring(RequestedUrl.LastIndexOf("/") + 1);
if (HttpContext.Current.Session["MenubarButtonsList"] == null)
{
HttpContext.Current.Session["MenubarButtonsList"] =
UserComponent.GetMenubarButtonsList(HttpContext.Current);
}
MenubarButtonsList ButtonsList =
(MenubarButtonsList)HttpContext.Current.Session["MenubarButtonsList"];
if (ButtonsList.ContainsKey(ButtonKey))
{
MenubarButton ReqButton = ButtonsList[ButtonKey];
if (ReqButton.RewritePath)
{
System.Text.StringBuilder NewUrl = new
System.Text.StringBuilder(HttpContext.Current.Request.ApplicationPath);
NewUrl.Append("/PageDisplayer.aspx?id=");
NewUrl.Append(ReqButton.Id);
HttpContext.Current.RewritePath(NewUrl.ToString());
}
}
}
}
Any idea??
Thanks.
Massimo Necchi
- 10
- Dotnet >> .NET COM import to VB4Hi!
I have created a simple COM class in VC# (ie "Hello World" through
Windows.Forms.MessageBox). When I try to use it in VB4 I get an error
saying that the server CLSID {GUID...} can not be loaded. Is it at all
possible to use .NET COM classes in VB4?
Best regards
Michal Ziemski
- 11
- 12
- ADO >> mdac problemi have .net framework 1.0 which was working fine before i
had installed MSDE from sqlserver2000 CD
when i have installed this MSDE .. whenever i run the
programs which use aDo.net it gives invalidoperation
exception that i need to install mdac version 2.6 or higher
i then installed mdac2.7 from component updata cd..
but the problem is still there..
i have also trie uninstalling and reinstalling that msde
from vs.net cd..
im using win2000 proffessional
- 13
- 14
- Net Framework >> Issues with .NETHi
I understand that there is nothing like disabled image list in toolbar of
VB.NET
Also, there is no placeholder button on it.
Why have these features been removed. Any plans of MS to incorporate them in
future versions of .NET?
Regards.
- 15
- Net Framework >> Error: Can only generate one of classes or datasetsSorry for post this again (and I do not know this is the right group).
I got following error when I do:
D:\test\Dot Net\Test>xsd XMLTestConfigSchema.xsd
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Error: Can only generate one of classes or datasets.
If you would like more help, please type "xsd /?".
D:\test\Dot Net\Test>
Here is the content of XMLTestConfigSchema.xsd
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://tempuri.org/po.xsd"
xmlns="http://tempuri.org/po.xsd" elementFormDefault="qualified"><xs:simpleType name="simpleType1"><xs:restriction base="xs:string" /></xs:simpleType><xs:element name="element1" type="simpleType1"></xs:element></xs:schema>
Why?
thx.
|
|
|