|
Hi.
the following line looks for the character '-' in the string.
the flag checks whether it is true or not.
then it checks where the character is found, and the substrings are taken into other strings.
bool flag=false;
flag=sample.Contains("-");
if(flag==true)
{
int m=sample.IndexOf("-");
string s1 = sample.Substring(0, m); // s1 will contain Object1,Item1,Item2
sample = sample.Remove(0, m+1); // now the sample will contain
//Object2,Item1,Item2-Object3,Item1,Item2
}
Hence you can repeat the procedure to store the other substrings, maybe in a string arraylist.
i hope this helps.
keshav kamat
siemens india
|
|
|
|
|
Alternatively,
one can use the Split funtion depending upon a special character.
string[] string1=sample.Split("-");
the number of members are identified by the string1.Length property, which will give you the count of the members in the new string after the split.
Keshav Kamat
India.
|
|
|
|
|
Hi all !
Tell me please if anybody use Add-in technology for Ribbon in MS Word 2007
How I can create a new button in ribbon using Add-in in document-level (not in application level).
|
|
|
|
|
I'm trying to connect to an access DB remotely. I'm using a web server to access this DB. Is it possible to connect to an access DB in this way??
Or I must use someting else like SQL server for doing that?
|
|
|
|
|
You need write permission on the webserver, which leaves you with a pretty unsafe situation. I'd recommend something like SQL Server or creating a webservice which manipulates your acces database server side...
|
|
|
|
|
i am using a web service which manage this connection string:
EncoderData.DataManager.Constants.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" +
"Data Source=\\\\" + host + "\\data\\BroadcastingData.mdb";
where "host" is the computer name of the remote server.
is that a right connection string ??
thanks in advance !
|
|
|
|
|
That is i have set access rights for windows login users but i need do to the code for login windows users please send me some idea about this concept if u have send me the code
|
|
|
|
|
|
This doesn't make any sense at all. We have no idea what you're trying to do.
wrote: i need do to the code for login windows users
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
dears i want to create setup project that would make a setup file to be installed on windows system. so i created the project by reading the help but it finally did not work. it creates a .msm file .how can i get setup file that should run by double click. and do the task which is assigned to it...
thanks in advance
|
|
|
|
|
Hy
I have a problem.
How can I do if I have a textbox on a form and I need to put on front a panel who is transparent.
I don't know how can I make the Panel transparent.
Any suggestion?
10x
|
|
|
|
|
sets it's(panel's) back color to the color of parent.
|
|
|
|
|
I put that but I have access to the textbox component and I don't want that
|
|
|
|
|
okey!..
according to desired behaviour or your code hide either TextBox or Panel
myTextBox.Visible=false; or myPanel.Visible=false;
|
|
|
|
|
It's not OK.
I need a panel to front of textbox.
I need to see the textbox when the panel is steel there (invisible) on front of textbox.
|
|
|
|
|
i am unable to understand scenario.what's you need and what do you want.
rest for your information.
a child control can not be seen if its parent is invisible.you can do one thing.when your parent control is getting hide remove your child from there and add it on parent of parent control.
|
|
|
|
|
You have a big problem. A control that has it's BackColor set to Transparent is NOT really transparent. It mearly tells the control to take on the background settings of it's parent container.
If you set the BackColor of the Panel to Transparent, only the background of the form will show through. Controls sitting behind the Panel will NOT show up!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi all, is it possible to pass parameter inside a web user control from ASPX pages, and how could i do to retrieve this value inside the web user control? Thanks a lot. vamsi
Thanks in advance
|
|
|
|
|
Hi,
Hope every one is doing fine... well I need a little help... the scenario at hand is that I need to filter the exe files and protect some of them depending on their internal names or file names, for that I need to handle some event before the exe is spawned so that I could check the name and then grant the access if the name is not in the list of protected applications...
Now is there any way in .NET to work around the issue... the current implementation is a kernel mode driver... and I am looking for a .NET solution... can any body help.
Thanks,
Kind regards.
|
|
|
|
|
There is no .NET solution. The only way to do this is by overriding the behavior of the Loader in the Kernel, which you've already found.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I am trying to call a function in a C# program from a native Dll. The siganture is -
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
I think I know that DWORD is an Int32 and LPVOID is a long pointer, so I'm using long* for that, but I'm not sure what type HINSTANCE should be. Can anyone tell me what this means.
Thanks for any help.
Declan.
|
|
|
|
|
System.IntPtr
Pax Domini sit semper vobiscum
|
|
|
|
|
Hello everybody.
In my C# project I use dataGridView.
How can I set a row headers text?
Thanks in advance.
|
|
|
|
|
if you have made a proper tables style then for every column there is a property Header text other wise the name of column will appear as header for your view
|
|
|
|
|
Yes I know how to set column Headers text.
But propertie RowHeadersVisible for my dataGridView is set to true.
And I want to set for all rows header text.Is this possible?
|
|
|
|