|
In a C#
WINDOWS BASED APPLICATION
I have GroupBox,I want to remove its borders or make them invisible whats the way to do it
Ankit Aneja
"Nothing is impossible. The word itself says - I M possible"
|
|
|
|
|
You might want to use a panel instead.
|
|
|
|
|
Or you could override the OnPaint event of the group box and make your custom painting, but this is some kind of hard.
|
|
|
|
|
Not really. But it would be simpler to use a Panel and override the Onpaint to draw the label text.
|
|
|
|
|
Can sm one tell me which on is better from the programmer's point of view, using SIP or H.323 or the combination of these, considerig feasibility aspect in wireless communication?
|
|
|
|
|
Hello Everyone,
Recently i want to convert an existing VB application to Visual Studio.Net(2005) using c#, Hibernate and Interbase database.
Now i m facing problem with the Hibernate connection.
I put the following code for Hibernate connection:
<nhibernate>
<add key="hibernate.connection.driver_class"
value="NHibernate.Driver.InterBaseDriver"/>
<add key="hibernate.dialect"
value="NHibernate.Dialect.InterbaseDialect" />
<add key="hibernate.connection.provider"value="NHibernate.Connection.DriverConnectionProvider" />
<add key="hibernate.connection.connection_string" value="Database=C:\ProgramFiles\Database\CLASS.gdb;User=SYSDBA;password=abcd" />
</nhibernate>
But this code generate an error.
Can anyone help me solving this problem?
Thanks in advance.
Robi
Software Programmer
|
|
|
|
|
Hello
I´m working on a project that implements a SQL server 2005 DB as the main DB. Users should be able to extract an given project from the main server DB and "copy" it to there own local machine and work on it there (offline). When they return to work, they should merge it with the main DB.
And I hoped it would be possible to show conflicts through vs.NET so that the user can solve them.
I´m wondering if anyone out there has ever implementet a solution with Merge replication from SQL Server 2005 in Vs.Net 2005.
And if this could be the solution to my problem?
Thanx
Spaz
|
|
|
|
|
Please don't cross post.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
i need good materials in oop with c# from begining to advanced
ma_refay
|
|
|
|
|
OOP isn't C# specific. Google "OOP" and there's a wealth of information.
|
|
|
|
|
The problem is that I cant paint a part of an image on the screen if its not rectangular. Instead the whole pic is painted which I don't need....
Secondly when I draw on the picture Box its not visible on it. Instead it appear beneath the picturebox.
ANd thirdly how can I save the edited image from the sceeen...... HEres a link 4 the demo project which is a sample 4 my project...
http://www.salonstyler.com/download.php
Any help making this type of software........... Wht will u recomment me should I use picturebox or simply paint the image on the screen??? Thanx in advance
|
|
|
|
|
I hope I understand your problem correctly,
You may find it easier to build your image up from a Bitmap object then set it to the PictureBox.Image property. Then you can easy save the image.
If only part of the image has been updated you can call the PictureBox.Invalidate Method. You can pass this a Region or Rectangle so only that part of the control is repainted.
|
|
|
|
|
samreengr8 wrote: Wht will u recomment me should I use picturebox or simply paint the image on the screen???
Always paint it yourself unless your needs are trivial
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
hi
i have three things
1. a client machine connected to internet
2. webserver where my data exits
3. a local server (my client is not connected to server)
now i need to pick a file from local server and put in my webserver
this should happen when a client machine requests.
i am able to copy a file from webserver to a local machine but network issues rises up if i put the same logic in web server how to over come
do i need to use remoting to avoid this situation
if it is how ?
|
|
|
|
|
Hi everyone
I'm having a problem where I want to retrieve data from a MS Access database using ADO.NET. I'm using a 1D dataset to get the data from the database and now I want to further copy the data from the dataset into a string array. I've tried several things but nothing seemes to work out. Plaese give me some suggestions on have this could be done, maybe I shouldn't use a dataset at all?...
Best wishes
Al
|
|
|
|
|
|
Hello all:
I have this code below to display whatever the Browse is selected. For example, if user select C:\cmd.exe. I would like to add the "*" after backward slash. So it would be C:\cmd.exe\*.
OpenFileDialog dlg = new OpenFileDialog();
if (dlg.ShowDialog() == DialogResult.OK)
{
tb_batchparams.Text = dlg.FileName;
}
System.Diagnostics.Process proc1;
System.Diagnostics.ProcessStartInfo procInfo = new System.Diagnostics.ProcessStartInfo();
procInfo.WorkingDirectory = "C:\\dcm\\bin";
procInfo.FileName = "scu.exe";
procInfo.Arguments = tb_batchparams.Text // how do I include "\*" so it would be C:\dcm\bin\scu.exe\* instead.
proc1 = System.Diagnostics.Process.Start(procInfo);
Thanks,
eyungwah
|
|
|
|
|
use @"\* " or "\\* "
SkyWalker
|
|
|
|
|
I am doing a project and I just created a user control(consist of text boxes, labels and combo boxes) that added in more than one tab pages. I am being able to add the user control in the tab pages. e.g. The same user control added in three tabpages. But I would like to save the value of the text boxes of the user controls added in the respective tab pages. how could i?
|
|
|
|
|
How do you mean - save to where ? To a file ? To each other ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
|
Expose the TextBox.Text property as a property of your UserControl . eg
public string TextBoxText
{
get { return textBox1.Text; }
set { textBox1.Text = value; }
}
|
|
|
|
|
I created a user control that contains labels, textboxes and comboboxes and added it in my tabpages(4 tabpages) dynamically through programming.
I created a class named clsProject and declared a read write property Name from where textboxes will get there values. e.g
"txtName.Text = clsProject.Name"
My Question is :
I would like to display it in all my tabpages. But how could I? I would like to do this in following manner.
tabcontrol1.tabpages1.textName.text = clsProject.Name
tabcontrol1.tabpages2.textName.text = clsProject.Name
So that I can save the corresponding tab pages text box control values
in a routine name Save(), if the user changes the Name of for each tabpages.
e.g.
Void Save()
{
clsProject.Name = tabcontrol1.tabpages1.textName.text
clsProject.Name = tabcontrol1.tabpages2.textName.text
}
Can you tell me how can I resolve this problem ?
|
|
|
|
|
I created a user control that contains labels, textboxes and comboboxes and added it in my tabpages(4 tabpages) dynamically through programming.
I created a class named clsProject and declared a read write property Name from where textboxes will get there values. e.g
"txtName.Text = clsProject.Name"
My Question is :
I would like to display it in all my tabpages. But how could I? I would like to do this in following manner.
tabcontrol1.tabpages1.textName.text = clsProject.Name
tabcontrol1.tabpages2.textName.text = clsProject.Name
So that I can save the corresponding tab pages text box control values
in a routine name Save(), if the user changes the Name of for each tabpages.
e.g.
Void Save()
{
clsProject.Name = tabcontrol1.tabpages1.textName.text
clsProject.Name = tabcontrol1.tabpages2.textName.text
}
Can you tell me how can I resolve this problem ?
|
|
|
|
|
If you want them to all be the same, then make a static property that stores the string, and a static array of textboxes, which each textbox adds itself to. Then, changing it in one instance, will change it in all.
The other option is to set up a delegate, so each control lets the parent form know when it's changed, and it sets them all, with the sort of code you have above.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|