|
Response.Write("alert('Hello world');");
|
|
|
|
|
hi
I have downloaded a file from the codeproject and try to run it but it gives me the following error
BusinessObjects.exe' does not have an entry point defined
from Delegates and Events in C#
Can any one tell me why it happens? and how i can get rectified?
sasi
|
|
|
|
|
the easiest way to get the reponse is that you should ask the author...
I dont know what BusinessObjects.exe is
<< >>
|
|
|
|
|
How do i get floating panes into my C# forms, like the 'ToolBox', 'Properties', 'Solution Explorer' floating panes in the Visual Studio .NET IDE
|
|
|
|
|
I have been trying to acheive this, and I think the only way to do it would be to have a toolstrip container, and wire the events so that when it is pulled out, it loads a new strip which is made as a floating pane control
|
|
|
|
|
Hi,
ComponentOne has a component that will allow you to create floading and docking panes, as well as toolbars\tabs\menus, Menus and Toolbars for .NET. You can create the panes at design time if you don't want to do it in code. If you are interested, you can get more information here Menus and Toolbars for .NET.[^]
Suelinda W
Customer Engagement, ComponentOne LLC
|
|
|
|
|
I am trying to cast an Assembly to AssemblyBuilder so that i cam insert a method by using methodbuilder.But i found it is not possible.One way i found is to build dynamic assembly for each and every change in the code.But what i need exactly is to rewrite or inject MSIL into Assembly by using Reflection.Emit or any other way.I have gone thru lot of sites and came to conclusion that it is possible by using .NetFramework Profiling API for CLR.
Are there any alternative solutions to rewrite MSIL even if it is .Net 2.0 its ok.
|
|
|
|
|
I've got a Pocket PC (iPaq 2215) running Windows Mobile 2003SE and I just downloaded VJ# 2005 Express. Will this develop Pocket PC apps? Anyone have an example Browser app for VJ05X? I've also downloaded VC#2005X, VC++2005X and VB2005X, so if any of these would be better for Pocket PC app development, please let me know. I'm coming from a Delphi/MSAccess background.
Derek Benner
|
|
|
|
|
|
I want to know windows xp system logon user and password information in C# program. How will I get this information? any clues
|
|
|
|
|
For_IT wrote: I want to know windows xp system logon user and password information in C# program. How will I get this information? any clues
One clue is in the fact that windows encrypts the password information and stores it in an account that not even the computer's Administrator has access to.
Have you never wondered why the security sections of the system registry appear to be blank even if you log on as Administrator? There is information there, you just can't see it. And even if you could, it is encrypted.
Despite all the critisim that Microsoft have received over security they have actually gone to a lot of trouble to try and protect their user's information. They are not likely to allow it to be compromised by providing a nice .NET class to get at it.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
You can get the username easy enough:
string userName;
userName = WindowsIdentity.GetCurrent().Name;
The password is completely inaccessible to you. There's no way to retrieve it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How to copy out a section of a bitmap into a new bitmap?
TIA
|
|
|
|
|
Create a new bitmap object and draw part of the first bitmap onto it.
---
b { font-weight: normal; }
|
|
|
|
|
hehe, thanks, but very vague, that was the method I was trying but redrawing part of the first bitmap was what i didnt know how to do.
here is example of working code:
<br />
Bitmap newone = new Bitmap(100,100);<br />
Graphics g4 = Graphics.FromImage(newone);<br />
System.Drawing.Rectangle dstRect = new System.Drawing.Rectangle(0, 0 ,100, 100);<br />
g4.DrawImage(screenGrab, dstRect, 30,40,100,100,System.Drawing.GraphicsUnit.Pixel);<br />
newone.Save("C:/thenewone.bmp");<br />
screenGrab is original bitmap, its uncommented, but if anyone needs it u can work it out.
|
|
|
|
|
Hello All,
I have a problem while altering DBF table in C#.NET
I have downloaded foxpro driver and working with OLEDB but when running the following code snippet , the format of DBF table gets corrupted
**************code Snippet*************
public void Alter_table()
{
try
{
string strConnect;
strConnect="User ID=;DSN=;Collating Sequence=MACHINE;Data Source='d:\';Provider=VFPOLEDB.1;Cache Authentication=False;Mask Password=False;persist security info=False;Mode=Share Exclusive;Extended Properties=;Encrypt Password=False";
OleDbConnection dconn=new OleDbConnection();
dconn.ConnectionString = strConnect;
dconn.Open();
OleDbCommand mycmd=new OleDbCommand();
OleDbCommand myCmd = new OleDbCommand("ALTER TABLE 22.dbf ADD COLUMN TEST1 c(10) NULL", dconn);
myCmd.ExecuteNonQuery();
}
catch(OleDbException ex)
{
MessageBox.Show(ex.Message);
}
}
Please help me its quite urgent,Any sort of help is welcomed
Thanks & Regards
Anil Dhiman
Anil Dhiman
GIS Engineer
|
|
|
|
|
I have confirmed that Zone Alarm "phones home" as has been recently written about on the internet. I have confirmed that this "bug" has been occurring since early 2004 when version 4.5 of the product was released.
Trying out other software firewalls, i find that many applications on my computer "phone home" including Firefox, MS File Explorer (not IE), Linksys software drivers, and more.
I will use a firewall to watch these programs. Because of my experience with "phone home" Zone Alarm i need something that will "watch" the firewall to make sure it does not do anything nefarious such as "phone home".
Is there a straightforward way to monitor a program to see if and when it tries to connect to the internet? So far i have not found anything in C# or C, C++. Anyone out there with network programming eperience who can point me in the right direction?
If i succeed in making this little utility i will share it with the Code Project.
|
|
|
|
|
This is NOT be a little utility. What' you'd be writing is your own firewall! There is nothing straightforward about this.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ok. I thought maybe there might be some Win32 api function or something in the NET framework that might be able to do something basic like make a global hook, then filter windows messages until on sees IP activity or similar. If it is a black art i will abandon the idea in favor of periodically running a second firewall to watch the primary one.
|
|
|
|
|
redfish34 wrote: in favor of periodically running a second firewall to watch the primary one
You don't want to do that. You'll cause yourself more headaches than it's worth. I've had too many people call me up and tell me "I can't get to the Internet anymore". My first question is always "What's did you do?" The usually answer is "Nothing!", but then I find out they installed a second firewall, or a third, without uninstalling the first one.
Yes, app's can phone home. It's not really that big of a deal. Most of them are not sending any nasty information about you, but are checking for updates. It seems the popular thing to do now that Windows does it.
If you want to see what they're doing, install a packet sniffer. Microsoft has Network Monitor...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
OK. First what you'd want to look into is the code on the application detecting when user logs on to the internet. Unfortunitly I don't have that much knowlage so far.
Your onto something great if you could get it going.
I had an idea for this sort of thing once but cannot do it. The application I wanted to create would:
If a virus was being downloaded it would follow the virus and give the the IP address of the computer that it came from. That be a good extra if it could be done.
In the end we're all just the same
|
|
|
|
|
In C# ListView Control.
We use shift or ctrl key to add or remove multiple items from listview.
Is there any programable way to add or remove selected items or indices from ListView? Like I can manually add/remove items from SelectedItems collection or add/remove index from SelectedIndices.
Thanks
Tengpo
|
|
|
|
|
You can iterate thru the Selected ListViewItem Collection and add/ remove items
Here is the code to remove the selected items.
foreach(ListViewItem li in lstViewResultSet.SelectedItems)
{
li.Remove();
}
hope this will help you.
Gokul
|
|
|
|
|
I know this is a really stupid question, but why am I getting the above error at the line
in my codebehind when I set the Label1.Text variable? I set runat to server in my code
page and I've declared the control in my codebehind. I would think that the variable
would be accessible anywhere in the codebehind page.
Thanks.
// Codepage:
<asp:label runat="server" id="Label1">// Codebehind:
public class WebForm1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Label Label1;
protected System.Web.UI.WebControls.Repeater Repeater1;
private void Page_Load(object sender, System.EventArgs e)
{
string connString = "Data Source=(local);Initial Catalog=MyTable;User ID=MyUID; Password=MyPwd;";
string sqlString = "SELECT Column1, Column2 FROM SomeTable";
try
{
using (SqlConnection conn = new SqlConnection(connString))
{
conn.Open();
using (SqlCommand cmd = new SqlCommand(sqlString, conn))
{
SqlDataReader rdr = cmd.ExecuteReader();
if (rdr.Read())
{
Repeater1.DataSource = rdr;
Repeater1.DataBind();
}
}
}
}
catch
{
Label1.Text = "Error!"; // <- Object reference error occurs here
}
}
}
|
|
|
|
|
the same code is working fine for me ..
but it would be good if u mention the line where it catches the error
sathy
|
|
|
|