|
You can put panel with normal font on tabpage - so you will get big font in tabs and normal font for the rest of the controls.
DevIntelligence.com - My blog for .Net Developers
|
|
|
|
|
Hi
I am a little new in the c# business so I would like 2 ask u people for a good C# Programming Exercises source so that I could train the knowledge while reading about it
thx
|
|
|
|
|
inside C# second edition is a really good C# book to buy. Beyond that, there are heaps of examples on this site. Why not work through the book, then download some samples, and examine them after trying to impliment the same hting yourself ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I use this method to copy a part of the screen to a bitmap, and it works well, except for semi-transparent windows, that simply aren't captured.
So I found on the net that the parameter CopyPixelOperation.CaptureBlt would allow to capture semi-transparent windows too, but it simply doesn't work. The captured bitmap is black. I work on Windows XP, so that parameter should be supported.
Here is the code I use
gr.CopyFromScreen(new Point(Control.MousePosition.X - 5,
Control.MousePosition.Y - 5),
new Point(0, 0), new Size(11, 11),
CopyPixelOperation.CaptureBlt);
Any idea or work-around?
___________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA]
|
|
|
|
|
It may be the file format - try saving it as a PNG or GIF to use transparency properly
|
|
|
|
|
The bitmap is displayed on the screen.
Anyway I tried to create a 32bit ARGB bitmap, but id doesn't work: always black.
Thanks for your reply.
___________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA]
|
|
|
|
|
Not 2 weeks ago, there was an article / hack on removing the title bar, form's caption bar, or whatever you want to call it but not the title bar buttons, Im not talking about borderless or fixed window types - I guess, it was a hack.
Think Microsoft Money's interface, its still movable, the title bar is there.. but it's not, you can only do this in Visual Studio 2005.
I know this a little vague - but it's all I got.
Anyone know the article im speaking of ?
Cheers
|
|
|
|
|
I hate the fact that I can't search for Visual Studio 2005 articles ONLY. Can CP possibly add the simple functionality ?
Cheers
|
|
|
|
|
|
Hello,
I want to keep the personal details including a picture of a user and store this information in a database and display later.
I binded the textboxes to a datatable but could not bind the picturebox and the image.
I tried the code below.. How can I handle that??
string selectStudent = "SELECT * FROM Students "; daStudent = new SqlDataAdapter(selectStudent, conn); dsStudent = new DataSet();
cbStudent = new SqlCommandBuilder(daStudent);
daStudent.Fill(dsStudent, "Students");
pictureBox.DataBindings.Add("Byte[]", dsStudent, "Students.Photo");
|
|
|
|
|
You can bind picturebox using Format event
<br />
...<br />
...<br />
Binding binding = new Binding("Image", dsStudent, "Students.Photo");<br />
binding.Format+=new ConvertEventHandler(binding_Format);<br />
pictureBox.DataBindings.Add(binding);<br />
And in Format event you must convert byte [] array to Image
<br />
private void binding_Format(object sender, ConvertEventArgs e)<br />
{<br />
using(MemoryStream stream = new MemoryStream((byte [])e.Value))<br />
{<br />
e.Value = Image.FromStream(stream);<br />
}<br />
}<br />
DevIntelligence.com - My blog for .Net Developers
|
|
|
|
|
Hi all,
I am new to C#, I have learned how to drag a datasource table to Form and attach Binding navigator to show the data. Everything is working nice. But when I add, change or delete something and after that when I click SAVE button, I always see that nothing is being updated within the database. I have no clue what may be the reason. Can you help me please.
Thanks all,
Huss. Emran
|
|
|
|
|
Hello there,
I've been trying to solve the following problem for quite a while with no success :-/
Here is the situation: my form contains a multiple-selection ListView control and a simple textbox. The textbox shows the concatenation of all the selected items (the first sub item of each ListViewItem).
Now here is my problem - when I drag-and-select items in the list view (which can get REALLY big ; about 500 items), the SelectedIndexChanged event fires whenever a new item is selected. Thus, the process of concatenation occurs from the beginning at each time. For example, if I drag 10 items, the event fires 10 times, but each time the count of selected items grows, and thus the concatenation occurs for 1, 2, 3, 4, 5 and so forth until 10. Same goes when dragging over 100 items.
I know string concatenation is heavy but that is not the problem here.
I can't find way to tell which item was selected last.
ListView.FocusedItem won't help since I'm not using the keyboard nor clicking on specific items.
Please help…
|
|
|
|
|
Did you try using the SelectedItems[^] property instead? You can then simply use the last item in the collection returned by that property.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
but what if I drag upward?
|
|
|
|
|
hi there ,
in my program i have the Order Form (win Form)
in this form i have some textbox and grid
know the grid is bound the a dataset on the grid i have some filds like productID,Qunataty,UnitPrice,Total
i am filling all the data on the Form and the order is insert well to the db
now if i want to change something in this particular order i select the order detiles from the db by OrderId num
an all the order detiles are displayd on the Form
the problem is when i want to add products to the order
the product detiles that is bound to the datagrid is updated but the OrderId is not
this is the code :
if(dsOrdersDetiles1.HasChanges()==true)
{
AdOrdersDetiles.Update(dsOrdersDetiles1.Tables[0]); //only the data in the grid is update but i need the OrderId to be update in the same row .
}
how can i update order detiles when the filds are not bound ?
|
|
|
|
|
I ve class library ( installer class ) , i load embedded resource on hard desk to execute within setup. breifly , installer class execute 3 msi as embedded resources .. it was working but now it gives me error that there is another installation in progress and i ve to finish this installation before the current one.
this function that i ve to load MSI files:
void LoadMSI (string sResourceName)
{
if(!Directory.Exists (Context.Parameters ["Temp"]))
Directory.CreateDirectory (Context.Parameters ["Temp"]);
FileStream stmTemp=new FileStream (Context.Parameters ["Temp"]+sResourceName,FileMode.Create);
Stream sOurFile=Assembly.GetExecutingAssembly().GetManifestResourceStream (Assembly.GetExecutingAssembly ().GetName().Name+"."+sResourceName);
EventLog.WriteEntry("CRM","Length Of :"+sResourceName+" is "+sOurFile.Length.ToString ());
BinaryWriter bw=new BinaryWriter(stmTemp);
BinaryReader br=new BinaryReader (sOurFile);
byte[] bTemp=new byte[(int)sOurFile.Length];
bTemp=br.ReadBytes((int)sOurFile.Length );
br.Close ();
bw.Write (bTemp);
bw.Close();
stmTemp.Close();
Process pTemp=Process.Start (stmTemp.Name );
pTemp.WaitForExit ();
}
and this install override :
public override void Install(IDictionary stateSaver)
{
// scenario : load files in temp folder then execute it
LoadMSI ("DBSetup.msi");
LoadMSI("EmpowerServiceSetup.msi");
LoadMSI("EmpowerWebSetup.msi");
}
Amal ElHosseiny
|
|
|
|
|
Hi
I try to delete my Temporary Internet Files using C# Code.
I thought.. no problem, but the only file that was found is the desktop.ini...
No other files in that Directory..
<br />
private void button1_Click(object sender, EventArgs e)<br />
{<br />
<br />
string dir= Environment.GetFolderPath(Environment.SpecialFolder.InternetCache);<br />
<br />
foreach (string fileName in Directory.GetFiles(dir))<br />
{<br />
File.Delete(fileName);<br />
}<br />
}<br />
|
|
|
|
|
Under what user account are you running the code? Each user account have their own cache folder for Internet Explorer.
---
b { font-weight: normal; }
|
|
|
|
|
Hi
It's an account where the User is in the administrator group.
|
|
|
|
|
Are you sure? Check the contents of the Environment.UserName property.
---
b { font-weight: normal; }
|
|
|
|
|
Have you looked under C:\WINDOWS\TEMP\Temporary Internet files?
|
|
|
|
|
|
I've been trying to find some sort of Wrapper DLL for CAPI 1.1/2.0 functions for C#/.NET framework but I couldn't find anything of the sort.. anyone have a clue where I can begin to look? I really don't want to dive into the quagmire of developing my own DLL for this stuff.
Any help is very much appreciated, thanks
Got a coding problem? Hand it to the CodeDevil!
|
|
|
|
|
Hello everybody...
I have a TCP/IP client/server chat application.I want to add voice chat feature to my application.What is the start point ?
How can I implement this feature in c# ? How can I implement audio streaming in c# ? Please guide me.
Note : My application works on LAN and is not on internet.
Best Regards,
XironiX
[ _ Always there is another way _ ]
|
|
|
|