|
Message Closed
modified 23-Jun-20 3:40am.
|
|
|
|
|
You check WiFi passwords by logging on to the ADSL modem/router through the web interface of the device. I guess you have never done this so you think there is some other way to hack the device.
|
|
|
|
|
No, i don't want connect the setup interface router! just i want for example: i have a textBox and into it is "1234" pass & i have a button . i want when click the button the "1234" in the textBox send to the my SSID for example "USER" & return "correct" or "incorrect" the pass ! It is very complicated ? please help me...
|
|
|
|
|
|
Very thank's, can you build a simple program that has a listBox to show SSID & a textBox that i enter a password & click the button & return me a messagebox that this is correct or incorrect ? 
|
|
|
|
|
|
he he hoooow! i do it by "Simplewifi.dll" 
|
|
|
|
|
You might want to try RentACoder.com or whatever it's called nowadays.
This space for rent
|
|
|
|
|
I have 10 textboxes in a form, the thing is I want make the visibility of all these textboxes to hide and visible based on button click.is their any way to group all these 10 textboxes into single component to make hide /visible based on button click.
ex.: Now for each text box I am doing like this.
textBox1.visible=false;
textBox2.visible=false;
textbox3.visble=false;
something can I do like this,
textbox_Group.visble=false;
thanks in advance...
|
|
|
|
|
To "group" them, you could create a UserControl with contains them all. Making that visible and invisible would affect all the controls it contains.
That does mean that you need to provide properties to access the textBox values (which is a good idea), but you could place them all on a Panel and change the visibility of that to the same display effect, but keeping all the TextBoxes directly accessible to the whole form class.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
In addition to the strategies that OriginalGriff told you about, you could use a ContainerControl like a SplitterPanel to create an easy pop-out - pop-back userinterface. Let's say your Buttons were all in Panel1 of the SplitContainer; then you can show/hide it by:
private void button1_Click(object sender, EventArgs e)
{
splitContainer1.Panel1Collapsed = ! splitContainer1.Panel1Collapsed;
} To get this to work as one might expect:
for the SplitContainer:
0. set appropriate MinimumSize and MaximumSize values.
1. set the 'SplitterDistance property to the width of the left Panel.
2. set IsSplitterFixed property to 'true if you are not going to allow the user to re-size the Panels
for the Panels
1. set the Panel1MinSize and Panel2MinSize (int) properties to appropriate values
If the 'Orientation property of the SplitterPanel is 'Vertical, then the two min size properties are going to set the width of the Panels.
~
Keep in mind that when the collapsed Panel1 is expanded, the Controls placed in Panel2 are going to move depending on how you set their Anchor/Dock properties.
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
|
Hi,
How does the Office 2016-Like Help works? How can I add a similar to my C# application?
Thanks,
Jassim[^]
Technology News @ www.JassimRahma.com
|
|
|
|
|
Hi All,
I am designing one web based application to add user primary information. My objective is in one Submit button action , the entered information need to save to 35 databases at one time.
I am using IBM DB2 databases.
Every database having 2 tables those are going to affect for this insert , update and delete event from UI.
I am planning to iterate through database list and planning to insert record at one time to one database and then next database inline. Will it be good approach as per performance?
can anyone please have any suggestion on my approach?
please advice.
Thanks
modified 1-Aug-16 14:55pm.
|
|
|
|
|
Tejendrasing wrote: can anyone please have any suggestion on my approach?
..do you know the decorator-pattern?
Act as if you are programming against a single connection (program against the IDb-interface); inherit your own connection-object and IDbCommand, and implement the distribution there against the list of actual connections.
Should work, and could be executing the commands async for all sources, and report back any exceptions
If you can do it once, you can do it in a loop. No need for fancy stuff.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Tejendrasing wrote: the entered information need to save to 35 databases at one time WTF sort of design is that. You are working with one weird data design if user details are replicated/scattered across 35 databases. I would seriously look into a redesign of your data structure.
You still need to make a connection to each database from your DAL unless you do some fancy work with linked databases and replication at the database level. Or possibly a single stored proc that updates the 35 (unbelievable) databases.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
I would like your enlightened advice on this matter:
For my next application I have to setup an interface in 3D.
The interface will be an office with a desktop and some usual items like pens, papers, telephone, lamp, etc...
There won't be complex animation, just slight rotation around the desktop BUT...the scene has to be rendered in a very realistic way, offering a 'global illumination' (like?) quality display! (realistic light effects and shadows)
How should I realize this? Will I have to use a 3D game engine? If so, which one would you advice me to use?
My question is not on the content of the scene (a 3D graphic artist will manage this) but on how to achieve a realtime high quality render of the scene!
Thank you very much!
|
|
|
|
|
Jayme65 wrote: The interface will be an office with a desktop and some usual items like pens, papers, telephone, lamp, etc...
Sounds like you're reinventing Microsoft Bob[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
This is a question for Google: there are many papers, tutorials and samples to be found.
|
|
|
|
|
I have two forms form1 and form2.in form1 I have a button that opens form2.in form2 I have a combobox and button.on clicking a button in form1,form2 will be displayed,then in form 2 I will add items to comboxbox by clicking a button present in form2.on closing the form2,the values added by clicking the button disappears,so help me to come out of it.i don't want to use databases.i just want that values be binded until the close of main form Form1.
Form1.cs
private button1_click(object o,EventArgs e)
{
Form2 F2 = new Form2;
F2.Show();
}
Form2.cs
int i=0;
private void button1_Click(object sender, EventArgs e)
{
i = i + 1;
comboBox1.SelectedIndex = comboBox1.Items.Add("Message" + i);
}
help me with proper examples
The scope of saving,means values on combox box must be remained until the close of Form1.
modified 1-Aug-16 3:12am.
|
|
|
|
|
|
Since you are using Show it's a little complicated.
What you need to do is get the selection back from Form2 to Form1 and then "re-use it" next time you need Form2. That's pretty simple in theory: just write a property in Form2 which gets and sets teh information:
public int SelectedIndex
{
get { return comboBox1.SelectedIndex; }
set { comboBox1.SelectedIndex = value; }
}
And if you use ShowDialog to display Form2, it's easy:
private int index = 0;
private void button1_click(object o,EventArgs e)
{
Form2 F2 = new Form2();
F2.SelectedIndex = index;
F2.ShowDialog();
index = F2.SelectedIndex;
} Or better:
private int index = 0;
private void button1_click(object o,EventArgs e)
{
Form2 F2 = new Form2();
F2.SelectedIndex = index;
if (F2.ShowDialog() == DialogResult.OK)
{
index = F2.SelectedIndex;
}
} But with Show it's more complicated. What you need to do then is handle the FormClosed event:
private int index = 0;
private Form2 F2;
private void button2_Click(object o, EventArgs e)
{
F2 = new Form2();
F2.SelectedIndex = index;
F2.FormClosed += F2_FormClosed;
F2.Show();
}
private void F2_FormClosed(object sender, FormClosedEventArgs e)
{
index = F2.SelectedIndex;
}
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
sorry,it hasn't helped me.any other solutions
|
|
|
|
|
As we can't see any of your code, we can't see whether or not you implemented this properly. Given OG's experience as a developer, I would expect that the problem is you haven't implemented what he told you properly.
This space for rent
|
|
|
|
|
hi Pete O'Hanlon,
can u provide me any working example
|
|
|
|