|
hi
thanks for showing interest in my question.
U r rite. i hav done this but i when we do
comboBox.selectedvalue
it is returning null
and i want to hav som value in it
dat i shoul provide.
agin thanks pls help me to sort out dis problem
rahul saini
|
|
|
|
|
I am having problems with the use of resource files (holding strings) with Visual Studio 2005. To abstract the problem, I have written a demo application.
I am working on device applications for PPC2003. I got one C# Solution with two projects. The following shows how the files are organised (and the blue text is some comments to understand it better):
LocalizationAppDemoAll2 (Solution)
_____LocalizationAppDemoAll2 (In bold, my startup project)
__________Properties (folder)
_______________...
__________References (folder)
_______________LocalizationAppDemoAll2Presentation (reference to dll of the other project)
_______________...
__________it (folder)
_______________LocalizationAppDemoAll2Presentation.resources.dll (added as a shortcut link)
__________Program.cs (containing the Main method)
_____LocalizationAppDemoAll2Presentation (the second project within the solution)
__________References (folder)
_______________...
__________Resources (folder)
_______________CodeText.it.resx
_______________CodeText.resx
__________Form1.cs
__________FormHandler.cs
----------------------------------------
I have changed my regional settings on the PDA device to Italy, and running the application. The application is supposed to read all the strings from the resource file CodeText and populates it in a list box (or combo box). However, the problem is that when running the application, it is only using the english version (i.e. CodeText.resx) file and not the italian resource file (i.e. CodeText.it.resx) despite the regional settings changed to Italy. I think it cannot find or reads the correct dlls. Any help please? It's urgent.
Thanks
Ashvin Gunga
Ashvin Gunga
|
|
|
|
|
use following code for explicitly loading resx File
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("it");
|
|
|
|
|
Thanks Sam.
I figured out the problem. The code was fine. It's one of the properties of the dll link that I didnt set correctly. Now it's working.
Cheers
|
|
|
|
|
I am trying to run my C# application on my PDA device (its a Symbol device) and I get this exception
"An unhandled exception of the type 'System.MissingMethodException' occurred in System.Windows.Forms.dll
Additional information: Method not found: Dispose
Symbol.Generic.Controller, Symbol, Version=1.0.5000.1, Culture=neutral,
PublicKeyToken=68EC8DB391F150CA. "
I am not understanding what is this and on which function it is occurring.
Checked on google and found that "MissingMethodException is designed to handle cases where an attempt is made to dynamically access a renamed or deleted method of an assembly that is not referenced by its strong name"
Can anyone help me incase they have encountered similar issue. Also please tell me what should be the possible solution to this issue
|
|
|
|
|
hi frens..
i want to pass the db connection and SQl query through code to the cystal report ..so please help me ..
|
|
|
|
|
Hi,
I got a COM, I tried to used it in C#, but curiously I can't access some of the properties (nor seeing them all in the Object Browser - but it does work in JScript). Anyone could help ?
Here is what I can see from OleViewer (from which only the "Count" property I can access).
interface IFWRuleList : IDispatch {
[id(0xfffffffc), propget]
HRESULT _NewEnum([out, retval] IUnknown** enumerator);
[id(00000000), propget]
HRESULT Item(
[in] long index,
[out, retval] VARIANT* value);
[id(0x00000001), propget]
HRESULT Count([out, retval] long* Count);
hny
|
|
|
|
|
Hello All,
I was trying to create dynamic HTML table using C#. The data for the table comes from sql server filled datatable (i have succeded in this aspect), I am not able to figure out how to create HTML table with this data. Any suggestions are welcome.
Thanks in Advance for your help. Best Regards
|
|
|
|
|
you have htmltable, htmltablerow, htmltablecell
first, set the cell data using htmaltablecell's innerhtml property
next, add this cell to the row,
finally add the row to the table using its property rows.add(tablerow)
Gautham
|
|
|
|
|
Thanks i have done this and it works fine could you please tell me how to display the data in three columns instead of one column.
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="False" height="1048px">
<columns>
<asp:templatefield>
<itemtemplate>
" width="120" height="100" border="0"> | | $<%# Eval("Price") %> | | <%# Eval("ProductName") %> | |
cheers, shilpa.
Thanks in Advance for your help. Best Regards
|
|
|
|
|
Could anyone tell me if OOP is used much in scientific applications please?
I've gotten the impression from some sources that OOP is mainly used in
large office and financial app's...
|
|
|
|
|
Lurker00 wrote: mainly used in
large office and financial app's...
Probably true, in that there are probably more of them written.
Given the speed of PCs today, I see no need for you to use plain C for scientific code, which means there's no reason not to use OOP. Certainly, if you're using C#, you will use OOP, you have no choice.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I agree with your points. I don't see why one couldn't use OOP in scientific programming.
|
|
|
|
|
I think it's a matter of whether or not OOP makes sense. For example, a scientific application dealing with specific representations of numbers (in a matrix, perhaps) and operating on those representations would do well to use OOP. I'd say that C is probably best in a compact (few KB in size), high-performance scientific library.
|
|
|
|
|
the answer i've always heard on this is that OO code is seen as non-deterministic by a lot of scientists. The scientific code i have seen written in OO languages tends to separate the entity objects from the control objects which largely gets round these problems
The few scientific computer users i know are all Fortran users and i suspect that they are using libraries that have been developed and performance tuned over the course of many years, unlike banks, scientific institutions often have small budgets and loads of inertia.
|
|
|
|
|
Hello everybody, I have been trying to make my own control. I have looked at some articles such as the combo-box based color picker[^], but I still don't get how I am supposed to make my own control. If anyone has had any success with a certain article, I would greatly appreciate a link to it.
Thanks.
|
|
|
|
|
You start by adding a new control to your project, it's an object type. You then get an area like the forms designer, but the controls you add to it, are added to your control. You obviously get to add code to it as well, just like a form. The process is really the same, all that differs is the base class, really.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I'm creating C# MONO/.NET 2 Winforms application.
I need to enter part names but store part ids in orders table.
I set Combobox Datasource to parts table.
Since parts table is very big, it takes a lot of time to load the data source.
How to use lookup table when lookup table is large ?
Is it possible to use virtual combobox or some other control?
Andrus
|
|
|
|
|
Use a hashtable. How big are we talking ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thank you.
I asked for a WinForms control like which shows first 10 parts whose name starts with entered name.
User can scroll and see next or previous 10 part names. In this case combobox should ask next 10 rows from server etc.
Total table size is from 100 .. 500000 record depending on the user and it is not reasonable to load it as combobox lookup table
during combobox creation like ms doc sample recommends.
Hashtable is not UI control and cannot used for this.
This should be common requirement. Where to find code which implements this ?
Andrus
|
|
|
|
|
Ah, OK. I thought you wanted to look up values and then display them.
AndrusM wrote: This should be common requirement.
I don't think it is.
I know that comboboxes offer auto complete, perhaps you can find something there ? I'm not sure if it works with a callback, or just a data source.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
for auto-complete combobox need to read whole lookup table in init which is not reasonable for large tables.
I'm looking for a virtual combobox control which reads data from sql server only when user actually needs it.
Andrus
|
|
|
|
|
To me it sounds like you should have a BackgroundWorker that will load the data in small pieces and then add them (when possible, or by request) to the combo box.
I am wondering weather you really need a combo box though.. Wouldn't a ListView be better?
Internet - the worlds biggest dictionary
|
|
|
|
|
Backgroundworker is too complicated for this task.
Usually user type first characters of name and want to see 10 matching character. It is best that control reads data only from server when user requestes autocomplete or opens dropdown menu.
ListView takes a lot of screen space.
I need singe-line width field, autocomplete and selection from dropdown table.
I think that combobox nearest to those requirements
Andrus
|
|
|
|
|
Hello,
I've recently posted a question about destructors.
The replies here made me go on a journy of articles reading.
Of course I got wiser , but there's something I'm still not sure about...
If I have a class which holds non-disposable objects, how should I go about releasing my object?
Should I not implement IDisposable?
Should I only set their references to null ?
Should I write a finalizer method?
Also, is a finalizer needed if I don't have a Dispode() method?
Thanks in advance,
Shy.
|
|
|
|