|
You'd use a dictionary to associate two groups of objects, probably storing the city name as the key and the index into your image list as the value.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all,
I am a beginner in VB 2005 and I am looking for some help.
I am creating a application that will use a small database under the form of a txt file (called *.dat). Here is an example :
ServerName;IP Adress; port_number; etc....
1) How can I update automatically my listview or checkbox with this information as I do not want it to be hard coded?
2) Also I would like to store the parameters (or Options that the user as entered via the application) in an *.INI file and be able to read them at the launch of the application so that I can populate the options fields?
I know that it is an old way of proceeding but easier for me to maintain.
Thanks,
|
|
|
|
|
1 - you'd do better to store your data as XML, or, at least, create a struct that represents one data item, and write code to build a list of items from your data file. Then make that the data source of your control.
2 - Sounds good. Again, XML is probably easier to work with. Then all you need to do, is read the file and set your state from it on startup, and store your state to XML on close.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I want to insert checkbox in a listbox for selecting purpose
Ahmed hassan
|
|
|
|
|
there is already a control CheckedListBox in VB 2005 & 2008 (not sure about earlier .net versions)
Eslam Afifi
|
|
|
|
|
Does anyone have experience calling a Cobol/DB2 stored procedure from .NET? It is not an easy thing to find on the web as I'm sure most companies have tried to get away from this. We still have them because they must serve as the link between our distributed apps and an IMS Database
|
|
|
|
|
How do you write a stored proc in Cobol ? If you have a database, then it needs to support ODBC in order to create a link to ADO.NET. Otherwise, it's going to be tough going, I reckon.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
It's pretty stupid. Basically, we have DB2 installed underneath IMS. Programs have to be written in either COBOL or Java and called in order to get to the IMS data from a distributed app written in either .NET or Java. It's certainly not an ideal situation.
|
|
|
|
|
Hi All,
I have encrypted file,
Consider encrypted file is jpeg. Actually what iam doing is, loading the encrypted file on memory and decrypting on-the-fly then iam getting the file content as a byte array.
How to assign the byte array value to appripriate file type to open.
Thanks & Regards
Kumaran
|
|
|
|
|
... well just save the byte array in the right file ... (do open it you might want to use the System.Diagnostics.Process.Start - method)
|
|
|
|
|
hai,
i am using dotnet 2005.i doing my project in vb.net windows application.
Is it possible to generate serial number in datagridview.if possible means,i want to generate serial number in datagridview in windows application,not in web application.
|
|
|
|
|
The easiest way i to add it while u are are adding the rows...
When u add the rows /cells u can have a counter along (as in most of the cases it is done in a loop), u ca just add it to ur serial number col..
Hope this will do the trick for u
Good Luck
|
|
|
|
|
Hi
Please help me out in Progress Bar Control in VB6.0
Progress to show until my 6 functions is completed
Regards
Subash
|
|
|
|
|
Have you tried google ? Progress bars are kind of trivial, you just set the maximum value, and keep incrementing it until the tasks are done.
Also, why are you using VB6, which has been a dead language for some time now ? You plainly are very much a beginner, why start on a language that no-one uses ( and that sucks ) ? VB.NET express edition is free.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Dear All,
please help me how to
Convert Format24bppRgb to Format8bppIndexed in c#
I would really appreciate your help.
Abdul Rahman From Afghanistan.
|
|
|
|
|
Hello,
Look up the contents of the System.Windows.Media.Imaging namespace, namely PixelFormat and FormatConvertedBitmap. That should get you started. You'll need references to System.Windows.Media.Imaging and WindowsBase.
|
|
|
|
|
The easiest way is to create a new 8 bit bitmap, and draw your 24 bit image onto it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
can you please help me to convert 8bpp avi files to 24 or 16 bpp without loss of proper colors in the matrix. I have to split avi file into bitmap images. The code works fine for 16 bpp or more but has a problem when you split 8bpp avi files. Please Help!
A Simple C# Wrapper for the AviFile Library[^]
Thanks in Advance!
|
|
|
|
|
Hello every one
I am using DataGridView in my VB2005 Express application, I have following issues
- How can I restrict the maximum size of text entered by the user in a particular cell
- The second (requires a bit lengthy description sorry for that)
o After the grid is created the user can click on the cell header to align the rows in ascending or descending order.
o Now if I have a grid with 10 rows(say) and have data only in 2 and the user clicks the cell header then the blank rows come at the top of the grid
o How can I make it sure that when the column header is clicked the blank rows stay at the bottom only i.e. only the rows with data are sorted
- This one is related with previous issue : Can I some how make it sure that one row with data can also be not included in the sorted alignment, i.e. the row acts like a non moving row at that place only
- Is there any property by which I can even disable that sorting feature??
Regards
Nishkarsh
|
|
|
|
|
1 - if you're creating a textbox, you can specify in it's properties the maximum length
2 - You should not have 'blank rows' at all, this is a problem with your overall design. You should have an option to create a new row if a user is entering a new row, not have 8 empty rows there
3 - you have to write your own sorting algorithm and make it work in the manner you're describing.
4 - yes, you can turn off sorting
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks for the reply
Christian Graus wrote: 2 - You should not have 'blank rows' at all, this is a problem with your overall design. You should have an option to create a new row if a user is entering a new row, not have 8 empty rows there
this is a Look and feel issue and i can not help it... ppl hear feel that showing blank grid back dose not look good
Christian Graus wrote: 3 - you have to write your own sorting algorithm and make it work in the manner you're describing.
Christian Graus wrote: 4 - yes, you can turn off sorting
How do i do it?
|
|
|
|
|
nishkarsh_k wrote: this is a Look and feel issue and i can not help it... ppl hear feel that showing blank grid back dose not look good
Well, if you have blank rows inserted, they exist and will be sorted, not much you can do, unless you write a custom sort.
http://msdn2.microsoft.com/en-us/library/ms171607.aspx[^]
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello There
I have tried very much but could not work around it. The problem is that i want to disable the web browser control's context menu and the shortcut keys, for example pressing the Cntr+N will open a new internet explorer window.
Does anyone know how do I disable the context menu and shortcut keys of the VB6 web browser control?
Regards,
Sarfraz
|
|
|
|
|
Hi Friends..
I want to install my VB.Net appication through the set-up created.
But the thing is i need the exe automatically run after the setup is installed(i.e without clicking the shortcut made..).HOw to do it..?Is there any possiblity to fdo so..
Someone help in this regard ..
Thx in Advance..
Balaguru
|
|
|
|
|
You can force your app to run on reboot by putting it in the run ( to run every time ) or runonce ( to just run once ) key in the registry. Or you can add a shortcut to it in the startup folder of the start menu.
You can also set up your MSI so it shows the option to run the app at the end of the install.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|