|
If it is your task then pick an option:
1) You have got a contract for work you know nothing about: return the money, and apologise.
2) You have got a job doing something you know nothing about: go to your boss, tell him / her and hope they give you extra time and / or help.
3) This is a homework assignment: Go to your tutor an tell him / her you don't know what to do. Ask for help.
Otherwise: Look at the answers you have (they aren't going to change because you post again, and again). Learnb from them, and try something. Experiment. Research. Learn. Stop looking for someone else to do your work for you, because that isn't going to happen.
Final option: Find a different career.
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
sunithaganugu wrote: Please suggest how to convert word documents to pdf file using itextsharp.
The same as always, write a program that reads a word document and writes a PDF file using iTextSharp[^].
It's time for a new signature.
|
|
|
|
|
Hi,
When i run a application a small popup like login form will appear so if i login thn it will go to next page...or if i click the button cancel or close it that popup login it will disappear.
My task is... after login if i close the main application same login pop-up should come and after i login using my username and password should close the application completely.
My problem is.... i can able to do the same by above...but in that popup login form if i do close or cancel only that pop-up window should close not the complete application,,,,but now the complete application is getting closed due to the same login form. So wht is the solution for this ????
Hope you can understand my problem.
krishna
|
|
|
|
|
krishnavaradharajan wrote: but now the complete application is getting closed due to the same login form. So wht is the solution for this ????
Create the login form from your mainform. Next, show the login-form as a modal dialog.
The application closes as soon as the mainform closes (that's the one in the Program.cs file, in the Application.Run statement).
I are Troll
|
|
|
|
|
Ya i created in same way, thts y if i close login form mainform also getting closed...but it should not close the main form...only login form should get close.
Thanks
krishna
|
|
|
|
|
You should use Form.ShowDialog()[^] to display your login form from within your main form code.
It's time for a new signature.
|
|
|
|
|
Hi everybody,
I want to learn that, How may I execute/run following command using C#?
copy file.prn /b /lpt1
Thank you in advance
(Riaz)
|
|
|
|
|
You can use the Process.Start(...) method[^]. You just pass in "cmd" as the filename of the application and /c along with your command as the arguments:
String command = "copy file.prn /b /lpt1";
Process.Start("cmd", "/c " + command);
Simon
|
|
|
|
|
Thank you very much Mr. Simon p
|
|
|
|
|
i am working on excel application in which i need to download the data from excel.
while opening excel through application it always popup message as "Connecting to the server for information"
i want to disabled that meassage.
what i need to do..
i tried .DisplayAlerts = false; But its not working
modified on Thursday, July 29, 2010 2:21 AM
|
|
|
|
|
hi!
I have a xml file. in xml file contains data in below format.
ÂôáæãUæÚU.
I replace this text in unicode character. like :
092A for Â
094B for ô. and so on...
Actually I convert above xml file in HTML page. In HTML page the unicode character is shown as above.
"ÂôáæãUæÚU"-- this code means "POSHAHAR" in hindi. and I want to print POSHAHAR IN hindi.
please guide me what can I do. I am using C#.
thanx & Regards
|
|
|
|
|
Is there a control available for .Net (preferably with source - C# if possible) for selecting the columns of a fixed width text file?
I'm looking for something similar to Excel for the Text Import wizard (step 2 of 3) that provides the functionality for selecting the columns that the fields start.
Thanks,
cvogt61457
|
|
|
|
|
Check this article[^] right here on CodeProject for this function. You may need to modify it to make a wizard-like control, but ti does the basic function of parsing a fixed-width or delimited text file.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Thanks for the help.
I'm looking for the UI portion - the part to select the columns graphically. The data reading and parsing is the easy part.
I did find this Column Definition Control[^]. I may have to convert this to C# for my use.
|
|
|
|
|
question description:
I want to use notebook with a wireless netcard to acquire more than 3 Access Pionts(wireless router) signal strength. And using the GPSlike method to measure the position of the laptop.But I don't know how to get all the signal strength. When I use the class Atheros5000_80211_ReceivedSignalStrength of WMI, I can get only ONE singal strength with its property "Ndis80211ReceivedSignalStrength".And what should I do? I am puzzled.
PS:I am a beginner, and English is not my mother tongue, so please do not use too much Abbreviation,thank you very much.
|
|
|
|
|
I'm not familiar with the Atheros class, but I know what you mean, I think. A wireless adapter in Windows can report multiple access points in range, and Windows can display all of them to let you choose which to connect to. So there must be a way to get this information from the adapter. It sounds like there should be an enumeration you can cycle through to find all detected stations and return their respective signal strengths. Since I don't know how to do that, I can only recommend that you dig more deeply into the WMI documentation, and try Google for "enumerating wireless access points" or some similar term. Perhaps my rewording of things will trigger some responses from more knowledgeable people - I hope so, as it sounds like an interesting problem.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Thank you very much! Enumerating SSID is very easy because there is a special class in WMI to get SSID, but I don't know how to get the corresponding signal strength.I'v searched for these key words,but got nothing. And I am trying to use DeviceIOControl() to get all the signals. Or DLLImport some exist VC++ dll file instead.
|
|
|
|
|
|
I know this was answered in Quick Answer, but an FYI.
One, don't cross-post. By that I mean, post your question in one place and wait for an answer, not in two or more forums.
Secondly, if you solve your problem in one of these forums (not the quick answers) then edit the title so that it says solved.
|
|
|
|
|
If I could have withdrawn from quick answer I would have so as to not double post. As it was I got my answer in the Quick Answer. So better that it remained there for visibility.
|
|
|
|
|
As you had a reply to your message here, you would have been better editing your question to put a link to the QA version. As it is, there's now a dangling reply.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I have been trying to solve the problem related with using dataRelation but still couldn't figure it out. I hope somebody can help me with this.
I have two repeaters used one nested another.
part of code is shown below:
void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
RepeaterItem item = e.Item;
if ((item.ItemType == ListItemType.Item) ||
(item.ItemType == ListItemType.AlternatingItem))
{
Repeater2 = (Repeater)e.Item.FindControl("Repeater2");
DataRowView drv = (DataRowView)item.DataItem;
Repeater2.DataSource = drv.CreateChildView("categoryItem");
Repeater2.DataBind();
}
}
This categoryItem is from this code:
objDA.Fill(ds);
DataColumn c1 = ds.Tables["category"].Columns["ID"];
DataColumn c2 = ds.Tables["Item"].Columns["catID"];
dRel = new DataRelation("categoryItem", c1, c2);
ds.Relations.Add(dRel);
Repeater1.DataSource = ds;
Repeater1.DataBind();
And the error message is:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 1222: objDA.Fill(ds);
Line 1223:
Line 1224: DataColumn c1 = ds.Tables["category"].Columns["ID"];
Line 1225: DataColumn c2 = ds.Tables["item"].Columns["catID"];
Line 1226: dRel = new DataRelation("categoryItem", c1, c2);
Well the "ID" of table "category" is the foreign key in "item" table and that foreignKey name in the "item" table is "catID".
Any help will be appreciated..
I really need some help in this.
suchita
|
|
|
|
|
Line 1222: objDA.Fill(ds);
may objDA is null or ds ^^
|
|
|
|
|
thanks for the reply .
ds is not null. If i show the values of ds in datagrid, all those data is shown with no problem..
Grid1.DataSource = ds;
Grid1.DataBind();
the above code is running well.
error is showing on the line 1224 ..
suchita
|
|
|
|
|
than objDA will be null the exception is NullReferenceException that implicit says that one object is null at the run time set breakpoints and check if all vars you use are not null.
bless
|
|
|
|