|
i dono y that Rajdeep.NET (or) x+y=xy?! is doing criminal works like this....
Padmanabhan
|
|
|
|
|
now he changed his name to Invalid_Win32_app.
Padmanabhan
|
|
|
|
|
How very appropriate - any Win app he generates is going to be invalid!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
OriginalGriff wrote: Changing your brain for one that works, now that would help.
You're sure he has a brain?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
He asks questions, therefore he has a brain.
But does he have a clue?
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Hi,
when an Internet Explorer page is opened
and when we select File->Print, a PrintDialog appears,
how can we know which printer is selected(among all the printers installed) before clicking OK button, and how to know the Printer settings?
|
|
|
|
|
By default that printer is selected which is Set for Default Printer.
You can get the name of default printer.
If you can think then I Can.
|
|
|
|
|
Yes, default printer I can get, but can't I get the selected printer name for which print is given, before/after clicking the OK button of PrintDialog
|
|
|
|
|
But you can track the printer in which you can get printer name, document name and where to send the command.
If you can think then I Can.
|
|
|
|
|
You could monitor the print spooler using FindFirstPrinterChangeNotification and then find out which printer it went to, not sure if this is the best way though.
|
|
|
|
|
I had a small application of BHO which retreives each and every element of a web page opened in IE.
I want to change the text that is visible on web page, as the changed text should be directly visible
to user instead of original text.
How can I do this in c#?If I try to change/assign the innerText of an HTMLELement in the following
ways, the original text is visible for a fraction of seconds initially, and then it is replaced by the
"New text".
1. htmlElement.innerText = htmlElement.innerText.Replace(htmlElement.innerText, "New Text");
2. htmlElement.innerText = "New Text";
If I try to set the innertext property in the following way
object obj = "New text";
htmlElement.setAttribute("innerText", obj,0);
it doesn't show any effect,
I think I was missing something. How can I do this?
|
|
|
|
|
|
adneilme wrote: I need help from you guys especially those who work as a Network Engineer. You can figure this out and write down all codes in C language.
Yay, I love doing homework that's not mine.
|
|
|
|
|
hi friends
i have a DataGridView control on a form and when i want to print it
i create one instance and then send it to one class that print it.
but when i change properties of new instance the properties of first
DataGridView automatically changed for example:
DataGridView newdtgv = dataGridView1;
newdtgv.Columns["customercode"].Visible = false;
printer.PrintPreviewDataGridView(dataGridView1);
in this code when i hide customercode Column in newdtgv this Column hide in dataGridView1 too. how i prevent this changing in dataGridView1?
|
|
|
|
|
Hi,
Member 4470166 wrote: DataGridView newdtgv = dataGridView1;
this is not a new DGV, it is a second reference to a pre-existing DGV.
you having "new" in the variable's name does not change a thing, except it confuses you.
DataGridView newdtgv = new dataGridView(); would create a new DGV, without any content though.
BTW: you normally don't need to create new data structures, tables, whatever to get something printed, since printing and painting to screen are very similar actions.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
thanks Luc Pattyn
it is true but how i create new DGV that equal to dataGridView1 and not reference to
dataGridView1 ?
|
|
|
|
|
Hi,
I'm guessing you want to print a DGV that is slightly different from the one displayed on screen, without temporarily changing the one on screen.
If so, you would need a DGV clone; if the DGV got filled from a DataSource, just create a new DGV (with the "new" keyword) and bind to the same DataSource. If not, I suggest you google for "DataGridView Clone".
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
|
Brothers,
I've successfully coded to load data from db (sql server) to combobox in c sharp (ex: productname); but when I add new data to db (from c sharp), I want to add an pID of productname instead of the productname to db because I have two tables in db which have relationship together (ex: pID, productname) and (ex: cID, pID, qty, price).
Lastly, I have another form to add more productname to db; so, how to refresh the combobox (as mentioned above) when this form is closed?
Thanks so much
Chuon Visoth
Angkor Wat - Cambodia
asp.net - c sharp beginner
|
|
|
|
|
Hi Chuon Visoth
A Combobox as 2 properties Display Member & Value member. Assign "productname" as your Display member & "pID" as your value member. while saving data to your table assign value member.
The "pID" & "productname" both columns should be in the query from which you assign it to commandText & then get Datatable
Ex:- combobox1.DisplayMember = "productname"
comboBox1.ValueMember = "pID"
Thanks & Regards
Satish Pai B
|
|
|
|
|
But this wouldn't refresh it, he would also have to update the DataTable that the combobox is bound to.
|
|
|
|
|
Thanks for your support.
I've found the way to load pID and productname; but my second question I've not found it yet.
How to do that? HELP ... !
Chuon Visoth
Angkor Wat - Cambodia
asp.net - c sharp beginner
|
|
|
|
|
|
Hi,
I am writing a program that needs to manipulate Animation Master's models(an 3d animation program).
Hash Inc have available an sdk for developing plug ins using C++. But they have an ActiveX that exposes all the sdk libruary, it's called WebHAMR.
I really need to do what I need to do fast, and because of this I am using C# Express 2008.
I really don't want to do it in C++
This is what I do:
I add WebHAMR as a Reference, And it works fine if I just place a WebHAMR control on a form and load a 3d model.
The problem I am having is that if I create an object using the library exposed by WebHAMR, I get the following error:
Retrieving the COM class factory for component with CLSID {2FDB515C-EA6A-4B4A-8300-A0446FEB7F78} failed due to the following error: 80040154.
I really need help, I am limited on time.
Thanks
|
|
|
|
|
I have a localized form set up with default, en-CA and fr-CA languages. I tried testing the form, for each of the languages by changing the HKCU\Software\Policies\Microsoft\Control Panel\Desktop\MultiUILanguageID value between 0409 (en-US), 1009 (en-CA) and 0C0C (fr-CA). The correct localized text is displayed everytime I test the form without debugging but not when I test using VS debugger.
Here's what I do:
1. Create a localized form with a button which closes the form.
2. Update HKCU\Software\Policies\Microsoft\Control Panel\Desktop\MultiUILanguageID value to 0C0C (was originally 0409)
3. From Visual Studio IDE window, choose "Start without Debugging"
4. Form displays with French text as expected
5. Update HKCU\Software\Policies\Microsoft\Control Panel\Desktop\MultiUILanguageID value to 1009
6. From Visual Studio IDE window, choose "Start without Debugging"
7. Form now displays with Canadian English text - again, as expected
8. Update HKCU\Software\Policies\Microsoft\Control Panel\Desktop\MultiUILanguageID value back to 0C0C
9. From Visual Studio IDE window, choose "Start Debugging"
10. Form displays with Canadian English text - expected to be French
11. Repeat step 9 above - without touching the registry value (still 0C0C)
12. Form now displays in French as expected
I noticed that if I want the form to display in the correct language, in debug mode, I need to run it twice after changing the registry value.
I test by changing HKCU\Software\Policies\Microsoft\Control Panel\Desktop\MultiUILanguageID value because I don't want to change locale in Control Panel everytime. Is this test valid? If so, does anyone know why my test results are different between "Debug" and 'non-Debug"?
Thank you.
cpl
|
|
|
|