|
If You Place this two controls on a 3ed Control.
3ed Controls has to have all Properties you whant to set.
In the setter of the 3ed Control Properties you can feed all the Properties you whant.
This will also work during design time.
All the best,
Martin
|
|
|
|
|
1. Determine OS version
2. Determine Office version
3. Determine Visio version
4. Determine IE version
5. Determine Excel versoin
6. Determine if .NET is installed
7. Determine .NET version being utilized
9. Determine if .NET extensions are enabled for Excel
10. Determine if .NET extensions are enabled for Visio
11. Machine Information like CPU type, Memory, Memory being currently utilised
|
|
|
|
|
|
Hi there is a very usefull .dll you have to add it to your asembly it works very well even with no remote computers it reports you System information.
dll name : RemoteSysInformation.dll
if you need the Dll or any code
(i already have and app done with it to finger information about computers on my network)
Feel free to mail me
NOthing by now;)
|
|
|
|
|
I wanna determine which all .net framework versions' are installed on the system. (1.1, 2..etc) And which version is been used my application.
|
|
|
|
|
Hi,
Use System.Environment namesapce to get OS information.
|
|
|
|
|
1. System.Environment.OSVersion
2. FileVersionInfo.GetVersionInfo(@"C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE")
3. Same with 2, just change the filename.
4. Same with 2, just change the filename.
5. Same with 2, just change the filename.
6. You cannot even run your application. You get only an error "mscorlib.dll is missing".
7. FileVersionInfo.GetVersionInfo(@"C:\WINNT\system32\URTTemp\fusion.dll")
9. ???
10. ???
11. Use C++. In C++ you must write an assembler code.
|
|
|
|
|
To determine OS version use
System.Environment.OSVersion
If your application does not work, it means .Net is not installed
|
|
|
|
|
Hi Guys.
We have some forms that need to load a couple of comboboxes.
Some only have like 10 items, but some have more than 5000 items.
Now the client complains that it takes too long to load the form. (1 to 2 seconds).
What is the fastest way to get items out of the database and load them in the combobox?
My current workflow:
1. I do a select into a dataset.
2. I set the combobox's datasource, displaymember and valuemember property.
(sorting property is set to false!)
I was thinking about an index on the table, but the database is access and my colleague said you can't said indexes on access databases?
Is there also a property which sets the timout for manually entering the values?
When you start typing, the combobox automatically filters his items. When you type too slow, the value is reset. Our client didn't like this ...
Thanks for your help!
I've found a living worth working for, but I haven't found work worth living for.
<marquee>
|
|
|
|
|
What is the actual bottleneck? Fetching the data or the binding in the GUI?
For the first one an index *might* help. And you can surely index columns in access databases. Just check the properties of the column you wishto index.
|
|
|
|
|
Actually I think it's the GUI, but I don't know if that can go any faster then I did...
thanks for the help...
I've found a living worth working for, but I haven't found work worth living for.
<marquee>
|
|
|
|
|
Try calling combo.BeginUpdate before populating the control, and then combo.EndUpdate after. That will prevent the control from redrawing, but I'm not sure if it helps when databinding (the actual time of list population can be delayed in bound scenarios).
josh
|
|
|
|
|
tnx, that's an idea, I will try that
I've found a living worth working for, but I haven't found work worth living for.
<marquee>
|
|
|
|
|
hi all,in my page load event,i given as
Response.Write("function check(){for(var j=0;j<al.length;j++){if(window.document.Form1.Text3.value==al[j]){alert(al[j])}}}");
btnsubmit.Attributes.Add("onclick","check();");
but when i click the button(btnsubmit)first time it doesnot show alert msg but when i click the same button again it display the alert what is the prob with my code....
Regards,
ayyp
|
|
|
|
|
please post these questions to the web development board or the asp.net board;;;
I've found a living worth working for, but I haven't found work worth living for.
<marquee>
|
|
|
|
|
i tried the following...did not encounter any such error..
Response.Write("function check(){alert('a');}")
Button1.Attributes.Add("onclick", "check()")
you may have to provide more details
|
|
|
|
|
s it work but when i call this function it wont work
function check()
{
for(var j=0;j
|
|
|
|
|
Hi,
you try this code it works.
Response.Write("function check(){alert('hi')}");
btnSubmit.Attributes.Add("onclick","check();");
|
|
|
|
|
s it work but when i call this function it wont work
function check()
{
for(var j=0;j
|
|
|
|
|
Hi make it function like this ,
function check()
{
for(var j=0;j{
if(window.document.Form1.Text3.value==al[j])
{
alert(al[j]);
return true
}
}
return false;
}
|
|
|
|
|
hi,
I'm not sure what you are trying to do..and i think there may be a problem with your syntax:
I tried something similar as follows:
function check()
{
var al=new Array();
al[0]=1;
al[1]=2;
for(var j=0;j<=3;j++)
{
//alert(window.document.Form1.Text3.value);
alert(al[j]);
if(window.document.Form1.Text3.value==al[j])
{
//alert("in");
return true;
}
else
{
alert("else");
//return false;
}
}
}
|
|
|
|
|
My application has three users 1.Administrator 2.Cash collector 3.User .If somebody has logged in as administrator he should be given access to all the drives ,desktop etc. if he is a cash collector he should be shown only one shortcut on the desktop and other shortcuts should be disabled and if he is a user he should be shown only one folder on C drive.
Is there any way to implement this functionality.
Thank you.
|
|
|
|
|
hi all,
i have a function like this in my form1.cs:
public void SendAll(string str)
{
for (int i = 0; i < Soketler.Count; ++i)
{
if (((Socket)Soketler[i]).Connected)
{
ns = new NetworkStream(((Socket)Soketler[i]));
sw = new StreamWriter(ns);
sw.WriteLine(str);
string[] dataread = new string[3];
char[] splitter = { ' ' };
dataread = str.Split(splitter);
txtOdaNo.Text = dataread[0].ToString();
txtKiraBaslangic.Text = dataread[1].ToString();
txtKiraBitis.Text = dataread[2].ToString();
cmbCOSaati.Text = "12:00";
button12_Click(sender, e);
MessageBox.Show("Kiralama Kodunuz!!!\n\n Ciktisini Almak Ister Misiniz ?"," Kira Kodu Bilgisi",MessageBoxButtons.YesNo,MessageBoxIcon.Information);
sw.Flush();
}
}
}
bold line represent a button on my form. i have a user interface and some textboxes. these boxes may be filled both manually by typing from keyboard or they can be send via tcp/ip as a string with " " (a space) in each data.
then i parse the string according to that space and assign each value to the corresponding textboxes.
the problem is this: if user fill datas manually, s/he can easily press the button12 to run it. but if datas were send via tcp/ip and textboxes filled by parsing, button12_click(sender,e); doesnt work in my function
i get these errors:
> the name 'sender' does not exist in the current context.
> the name 'e' does not exist in the current context.
how can i solve this problem and make button12_click work in my function as well ?
help please,
thanks in advance, bye.
|
|
|
|
|
The following should work:
button12_Click(this.button12, new EventArgs());
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
www.troschuetz.de
|
|
|
|
|
Even better:
button12_Click(this.button12, EventArgs.Empty);
|
|
|
|