|
That's just not possible until you know what kind of database it is. It's that simple.
|
|
|
|
|
well the file type for .idx says SQL Server Replication Snapshot Index Script
-----
|
|
|
|
|
Great. You have no idea what you have.
.DAT and .IDX are about as generic a file extensions as you're going to get. .IDX also has about 18 more documented uses on FilExt.com, and countless proprietary ones since IDX is short for Index.
Unless you KNOW FOR ABSOLUTELY SURE what's in that file, you're groping around in the dark. Also, none of the SQL Server providers will attach to a file without an instance of SQL Server running. If those are SQL Server files, they're useless to you.
|
|
|
|
|
My application window seems to be locked from being resized, I have checked to make sure that locked is set to false. Is there anything else that could be done this?
|
|
|
|
|
Check the FormBorderStyle property, make sure it is set to sizable.
only two letters away from being an asset
|
|
|
|
|
check Form.MinimumSize and MaximumSize; if they both equal the initial size, no resizing
will be possible.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
How can I get first clicked button’s image and second clicked button’s image in runtime application.
(I built the buttons automatically by coding in form loading. I will use tag of button’s image but I can’t define first clicked button’s ... and second clicked button’s.....For example I want to show “perfect” in messagebox if first clicked button’s backgroundimage is the same to second Clicked Buton’s backgroundimage. How can I write first clicked..... and second clicked ..... by coding to compare)
I asked this question before and I received this answer that
protected void ClickEvent(object sender, eventargs ea)
{
Button b = sender as Button;
// b is now the button that was pressed
}
but how can I define the first clicked button and the second clicked button?
Is beloved answer defined only one button which is clicked?
|
|
|
|
|
Create a generic List of Buttons, List.
In the clicked events, add the (Button)sender to the List.
Then can check the order of buttons like an array. list[0], list[1], etc.
If 2 buttons have been clicked, remove them and start over.
"I long for combat!" - Unknown Protoss Zealot Jason Henderson
|
|
|
|
|
Thanks a lot for your reply,
I am beginner in programming and don't know generic list. Can you give a simple example about this subject?
|
|
|
|
|
private List clickedButtonList = new List();
In the clicked event you can add the button to the list like this:
clickedButtonList.Add((Button)sender);
Traverse the list like an array or with foreach.
Remove() will remove, etc.
Look up List<> on MSDN.
"I long for combat!" - Unknown Protoss Zealot Jason Henderson
|
|
|
|
|
Thanks so much,
I will make effort on it.
|
|
|
|
|
Like so many people here, it sounds like you need to buy a beginner book and work through it to get some basic concepts down before you worry about event driven programming.
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 am a student on programming for two months. We saw even subject and I can make any application about that if I need only clicked button not first and second. I make effort to imrove myself, working only with books is not easy way and sometimes it is useless and spending my time.
|
|
|
|
|
omegazafer wrote: We saw even subject and I can make any application about that if I need only clicked button not first and second
This is not an English sentence. It makes no sense.
omegazafer wrote: I make effort to imrove myself, working only with books is not easy way and sometimes it is useless and spending my time.
Well, how is reading a book different to reading here, excepting that a book will cover all bases and has been laid out with a lot more thought than a forum post ?
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 )
|
|
|
|
|
Okey, after now,
I firstly try to look at the books for general subject samples.
|
|
|
|
|
omegazafer wrote: but how can I define the first clicked button and the second clicked button?
The event will be triggered for the first clicked button first and the second clicked button second.
|
|
|
|
|
Thanks for your interest.
|
|
|
|
|
Hey i am trying to create an application that takes control of the keyboard any time a key is pressed, however i don't know how to stop windows from executing the command for such key, example:
If i pressed the windows key + E Key, this is the shortcut to bring windows explorer, i would like to display a menu inside the application, while this is running, but stop windows from bringing Windows Explorer, any ideas how to do that?
And how can i write the registry if i know the key i want to write?
Let's say, as an example, i have this key to write on the registry
[HKEY_LOCAL_MACHINE]\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell = "explorer.exe", how could i write it completely without having to look for it first???
Thanks all!!!
Luis E Tineo S
|
|
|
|
|
kingletas wrote: Hey i am trying to create an application that takes control of the keyboard any time a key is pressed
What do you want to do make it levitate?
kingletas wrote: how could i write it completely without having to look for it first???
Magic? Should be a breeze since you can perform levitation.
|
|
|
|
|
led mike wrote: What do you want to do make it levitate?
No just to avoid users from performing any actions while the application is running, that way basically i am creating a kiosk mode where the user only sees and uses my application... this is one of the few things i need to get it done.
led mike wrote: Magic? Should be a breeze since you can perform levitation.
I don't really like to do anything with the registry but I am planning on modifying certain key on the registry to avoid some keys to be execute by windows. I know that if Explorer is running all windows shortcuts are handle but if not there are not!
any ideas!?
PS: Why are you using the word magic all the time you want to be sarcastic?
Luis E Tineo S
|
|
|
|
|
kingletas wrote: you want to be sarcastic?
I guess I am failing miserably eh?
kingletas wrote: avoid users from performing any actions while the application is running
Hmmm sounds like an interesting application to 'use', somehow I don't think what you wrote is actually what you mean. Anyway Dave's tip on a global keyboard hook is one way you can do that. There might be another involving the CBT mode but I'm not sure, also I don't have enough requirments from you to offer any certainties.
kingletas wrote: I am planning on modifying certain key on the registry
oops I misread your first post to say "if I don't know the key".... my bad
There are BCL classes for working with the registry. I don't remember offhand what namespace they are in but should be easy to find.
|
|
|
|
|
Well, dispatching Windows+E to do something other than launch Explorer is frowned upon since that's a well-known key combination. Generally speaking, modifying the standard functionality of well-known key combinations and controls is frowned upon because it breaks the rules of a "consistant user experience" acrossed all applications.
It can be done, but you have to implement a global keyboard hook. Search the articles for "keyboard hook" and you'll find what you're looking for.
|
|
|
|
|
Well basically the user won't see Windows at all... only the application.
This is what happens:
I have a touchscreen and a fingeprint reader. When the user is identified the application is enabled for the user to "vote" but he cannot do anything else.
So i need to ensure that any key does anything rather than what i want it to do while the application is running but once it stops everything will be turn back to normal!
Thanks... for the article i will look at it now!
Luis E Tineo S
|
|
|
|
|
Good day guys,
How do you reorder a List View? What I am doing is transfer all the LVItems to a DataTable then sort the Datatable, after that, clear the ListView then re-add the sorted data rows.
private static void SortDataTable(DataTable dt, string sort)<br />
{<br />
DataTable newDT = dt.Clone();<br />
int rowCount = dt.Rows.Count;<br />
<br />
DataRow[] foundRows = dt.Select(null, sort);
for (int i = 0 ; i < rowCount; i++)<br />
{<br />
object[] arr = new object[dt.Columns.Count];<br />
for (int j = 0; j < dt.Columns.Count; j++)<br />
{<br />
arr[j]=foundRows[i][j];<br />
}<br />
DataRow data_row = newDT.NewRow();<br />
data_row.ItemArray=arr;<br />
newDT.Rows.Add(data_row);<br />
}<br />
<br />
dt.Rows.Clear();<br />
<br />
for(int i = 0; i < newDT.Rows.Count; i++)<br />
{<br />
object[] arr = new object[dt.Columns.Count];<br />
for (int j = 0; j < dt.Columns.Count; j++)<br />
{<br />
arr[j]=newDT.Rows[i][j];<br />
}<br />
<br />
DataRow data_row = dt.NewRow();<br />
data_row.ItemArray = arr;<br />
dt.Rows.Add(data_row);<br />
}<br />
<br />
}
I'm using that function found on the net. The problem with that one is if I sort {2,11,12,13,14,15} the output is {11,12,13,14,15,2} or {3,1,11,12,15} the output is {1,11,12,15,3}. I don't know why.
Can you suggest an alternate way to reorder a listview? (Not just sorting it, I really mean reordering it.) Not using DataView or listview.sort.
Thank You.
|
|
|
|
|
it is giving you results because it is sorting as string not integer. try this
private static void SortDataTable(DataTable dt, string sort)<br />
{<br />
DataView dv = new DataView(dt);<br />
dv.Sort = sort;<br />
<br />
listView.DataSource = dv;<br />
listView.DataBind();<br />
}<br />
-----
|
|
|
|