|
I need to process word document (microsoft word 2003) in my .net application. Please let me know are there any framework classes provided by .net
|
|
|
|
|
Visual Studio Tools for the Microsoft Office System,you can get it from Microsoft's website
|
|
|
|
|
I am not able to read & write to serial port in WINDOWS CE using embedded visual c++. i am including the code i have tried.
//writing
DWORD dwError,dwNumBytesWritten;
int rc;
HANDLE hPort;
BYTE B;
TCHAR* pFileName = TEXT("COM1:");
B='a';
hPort =CreateFile(pFileName,GENERIC_READ| GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL);
rc=WriteFile (hPort,&B,1,&dwNumBytesWritten,NULL);
CloseHandle (hPort);
//reading
DWORD dwError,dwNumBytesRead;
int rc;
HANDLE hPort;
BYTE B;
TCHAR* pFileName = TEXT("COM2:");
hPort =CreateFile(pFileName,GENERIC_READ| GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL);
rc=ReadFile (hPort,&B,1,&dwNumBytesRead,NULL);
MessageBox(NULL,TEXT(""+B),NULL,MB_OK);
CloseHandle (hPort);
can anyone please halp me
Thanks for your reply in advance.
|
|
|
|
|
Hi,
hopw every one enjoying
i have a problems and want its solution by all people
first understand the problem
PROBLEM DISCRIPTION
i have two different source code (source file) written in C#. now when i compile the both seperate compiler generates the MSIL files for both. keep in mind untill now these are two different files. no i want that when JIT (just in time compiler) after MSIL generate the NATIVE CODE it should combine both files and generate the single EXE or ASSEMBLY files
SOLUTION
i can use ILMERGER avilable in .Net framework or any other utility.
PROBLEM IN SOLUTION
i have to provide the reference in my file so that it can be merge with the 2nd file like i have to write USING ILMERGER in my one file
now i do not want any kind of reference or even a hint included in my both files they should be independent
plz help me
thanks
regards
ahmed hasan
|
|
|
|
|
In my app, many threads are created by BeingInvoke now. As all these threads are managed by ThreadPool, I can not get info about these backgroud threads.
So I decided to create a thread manager of my own. In this case all the thread will not be run backgroud. What should I be careful with?
Thank you for your advice!
|
|
|
|
|
I have read several articals and started to write my own code.
As I want to keep in track with all the handlers of my threads so as to Abort them when necessary. How to inform my thread manager to remove the handler form thread queue before a thread is sure to finish.
I can pass a delegate to every thread as that the thread can call it just before its end. Are there any other better methods?
Thank you
|
|
|
|
|
I have read the article on the XML editor, and although this uses regular expressions to define tokens, I am wondering if there is a easy way to use Lex and Yacc with .NET 2? I am using VC++ and the 2005 IDE. Any help would be greatly appreciated!
Many thanks in advance.
|
|
|
|
|
|
Is there a .NET framework equivalent of lists, vectors, maps, etc. in the C++ standard library?
Thanks,
--Jordan
|
|
|
|
|
There are quite a lot of different collections, like ArrayList, HashTable, Queue, SortedList, Stack, HybridDictionary, ListDictionary, OrderedDictionary, StringCollection, StringDIctionary, etc., and base classes to easily make specialized collections yourself.
If you use framework 2.0 you also have strongly typed collections like List<T>, Dictionary<T,T>, LinkedList<T>, Queue<T>, SortedDictionary<T>, SortedList<T,T>, Stack<T>, etc.
---
b { font-weight: normal; }
|
|
|
|
|
I have an MDI Parent form with some toolbars docked to all four sides. I found the MDIClient control in its Controls collections, then I removed it and replaced it with a SplitContainer, placing the MDIClient control in Panel1. In Panel2, I placed another control. The SplitContainer is oriented so that Panel1 is above Panel2, so it appears as though the MDIClient control is now above the control in Panel2 (just like VS2005 appears with one form docked at the bottom).
My problem is this:
The SplitContainer appears to be partially hidden by the toolbars that were already on the MDI Parent form.
Any suggestions/ideas???
|
|
|
|
|
Dear snickel65:
Using other gadgets I have the same problem!
(I have three gadget from North to South;
in order to allow the South-est to resize properly
I attempted to use SplitContainer but it does not
work.)
If you find solution, please let me know.
Regards.
|
|
|
|
|
Hello everyone...
Im trying to create an installation wizard for an application that i have written, I know that it could be done using the "Setup n Deployment" project in VS dot net..
All i require to do is, on click of the install wizard icon(that i create using VS DOT NET), a .reg file(that i have created using regedit)should be invoked that will create a button on the IE browser.
can i make this happen?
IS there any installation wizard creation manual/doc/tutorial available?
Pls help me...
Regards
Annie (Jo)
|
|
|
|
|
If you're using VS 2003 it isn't too hard, but if you've upgraded to VS 2005 you can use the Publish feature to create the installation.
Try this link if you're using VS 2005:
[^]
Lost in the vast sea of .NET
|
|
|
|
|
|
Using Microsoft Visual C++ .NET (2003)
I put three "GroupBox" into a Form.
Each GroupBox contains three items,
(ProgressBar, CheckedListBox, ListBox)
and the items are Anchored to the four sides
of the GroupBox. The Items are do resize properly (I think.)
I would like to have the three GroupBox as three
equally sized columns but can not achieve that via Anchoring.
What would be the proper way to size
dynamically the GroupBox to occupy one third of the
window for any window size?
(I hope the items will still resize properly inside
the GroupBox.)
Thanks for any guidance/example.
|
|
|
|
|
Override OnResize and put your logic in there. I would dock one to the right, one to the left and on to fill. Then in OnResize (and on startup probably) I would set the width of the left to one third of the from, the same with the right one and the fillled one in the middlte should automatically occupy the last third.
|
|
|
|
|
Thank you Mr. Rohde.
Will try.
|
|
|
|
|
To Samoan.
VS 2005 doesn't know what it is and so wont allow me to manually add it (with the correct lettering "sm-WS".
What options do I have left apart from rolling it by hand ? More to the point were can I dig this information up. Everywhere seems to offer wonderful tips on localisation for supported languages, but not a whisper for developing for unsupported languages.
Any links greatly appreciated.
|
|
|
|
|
Hi,
I have a composite control that inherits from WebControl. The purpose of this control is to encapsulate a lengthy form that will be used throughout my application. The composite control renders as 10 textboxes and 2 datagrids. I build the datagrids dynamically:
private void LoadLicenseUsersDataGrid()
{
TemplateColumn firstNameColumn = new TemplateColumn();
firstNameColumn.ItemTemplate = new CreateItemTemplateTextBox("FirstName", "txtFirstName", false);
firstNameColumn.HeaderText = "First Name";
TemplateColumn lastNameColumn = new TemplateColumn();
lastNameColumn.ItemTemplate = new CreateItemTemplateTextBox("LastName", "txtLastName", false);
lastNameColumn.HeaderText = "Last Name";
TemplateColumn emailColumn = new TemplateColumn();
emailColumn.ItemTemplate = new CreateItemTemplateTextBox("Email", "txtEmail", false);
emailColumn.HeaderText = "Email";
BoundColumn BoundColumn = new BoundColumn();
BoundColumn.DataField = "ID";
BoundColumn.Visible = false;
this.dgLicenseUsers.Columns.Add(BoundColumn);
this.dgLicenseUsers.Columns.Add(firstNameColumn);
this.dgLicenseUsers.Columns.Add(lastNameColumn);
this.dgLicenseUsers.Columns.Add(emailColumn);
int intLicenseCount = 0;
DataTable dtLicenseUsers = this.objTechnicalQuestionairre.LicenseUserCollection.Copy();
dtLicenseUsers.PrimaryKey = null;
dtLicenseUsers.Columns["ID"].AllowDBNull = true;
DataRow drRow = null;
foreach(DataRow drAccessTypeRow in this.objTechnicalQuestionairre.AccessTypeCollection.Rows)
{
intLicenseCount += (int)drAccessTypeRow["NumberOfLicenses"];
dtLicenseUsers.Columns.Add(drAccessTypeRow["AccessCode"].ToString());
TemplateColumn accessColumn = new TemplateColumn();
accessColumn.ItemTemplate = new CreateItemTemplateCheckBox("chkAccess" + drAccessTypeRow["AccessCode"].ToString(), "", false);
accessColumn.HeaderText = drAccessTypeRow["AccessCode"].ToString();
this.dgLicenseUsers.Columns.Add(accessColumn);
}
int j = dtLicenseUsers.Rows.Count;
if (j < 10)
{
j = 10;
for (int i = 0; i < j; i++)
{
drRow = dtLicenseUsers.NewRow();
dtLicenseUsers.Rows.Add(drRow);
}
}
else
{
for (int i = 0; i < j % 10; i++)
{
drRow = dtLicenseUsers.NewRow();
dtLicenseUsers.Rows.Add(drRow);
}
}
this.dgLicenseUsers.DataSource = dtLicenseUsers;
this.dgLicenseUsers.DataBind();
}
Note: I prefill the datagrid with 10 blank rows that the user will be able to fill in.
The form renders perfectly but if I type text into the 3 columns of the datagrid, which are textboxes, and postback I am not sure how to capture the typed text. I call the above function in Render so I understand that each time the form renders the control is regenerated. So how do I only render the datagrid on PageLoad so that the typed text is available to me on each postback? Does my control have to implement IPostBackDataHandler?
|
|
|
|
|
Well, many of us have had the same problem.
The Only Way I know to do this in code Behind is adding a column to do the Edit, Update .... in the code behind of the UpdateCommand.
Have a look to the Sample
<br />
private void DataGrid1_UpdateCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)<br />
{<br />
dst.CategoriesRow Category = this.dst1.Categories.FindByCategoryID ( this.DataGrid1.DataKeys [ e.Item.ItemIndex ] );<br />
<br />
Category.CategoryName = e.Item.Cells [ 1 ].Text;<br />
Category.Description = e.Item.Cells [ 2 ].Text;<br />
Category.CategoryName = e.Item.Cells [ 3 ].Text;<br />
<br />
BindData ();
}<br />
Regards
Ricardo Casquete
|
|
|
|
|
Hi, I've instantiated a .net dll class in a windows application (winapp1), now I'd like to set a property of its by referencing it from another application (winapp2). In plain English, how can I get a .net dll object running in another application and change its state from my application?
Thanks in advance
Giovanni
|
|
|
|
|
|
I have got VS 2003 with framework 1.1
I want to install framework 2.0
If i only install the framework 2.0 will it work with VS-2003.
|
|
|
|
|
You can not build 2.0 assemblys with VS 2003.
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|