Oh, I got you. That actually does not come with .Net. Just the ProgressBar class. You would actually have to make it on your own, or look for some free source code with that kind of control. If anything you might be able to just use a ProgressBar, and put a PictureBox on top of it that increases its Horizontal size everytime the ProgressBar increments. The PictureBox would have to be white of course, and you would have to experiment to see how much to increase the size for each increment, based on the size of the ProgressBar.
I have a C# console application that makes a reference to a managed c++ dll. This managed c++ dll is in the same solution. I have added the reference by clicking add reference, clicking on the project tab and selecting the managed c++ dll project. When I build this application it is ok, but when the console is loading, I get a System.IO.FileNotFoundException, cannot find the managed c++ dll or one of its dependencies. I am clueless, since the managed c++ dll has also been copied to the same directory as the console application .exe.
i write a smtp client winform (using socket connect to smtp server at port 25),and deploy it to iis by NTD (no-touch deployment),i can launch the form from the client machine,when i want to connect to the smtp server,the security exception is thrown,i know that i have not assigned the socket permission in the client side to the downloaded assembly,but i don't know how to do that,who can give me a step-by-step instruction.
there are simple windows API functions for reading and writing AVI files, so you can use .Net wrapper (here is article about this: http://www.codeproject.com/cs/media/aviFileWrapper.asp[^], but if you want more advanced features, you'll probably have to use DirectShow (this may be problem, because managed directx, doesn't include directshow) ..
I have been searching the site for a datagrid control that allows for grouping in a hierarchy style like Outlook. One that allows you to compress and expand groups. I have seen a couple of example that were close but they were all in VB and that is on my list for one of the languages to learn. So could you let me know if you have seen a post for one in C# or where i could find one.
Can someone point me to some libraries or techniques for conducting aspect oriented programming (say via a weaver tool) that allows one IL (Intermediate Language) tool (the aforementioned weaver) to draw out certain aspects (i.e. boolean conditions of variables) of say a program written in a specification language such as AsmL (translated into IL).
Lets say I've created a weaver written in a arbitrary .NET higher language (that has been translated into IL), where I want one IL to inspect the states of variables as it executes (possibly also to measure temporal properties of the AsmL IL, do some counting, etc) of the first AsmL derived IL at runtime.
Am I too high, do I need to go below the CLR, and if so how? Any ideas on good .NET routines for monitoring the runtime stack, or locksteping execution of the two independantly running ILs into native code and enforcing assertions (aka runtime conformance testing).
If I am too vague, coming across as a total newbie or not making any sense feel free to tell me.
Bachelor of Software Engineering (Hons)
I am experiencing an interesting behaviour with the DataGrid in .NET Framework 1.1 SP1. The problem cannot be reproduced in non-SP1 environment. If you select a read-only grid cell and refresh the grid with new data, the cell that was selected overlays the new data in the grid, as if the EndEdit has not been called.
Below is the sample code. I’d appreciate any comments, is it a bug in SP1, or it is me doing something stupid?
// Populate the grid, click on the cell, then click the Refresh button. The old cell value is still visible.
my .net application stopped working fine after installation of SP1. Each button control in the application stopped working. i.e
I have a login screen, type user name and password, click on "Login" button -> nothing happens!!! No action, no postback...nothing. Clicking on Submit "button" on form page does just nothing, like this button is not binded or there is no event associated.
Every thing was working fine before installing SP1. after instalation only BUTTON control stopped working in enire application With Browser IE 6.0, while its working just fine with Netscape.
I have also replaced the aspnet_client folder of the remote
server with my local server which is running fine the entire application. But it does not solves the problem.
Any help on the above listed contex will be highly appricated.
thanks in advance.
Dont know whats going on, but I'm really short on ideas
i write a simple winform app to test the NTD(no-touch deployment) feature of dot net,after deploy it to the iis server,it works well,i can invoke it from either commandline or ie browser. but i found that after it is started up ,i IGNORE it,that means i don't operate it,after a wile,it is automatically closed.why,are there some .net configuration to incharge the timeout?
how can i make the ntd winform app keep PERMANENTLY running in the client side,even no body touch it.
i have tried several ways,and found it depand on how i deploy the project:
1 if i deploy the "debug" directory of the visual studio as "web share"(right click the directory,and select "web share" tab,select appropriate radio button..........),then from client side,i can lauch it,but it will shutdown spontaneously after a while if i don't touch it.then a windows debug windows pop up ,it saild that the "FileNotFound" occur to the "ieexec.exe"and ask me to select a debug tools.
otherwise,if i close the form MANUALLY , the same debug windows pop up too.
2 if i copy the "*.exe" file from the debug directory to the subdirectory of wwwroot,it works well,NO spontaneous shutting down and NO pop up debug form.
according to the two scenario,it seem like that if i deploy it WITHIN the iis box,it woiks well.
why ?i wonder what is the difference between the iis in-box delpoyment and web share directory deployment?
I am creating a word document from VB.NET environment.
In the report footer I created some information to display, and sending the parameters from the application. When the report is completed then the fields are not updated but when I click preview for the report then I could see the updated fields and at the same time if I take the print then the fields are updated.
Do any one got the same problem...any clues will be appreciated.
I am trying to make a TCP/IP connection between XDA-II and Desktop. The XDA is connected to internet via GPRS. Dynamic IP is assigned to XDA whenever GRPS connection is made.
All I want is to pass some data from XDA to Desktop whenver desktop demands... So basically I need XDA to be in listen mode all the time. The ideal solution solution would be- putting a server application on XDA and client on Desktop.
I have been trying to ping XDA from desktop (and vice versa).. but it gets timed out both ways.
Any comments ??
Also provide some sample code (VB.Net) for Socknet Classes or Winsock..if available..
I have a problem with debugging my VSIP package.
Wenn I build my package and start the build Project from Visual Studio a new Visual Studio Experimental opens with my Package. Trace infos and debug output appear in the original Visual Studio window which holds the package solution.
But then I have problems with my package because the DTE object belongs not to the Visual Studio instance which runs my package, it belongs to the original Visual Studio instance (I simply printed the current project name to find this out, it's always the packages project and not the dummy project I loaded into the VS Experimental instance.)
When I close all Visual Studio threads and start manually Visual Studio Experimental it works fine, the current project is the current project of the Visual Studio instance my package runs in.
Does someone have any ideas why that happens?
In another forum someone suggesed to start a new Exp instance manually and the attach this debug output with Debug/Processes
in the projects instance.
Is that the only way?
Just started playing around with CreateParams property and found this bug. When CreateParams.Style = WS_POPUP OR WS_CHILD, the control's Location property doesn't update properly. But, it works fine when WS_CHILD is omitted. Look at and test the following codes.
The following is the DummyCtrl class:
Public Class DummyCtrl <br />
Inherits System.Windows.Forms.Control <br />
Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams <br />
Get <br />
Const WS_POPUP As Long = &H80000000 <br />
Const WS_CHILD As Long = &H40000000 <br />
Dim cp As CreateParams = MyBase.CreateParams <br />
cp.Style = WS_POPUP 'Or WS_CHILD <br />
cp.Parent = IntPtr.Zero <br />
cp.Height = 200 <br />
cp.Width = 200 <br />
cp.X = 0 <br />
cp.Y = 0 <br />
Return cp <br />
End Get <br />
End Property <br />
End Class <br />
'Codes in a Form.
Dim myloc As Point <br />
Dim dummy As DummyCtrl <br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click <br />
If dummy Is Nothing Then <br />
dummy = New DummyCtrl <br />
Me.Controls.Add(dummy) <br />
dummy.Location = New Point(50, 50) <br />
dummy.Visible = True <br />
myloc = Me.PointToScreen(New Point(0, 0)) <br />
End If <br />
End Sub <br />
Private Sub Form1_Move(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Move <br />
If Not dummy Is Nothing Then <br />
'calculate the distance moved <br />
Dim newloc As Point = Me.PointToScreen(New Point(0, 0)) <br />
Dim diff As Point = New Point(newloc.X - Me.myloc.X, newloc.Y - Me.myloc.Y) <br />
Debug.WriteLine("Before " & Me.dummy.Location.X & " " & Me.dummy.Location.Y & " " & diff.X & " " & diff.Y) <br />
dummy.Location = New Point(Me.dummy.Location.X + diff.X, Me.dummy.Location.Y + diff.Y) <br />
Debug.WriteLine("After " & Me.dummy.Location.X & " " & Me.dummy.Location.Y & " " & diff.X & " " & diff.Y) <br />
Me.myloc = newloc <br />
End If <br />
Include WS_CHILD by removing the comment, then the problem becomes clear when you move the Form.
Last Visit: 31-Dec-99 18:00 Last Update: 17-May-22 5:32