|
Hi.
Was wonder if it is possible to take an argument at the point of installation. That I can do, the question actually being if that value the user enters can contain spaces. Works wonderfull aslong as you enter single word values.
Thanx in advance
He who laughs last is a bit on the slow side
|
|
|
|
|
Hi
I work with Framework 2.0 (c#).
I do not know how to dynamicaly change ForeColor of a row in DataGridView depending on value of one column in grid which changes dynamically too.
When I tried to use DataGridView.CellFormatting event only cell where the value is changed has the right forecolor. However other have the old one.
After selecting and deselecting other cells in the row they have right color.
AlternatingStyle is not good because there are more than two kind of colors.
Which event do I have to use and which method call in order to refresh a whole row?
Before (in Framework 1.1) I did it by creating columns inheriting from my own class where method paint was overriden. However I would like to use new features in F 2.0.
Thanks
Ela
|
|
|
|
|
e_LA wrote: When I tried to use DataGridView.CellFormatting event only cell where the value is changed has the right forecolor
I think you're close. You can get the rowindex from this event and change the cells in the row.
only two letters away from being an asset
|
|
|
|
|
Sorry but I do not understand. Move to others cells?
|
|
|
|
|
I did something like that in formattingCellEvent
myDataGridView.Rows[e.RowIndex].Cells[5].Style.ForeColor = e.CellStyle.ForeColor;
Just fifth cell for example ....
and now it works
....very strange
|
|
|
|
|
It doesn't work if I stay in the same row (I do not change the row) - for example by pressing TAB not ENTER.
I think I should return to the previous version with overriding Paint event in custom type column
|
|
|
|
|
I don't understand what you are trying to do and what you are doing. Maybe a code snippet would be helpful. Once you change the color of a cell it doesn't matter what else you do.
only two letters away from being an asset
|
|
|
|
|
Hi all.
I'm working with Observer pattern in C#. I want to show the modifications in all clients windows conected. The only way y have found to do this is using a timmer which refresh the clients windows. In this timmer I do the call to the update.
Some one knows another way to do this with no timmer??
Thanks.
_mistika_
|
|
|
|
|
Why don't you have the client windows subscribe to an event that tells them when a change has been made, the client window's event handler will then update themselves.
|
|
|
|
|
2-way Databinding will show changes in the fields when the underlying data changes.
|
|
|
|
|
Hi,
We already have a windows service set up to write to binary file for "our" custom events. Need to translate this binary file into comma delimited text file - how would we go about doing that? Can we just some built in VS2005 functions?
any ideas/thoughts much appreciated.
Thank you for your time.
|
|
|
|
|
Read the binary file, convert the data into text base on whatever format specification that your system employ, write the file into the CSV file.
Or
Write both binary and CSV during your "normal operation".
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
Hi All,
I am using OPENROWSET to copy data from an oracle server table to my local SQL Server table using OLE DB. I fired the query on the SQL Query analyzer and it worked fine. But when i tried to run the same query from VS.Net 2003, ie from my Windows Service project, it didnt copied the data. But it also didnt fired any exception. So, if any one knows where i am going wrong, please notify me.
Thanks in Advance.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|
|
for geting data from DataTable, I use class:
Infragistics.Excel.Workbook wb = new Infragistics.Excel.Workbook();
wb.Worksheets.Add("UslugeTransporta");
...
and for exporting in excel, I use method:
Infragistics.Excel.BIFF8Writer.WriteWorkbookToFile(wb, filename);
but, I dont't know how to insert picture intop excel file
Mirjana
|
|
|
|
|
hi
Can any one help me to find the logic for polygon intersection.
Thank you,
regards
Praveen
|
|
|
|
|
|
i want to read .ini files with c# i import
using System.Runtime.InteropServices;
and i wrote these
[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section,
string key, string def, StringBuilder retVal,
int size, string filePath);
StringBuilder stb = new StringBuilder(250);
GetPrivateProfileString("HATALAR", key, "", stb, 250, "C:\\Documents and Settings\\.......");
i want to use stb it gives me no error but it can't find any thing.my path, key section are true.do i have to import something else? or what must i do?
|
|
|
|
|
There's nothing wrong with your code, I've just tried it (see below) and it works fine.
using System.Text;
using System.Runtime.InteropServices;
[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section,
string key, string def, StringBuilder retVal,
int size, string filePath);
StringBuilder stb = new StringBuilder(250);
private void Form1_Load(object sender, System.EventArgs e)
{
GetPrivateProfileString("mySect", "item", "def_", stb, 250, @"c:\temp\myfile.ini");
stb = stb;
}
I set a breakpoint on the stb = stb; line, and used quick view to look at the object - my INI file data is there.
Therefore... double check the path to your INI file, double check the INI file is in the correct format. My enable files looks like this:
[mySect]
item=notDEFAULT
Hope that helps.
- Dy
|
|
|
|
|
Hi.
How can I put a file (wav file) in DB.(SQL Server 2005)
Isn't it such:
Read the file as stream and insert it in a field of type binary?
Yes?
How?
Best wishes
|
|
|
|
|
Read the data into a byte array from your stream before using it as a parameter to your stored proc / query.
Regards.
modified 17-Jul-19 21:02pm.
|
|
|
|
|
Hi,
I am trying to create a new Visual C#->ASP.NET web application project.
I am getting the error:
"Project "Webapplication1" could not be opened because the Microsoft Visual C#.Net compiler could not be created. Loading the .projdata file failed or the disk is full".
I googled the error and reinstalled .net framework and VS.NET 2003. but it is of no use, still i face the same problem.
Thanks
|
|
|
|
|
Please check the following code:
string myHost = System.Net.Dns.GetHostName();
IPHostEntry localhost = Dns.Resolve("localhost");
client.LocalIPEndPoint = new IPEndPoint(System.Net.Dns.GetHostByName(myHost).AddressList[0], 5060);
Is it ok if I use the above code for Windows Mobile Application , VS 2005.
Right now i am testing with emulator causing problem to register with SIP Server.
Please give the solution.
|
|
|
|
|
It's pretty unlikely that your DNS server(s) will actually have an entry for your hostname, so that's likely to be why it's failing.
If you don't care which network interface gets used, I'd just use IPAddress.Any.
Windows Mobile 5.0 adds something called the AutoBind Layered Service Provider which automatically binds a socket with 'any' specified to the network interface that the Connection Manager picked for it. See here[^] for more details (sorry, it's a blog post, there doesn't seem to be any proper documentation on this). In my own testing I found that this does not rebind the socket if the local address changes, for example if a GPRS or other packet radio-type connection drops and is reconnected; in this situation you have to close and reopen the socket.
|
|
|
|
|
Hello,
is it possible to display a Form on a client? I have a client which makes an remote call on the server and in some cases the server want to display an dialog.
Regards
Hansjörg
|
|
|
|