|
Hi,
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) ..
|
|
|
|
|
Thanks for the tip. I'll look into it.
|
|
|
|
|
Hello all,
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.
Thanks
|
|
|
|
|
I have one that is 90% way through development, which is for an application I am developing. There is considerable work behind this control, so I will NOT be offering this control for free.
If you are interested see http://developski.blogspot.com/2004/09/building-better-list-gui-class.html.
|
|
|
|
|
Hi people,
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.
Many Thanks,
Joel
---
Joel Rivendell
Bachelor of Software Engineering (Hons)
Monash University
Clayton Campus
Australia
Also dont be a lemons and check out Throwing Lemons Website for all your entertainment needs!
|
|
|
|
|
|
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.
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace GridTest
{
///
/// Summary description for Form1.
///
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button btnRefresh;
private System.Windows.Forms.DataGrid dataGrid1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
///
/// Required designer variable.
///
private System.ComponentModel.Container components = null;
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
DataGridTableStyle tableStyle = new DataGridTableStyle();
tableStyle.MappingName = "TempTable";
tableStyle.RowHeaderWidth = 20;
dataGrid1.TableStyles.Add(tableStyle);
}
///
/// Clean up any resources being used.
///
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.btnRefresh = new System.Windows.Forms.Button();
this.dataGrid1 = new System.Windows.Forms.DataGrid();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// btnRefresh
//
this.btnRefresh.Location = new System.Drawing.Point(32, 16);
this.btnRefresh.Name = "btnRefresh";
this.btnRefresh.Size = new System.Drawing.Size(88, 32);
this.btnRefresh.TabIndex = 0;
this.btnRefresh.Text = "Refresh";
this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
//
// dataGrid1
//
this.dataGrid1.CaptionVisible = false;
this.dataGrid1.DataMember = "";
this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dataGrid1.Location = new System.Drawing.Point(8, 16);
this.dataGrid1.Name = "dataGrid1";
this.dataGrid1.ReadOnly = true;
this.dataGrid1.Size = new System.Drawing.Size(520, 208);
this.dataGrid1.TabIndex = 1;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.btnRefresh);
this.groupBox1.Location = new System.Drawing.Point(8, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(536, 64);
this.groupBox1.TabIndex = 2;
this.groupBox1.TabStop = false;
//
// groupBox2
//
this.groupBox2.Controls.Add(this.dataGrid1);
this.groupBox2.Location = new System.Drawing.Point(8, 72);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(528, 232);
this.groupBox2.TabIndex = 3;
this.groupBox2.TabStop = false;
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(544, 309);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Name = "Form1";
this.Text = "Form1";
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
this.groupBox1.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
///
/// The main entry point for the application.
///
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void btnRefresh_Click(object sender, System.EventArgs e)
{
DataTable table = new DataTable("TempTable");
DataColumn myDataColumn = new DataColumn();
myDataColumn.DataType = System.Type.GetType("System.Int32");
myDataColumn.ColumnName = "ID";
myDataColumn.ReadOnly = true;
table.Columns.Add(myDataColumn);
myDataColumn = new DataColumn();
myDataColumn.DataType = System.Type.GetType("System.String");
myDataColumn.ColumnName = "Description";
myDataColumn.ReadOnly = true;
table.Columns.Add(myDataColumn);
int start = new Random().Next(100);
for (int i = start; i <= start + 10; i++)
{
DataRow row = table.NewRow();
row["ID"] = i;
row["Description"] = "Desc - " + i.ToString();
table.Rows.Add(row);
}
dataGrid1.DataSource = table;
}
}
}
|
|
|
|
|
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.
--Yogender Ahuja
Dont know whats going on, but I'm really short on ideas
Any HELP..!!!
Yogen Ahuja
|
|
|
|
|
hello
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.
thank you!!
|
|
|
|
|
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?
|
|
|
|
|
Hi All,
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.
Thanks in advance.
Sreepathi
|
|
|
|
|
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..
Cheers
Viv
|
|
|
|
|
Does anyone know how to get the string-representation of the weekday in a custom language?
For example, I would like to have the name of the week in Swedish by doing something like this.
<br />
System.Globalization.CultureInfo culture = new System.Globalization.CultureInfo("sv-SE", false);<br />
System.DayOfWeek day = culture.Calendar.GetDayOfWeek(DateTime.Now);<br />
string dayAsString = day.ToString();<br />
But this will only return the day in English. (
I would rely appreciate some help here.
Regards,
Mattias
|
|
|
|
|
Hi!
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?
Thanks in advance!
- Constantin
|
|
|
|
|
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 />
<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 />
<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.
<br />
Dim myloc As Point <br />
Dim dummy As DummyCtrl <br />
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click <br />
<br />
If dummy Is Nothing Then <br />
dummy = New DummyCtrl <br />
<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 />
<br />
End Sub <br />
<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 />
<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 />
<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 />
<br />
Me.myloc = newloc <br />
End If <br />
End Sub
Include WS_CHILD by removing the comment, then the problem becomes clear when you move the Form.
|
|
|
|
|
Hi,
when using windows you can see a special type of progress bar all around. One that not really displays the progress, but rather the activity of an action, e.g. when searching your harddisk for a file, you can see this type of progress bar.
Does anywhone know how to do this? I need it to display that my client (TCP) is connecting to a network and sending/receiving initial data.
Thanks a lot in advance
|
|
|
|
|
Do you know about the ProgressBar class, or are you asking about a totally different progress bar? What I do is use the ProgressBar class and then use a Label underneath it and change the text of the label to reflect the status of progress.
|
|
|
|
|
I meant a Progress bar that has a few blocks (default green) that move from the left to the right, on and on. (Compare it to the default bootscreen of windows) So the bar doesn't fill up. It's only a border in fact, that contains the moving blocks that indicate that actions are having place.
The label is something I'd do anyway, to inform the user about what's happening.
Thanks
|
|
|
|
|
Does anyone know a way to see the running (or loaded) DLL's on a windows xp/2003/2000 with .NET framework either 1.0/1.1 or 2.0 on it.
I figured there maybe a WMI interface for it but i can't find it?
Any assistance muchly appreciated.
Cheers
Justin
|
|
|
|
|
i would like this too please. you can get it by typing "tasklist /m" in cmd console, but how to do it programmaticly?
|
|
|
|
|
.NET has OLEDB and ODBC Data Adaptors. But the documentation does not give enough information regarding which one among these two is suited for which purpose. I need to keep my program transparent to whether the client uses Oracle or SQL Server at the backend.
Can some expert will throw light on this?
|
|
|
|
|
Salil Khedkar wrote:
.NET has OLEDB and ODBC Data Adaptors. But the documentation does not give enough information regarding which one among these two is suited for which purpose
ODBC is an older connectivity model and only exists for backwards compatibility. If all the databases you are connecting to support OLEDB then you should use that one.
Salil Khedkar wrote:
I need to keep my program transparent to whether the client uses Oracle or SQL Server at the backend
The SQL supported by SQL Server and Oracle have some differences also - if the user is writing SQL in your app I don't see how you can keep things completely transparent. So, one way or another you will be writing slightly different SQL.
IMHO, if the user is kept totally away from the database (no direct interaction) then my suggestion is to go for the specific SQL Server or Oracle data providers in the .NET Framework as you'll have to swap out the actual SQL commands anyway you might as well just optimise the whole by using the providers specific to the database.
Do you want to know more?
Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!
|
|
|
|
|
Thanks Colin, these pointers will be helpful…
|
|
|
|
|
I had experiences in enterprise solution deployments, that many customers do not prefer to business logic sitting on the IIS machine. The .NET Web Services run on top of the IIS.
Now, while the recent IIS exploit memories are still fresh, does anybody have peculiar experience about the *trust* users are going to put over IIS/.NET based Web Service solutions?
I expect some interesting insights from the Microsoft guys and the pattern gurus.
|
|
|
|
|
No customer has ever asked me this, but I would answer:
1. What's the alternative? I mean, you have a business need to publish the functionality of some component over the Internet, right? So, if not a Web Service, what would you use? COM+? No, this needs a trusted domain. A custom-made socket? Come on, what makes you think you'll ever code something better than IIS?
2. Web Services (WS) can run on top of any Web Server. WS is just a protocol for receiving/delivering XML over HTTP. It's platform agnostic. If you want, deploy a WS running on Apache or your favorite web server. There's even a module for Apache that allows you to run ASP.NET on it.
3. Your fear is only valid if you don't have a corporate web site. If so, you're already at risk.
4. You're putting a business component on the Internet. You better not trust anyone. You'll be open to attacks. That's a fact. If you have a trusted party and do not want to have all the Internet hassle, choose, e.g., a VPN and use your web server only internally.
Yes, even I am blogging now!
|
|
|
|
|