|
Hi,
is it possible to change the whole style of the user interfaces in an setup and deployment project using VS 2005? I mean to change the font, font-size, background-color and so on... there are no properties available or i don't find them...
Best regards
|
|
|
|
|
I do not believe so. You are probably going to have to go with a different installation product. The Visual Studio version is very scaled back.
Check out http://www.installsite.org
|
|
|
|
|
hi all, i have a solution with a Class Lib. project and ASP.Net 2.0 Web Site. i want to invoke certain method at the web site from the Windows Application, and also need to invoke some method at the windows application from the website.
a search for this problem, i found that i can send from the Web Site to the Class lib. either by web service or by adding whole the class lib. project as ref. to the web site and call methods or by using delegates.
Please send examples to show exactly what should i do, thanks for any help
|
|
|
|
|
I don't see how you can hope to invoke stuff in the windows app from the website, the best you can do is run a webservice, and have it set flags telling the windows app to do something when *it* contacts the web service, the web service cannot contact the windows app.
Darkman_nofear wrote: a search for this problem, i found that i can send from the Web Site to the Class lib. either by web service or by adding whole the class lib. project as ref. to the web site and call methods or by using delegates.
delegates won't work, they only work within a process. Having a reference to the class lib will allow your web app to call methods that are in that lib, but unless they modify a common data store, this will make no difference to your windows app.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks for your reply, but i've tried it using the Web Service, but what i really don't know is how to send something to the web server, my problem exactly is here i got something and i want to call certain method @ my web site application, ok using web service what is to be in this web service to forward the incoming message to the web site.
[WebMethod]
public void SendToWeb(string msg)
{
// What to do here to send to the web site
}
someone in other forum told me to do something without using a web service, by using HTTPRequest Object, as i send to my web server an HTTPRequest object as i faking something like button click or something like that, this HTTPRequest will be handled by the web server and will inkove the method of this HTTPRequest. is this right??
|
|
|
|
|
|
|
Hi Miguel Sarafana,
After reading Q? , i belive the best & easy way will be integrating with c# application. Matlab version 7.2(6b) comes with builder for .net , so u can write algorithms in matlab ( m file or mex) can be easily converted .net assemblies(dlls).
Details about matlab builder .net is here
http://www.mathworks.com/access/helpdesk/help/toolbox/dotnetbuilder/index.html?/access/helpdesk/help/toolbox/dotnetbuilder/rn/bq24_kz.html&http://www.mathworks.com/products/new_products/latest_features.html?s_cid=HP_RH_2007a
Happy coding !!!!!
Pls feel free to mail me baijumax@yahoo.com Or reply back to this thread for more info.
By
BAIJUMAX
"believe it or not , i'm always right"
|
|
|
|
|
Dear Sir,
Is there a way to create event in Matlab that will be seen/captured in C#
Thanks
Beni
|
|
|
|
|
yes, checkout this post
Happy coding
cheers
BAIJUMAX
www.baijumax.blogspot.com
|
|
|
|
|
Hi, I have a listview with some items:
ColumnHeader columnHeader1 = new ColumnHeader();
ColumnHeader columnHeader2 = new ColumnHeader();
listView.FullRowSelect = true;
listView.Columns.AddRange(new ColumnHeader[] {
columnHeader1,
columnHeader2,
});
columnHeader1.Text = "Name";
columnHeader1.Width = 150;
columnHeader2.Text = "Note";
columnHeader2.Width = 100;
List<string> items = new List<string>();
items.Add("Some Name");
items.Add("Some Note");
List<string> items2 = new List<string>();
items2.Add("Some Name");
items2.Add("Some Note");
ListViewItem item;
item = new ListViewItem(items.ToArray());
listViewProjects.Items.Add(item);
ListViewItem item2;
item2 = new ListViewItem(items2.ToArray());
listViewProjects.Items.Add(item2);
Now I have a combobox where I want to display the note text from the selected item in the listview. How can I do this? Many thanks for any help.
|
|
|
|
|
SelectedItems returns selected items. SelectedIndices gets selected indexes
|
|
|
|
|
So I'm writing an app to help me take care of a wireless network.
There are multiple APs and multiple clients.
I want to create an app that will help me diagnose various user issues.
Right now, the problem I'm having is getting any wireless info from the user. So I want to add a little feature that will give me the following info from the wireless connection:
1. The MAC Address of the AP
2. The IP Address of the AP
3. The MAC Address of all network adapters (wired and wireless) on the client's machine
4. The IP Address of all network adapters (wired and wireless) on the client's machine
And for all the network connections, I would like to grab all the accessible data like the default gateway and DNS servers and if the address is DHCP or static, etc...
I think it should be fairly easy, no?
The problem that I have been experiencing is finding the info I need to get this done. Thus far, my searches have turned up nothing. And any help/pointers would be greatly appreciated.
|
|
|
|
|
I have string that i recieve and if it is over 1000 bytes i need to split it. I checked out the String.Split() but it only splits by a paticular string or char. i also tried going through a for loop and use the substring but i couldn't get it right. could someone please show me a good way of doing this?
Thanks in advance,
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
Hi,
I think the best way will be spliting it on the basis of count, the way u have tried in a for loop. The other and better way will be trying to take LEFT most of size say "n" count, and get it split.
so, we want to split a string of 1000 char in 10 strings of size 100 char each.
First take left 100 char, the rest 900 char you can get using "Right". If u repeat this u can split it successfully.
Manoj
Never Give up
|
|
|
|
|
teejayem wrote: if it is over 1000 bytes
Did you mean over 1000 characters? In .NET, a character is 2 bytes, so you need to account for that when calculating the size.
That aside, what's wrong with
string str = "Your long string ...";
if (str.Length > 1000)
{
string firstPart = str.SubString(0, 1000);
string secondPart = str.SubString(1000, str.Length);
}
|
|
|
|
|
Check out String's Substring() method.
Cheers,
Vıkram.
Déjà moo - The feeling that you've seen this bull before.
Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
Hello My name is Guy .
I want to ask something maybe you can help me in C#.
I want to pass some Controllers & Buttons I build in Windows.Form , in to a method that can made them Enable & change there Background perhaps.
.
Any way what I Tryed all night is how to pass a Control / Button / Object to a method without ( Object Sender... , Event...) ,in to other function.
I want to take the Control object for example and send his name property trough string to a function and then to cast him into Object type or Basetype.
Something like :
this.TurnControlActive( UrlFile.Name ); // * UrlFile =// System.Windows.Forms.Control *//
and then pass in to ....
private void TurnControlActive( ....... )
{
// Here the Control / Object need to become Enabled //
}
Who to pass an Object / Control / Or how to retrieve a Control by his string name ..?
Thank a lot.
Guy D.
By the way how do I get all my controls in my form into Array ?
|
|
|
|
|
Form parent = Form1.ActiveForm;
foreach (Control c in parent.Controls)
{
c.Enabled = true;
c.BackColor = System.Drawing.Color.Blue;
c.Show();
}
I've try this eiter but it's give me only one control and I've got alot of Button and ComboBox in my Form .
Any suggestions ?
|
|
|
|
|
If the controls are contained in another control (e.g. a panel) then you must also iterate that control's Controls list:
foreach (Control c in parent.Controls)
{
DoControls(c);
}
void DoControls (Control c)
{
c.Enabled = true;
c.BackColor = Color.Blue;
c.Show()
if(c.Controls.Count > 0)
{
foreach( Control cc in c.Controls)
{
DoControls(cc);
}
}
}
|
|
|
|
|
Wow Rob it was brilliant;
Can I get your email ?
|
|
|
|
|
hi friends..
How to fire text changed event for combobox.
|
|
|
|
|
Have you tried changing the text in the ComboBox??
Seriously, why are you trying to fire this event? Why not just call it's method with a couple of faked parameters?
|
|
|
|
|
When i try to find a regular expression in a string, if the expression isn't in the string the program just gets stuck =\
how can i fix it?
example:
<br />
Match find = Regex.Match(downloadPageSource, @"(\w?\d?)+\.site\.com/access(\d+)\.jpg");<br />
if the expression isn't there the program just freezes =\
|
|
|
|
|
I have some images. I want to construct an avi file using these images. Is it possible to do it using C#.
Anyone please help me. I am badly in need of a quick solution.
Thanks in advance
Enamul Hoque
|
|
|
|