|
Arun Kumar Babu wrote: So tell me how to convert my business component
As I told you look at the application hosting of ASP.NET as you will need that to start, and as I said, from there I dont know, because I havent tried it.
If you have a specific problem, later on, we can try help you further.
|
|
|
|
|
how can we programatically add a new file to the project's solution in c#.net
pavithra D
|
|
|
|
|
Just edit your .csproj file.
Use XmlDocument to edit it.
Find "Include" Node and add "File" Node to it.
|
|
|
|
|
Hi,
I'm using WebBrowser control of VS.NET 2005.
I have handled the Navigate event of this control but I don't know how to get the data on the request object before it is sent to server.
Thanks for any help!
Hung
|
|
|
|
|
i cant get your mean!! but i think this code may help you.
change the property Url to about:blank
drop a button to form1 (leave the button1 as name)
bouble click on the button1 and paste following code as event handler
private void button1_Click(object sender, EventArgs e)
{
System.IO.MemoryStream st = new System.IO.MemoryStream ();
string sampleHtml = "Hello world! ";
UTF8Encoding uniEncoding = new UTF8Encoding();
byte[] firstString = uniEncoding.GetBytes(sampleHtml);
webBrowser1.DocumentStream = st;
st.Write(firstString, 0, firstString.Length);
st.Flush();
st.Position = 0;
webBrowser1.DocumentStream = st;
}
|
|
|
|
|
Thank nafiseh_salmani, but the Document.Stream just get the source of HTML Page not a data on a request send to server.
I mean that:
I have a HTML page and it have some javascript function, this script will send request to server when the form is loading.
Now I want to manage all the request send to server because I want to change somethings on this request.
If I use VB.NET code to manage all requests, how can I do?
Thanks for your help!
Hung
|
|
|
|
|
is there a way of manging\creating Memory mapped files in c#?
i need to load a Big >200MB file into mmf and manipulte it .
Thanks
Have a nice Day
|
|
|
|
|
An application(asp.net(.net2)) generating reports using
crystal report is published and accessed over a link.After using
the link and generating reports for a while,reports are not not generated further.
Is this having anything to do with crystal report registration,memory problems(dataset is used) or something else???
|
|
|
|
|
Hi All,
May i know how to connect and use a blueTooth adaptor to send out images to handphone using C# codes in visual studio 2005. thankx.
|
|
|
|
|
AFAIK, Bluetooth devices can be used pretty much as serial ports. You should see in your system properties if your bluetooth device, once installed, creates something like a virtual COM port, which you can use with the class SerialPort in .NET framework 2.0.
~~~ From Milano to The Hague, easy as it goes ~~~
|
|
|
|
|
I have created text on a tabpage by using graphic object.
g = tabPage1.CreateGraphics();
g.DrawString(text, fnt, brsh, x, y);
g.Dispose();
Labels were used before instead and the tabPage was scrollable (tabPage.AutoScroll = true). But now, after changing labels to graphic objects, the tabpage is not scrollable any more and thus causes missing text. Also, whenever the splitter is moved, the existing text on the tabPage disappeared and the tabPage becomes blank.
Any solutions to these problems?
|
|
|
|
|
I currently have a problem in my application which has me stumped.
I have a datagrid with four columns that is has a dataview as a datasource which in turn has a DataTable as a datasource "dayDataTable".
I have the ColumnChanging event on the DataTable bound.
Now, sometimes, when I change the value of a cell, the dayDataTable_ColumnChanging function is not executed.
What could cause this?
|
|
|
|
|
I'm wondering how I set up a form similar to the Clickonce interface (http://dotnetfan.org/images/ClickOnce.jpg).
The part I'm interested in is the navigation along the left side. How do these buttons change the inside of the document? Does this just hide the fact that it uses MDI? Anyone know of any online tutorials to learn about this?
Also, are those tabs included in Windows forms at all or do they have to be made from scratch? Thanks.
|
|
|
|
|
Alright, I'm replying to my own post. I know, I know.
I was wondering if this was at all done with the splitContainer. I just dont see how to switch out the second panel when a button is pressed in the first. Also, if that is possible, how do you design all of the pages in VS2005? I dont see how. Oh well. Thanks again.
|
|
|
|
|
I am having a problem with invoking the statusbar from the options form:
private void apply_Click(object sender, EventArgs e)
{
String status;
status = "Status: Options Saved Successfully";
mf.Invoke(mf.m_DelegateRegStatus, new Object[] {status});
}
on the main form i have:
namespace WindowsApplication1
{
public delegate void DelegateRegStatus(String status);
class mainform
{
public DelegateRegStatus m_DelegateRegStatus;
public mainfrm()
{
m_DelegateRegStatus = new DelegateRegStatus(this.RegStatus);
}
private void RegStatus(String status)
{
syncstat.Text = status;
}
}
}
When i try to use the invoke on the options form i get an error: Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
Could someone point me in the right direction please?
Thanks in advance
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
The form isn't yet shown. Use the InvokeRequired property to determine whether Invoke needs to be called otherwise call the function directly. Depending on your situation you could make a public and typesafe wrapper for this:
public void RegStatusSafe(string status) {
if (this.InvokeRequired)
this.Invoke(m_DelegateRegStatus, new object[] { status });
else
this.RegStatus(status);
}
-- modified at 2:23 Wednesday 31st May, 2006
|
|
|
|
|
Hi,
My requirement is to set combobox column for deptno column of the table dept.
When insert button is clicked,i write the following code
DataGridViewComboBoxColumn cell = new DataGridViewComboBoxColumn();
cell.DataPropertyName = "DEPTNO";
cell.HeaderText = "dno";
cell.Items.Add(10);
cell.Items.Add(20);
cell.DataSource = ds.Tables["dept"];
cell.ValueMember = "DEPTNO";
cell.DisplayMember = "deptno";
dataGridView1.Columns.Add(cell);
dt=new DataTable();
dt = (DataTable)dataGridView1.DataSource;
DataRow dr = dt.NewRow();
dt.Rows.Add();
dataGridView1.DataSource = dt;
My problem is that combobox column is displayed as a separate column.But it value member set to deptno column of dept table.And when i select 30 from that combo box control goes to deptno=30 row.
I want combox cell is set for deptno column and when we select a value from that combo box column the velue is displayed for that row.
How to do this.
Thanks in advance.
|
|
|
|
|
Hi
I need some help. Im a beginner.
I want to create a abstract class called CustomTabPage which inherits from TabPage class. Reason why Im doing this is because after creating this class I want to create several classes which inherit from my CustomTabPage, which are objects that I will create instances of.
How do I go about setting the size and other properties in my CustomTabPage class?
I hope this makes sense.
|
|
|
|
|
Everyone always tells me to override OnPaint. You might try that.
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
I am repeatedly adding status strings to a textBox (a simple progress dump from my app.)
For Example:
textBox1 += "some status\r\n"
Eventually, the latest info. added is not visible. The textbox continues to display the caret in front of the first character, and only the first 'n' lines of text are visible.
I want the reverse, the caret at the end of all the text and the last 'n' lines visible.
How do?
Thanks
NIK
Note: I want to retain all of the data, so I need to adjust the scrolling/display rather than just chopping the data up.
|
|
|
|
|
try using the Select method with start- and endindex to the index of the lastcharacter...?
hope this helps.
Coulda, woulda, shoulda doesn't matter if you don't.
<marquee>
|
|
|
|
|
It set the caret, but didn't modify the text display
|
|
|
|
|
Then you use the ScrollToCaret() method.
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
another way is to use
textBox1.AppendText("some status\r\n");
instead of textBox1.Text += "some status\r\n";
Regards
Shajeel
|
|
|
|
|
Bingo! Perfect.
Thanks to all.
NIK
|
|
|
|