|
Yeah I see that..... I changed my code to this...
<br />
byte[] MyMsg = new byte[HeaderBegin.Length+myBytes.Length+HeaderEnd.Length];<br />
<br />
HeaderBegin.CopyTo(MyMsg, 0);<br />
myBytes.CopyTo(MyMsg, 26);<br />
HeaderEnd.CopyTo(MyMsg, MyMsg.Length+2);<br />
and I get an error saying that I do not have enough elements in my array. So how do I size my byte array to handle all of the different arrays that I need to copy into it?
Will bytesread give me a value that will resize my array correctly?
Thanks
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Hi all,
a simple question.
i need to invoke a gui from a program. i can simply do
Application.Run(myForm);
the gui is started but the problem is how do i come to the next line of the code?
regards,
rnv
|
|
|
|
|
Are you tring to load a form from your main app? To do this you do something like.
NewForm newform = new NewForm();
newform.ShowDialog();
Once it it shows the form then in NewForm dialog in LoadForm you can have it start the next line of code you want.
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
thanks,
here is what i want. i have the main class which should invoke certain Form at certain moment.
when i do
1. NewForm newform = new NewForm();
2. newform.ShowDialog();
3. DisplayStatusInfo("Form Displayed");
it shows the dialog but it does not do the next step (3).
any idea?
regards,
rnv
|
|
|
|
|
So I'm not really sure what board this belongs on, because it could be an issue with one of many things(ASP, XP itself, the VSTO document), so I figure here might be as good a place as any to start. Feel free to point me elsewhere though.
I've written an excel VSTO client, that is being spawned by a webclient. On my local machine and the machine of the developer that was programming the webclient, everything works just fine. The problem is we can't get it to work on any other machine. We've set up the .Net permissions, and all the code is compiling fine, but upon trying to spawn the VSTO document on anyone else's machine, I get this:
Error: Request for the permission of type
‘System.Security.Permission.SecurityPermission, mscorlib
Version=2.0.0.0, Culture=neutral, PublicKeyToken = b77a5c561934e089’
Failed
Obviously, I've missed some configuration toggle that VSTO/VS.NET/Something automatically did for me, but I'm stumped as to what. If anyone knows why this is happening(I know its a security issue, but I thought I'd given it permission), and can point me in the right direction, it would be greatly appreciated
|
|
|
|
|
I am getting this error message:
Visual Studio cannot start debugging because the debug target 'C:\...\.viewPDF.exe' is missing. Please build the project and retry, or the outputpath and assemblyname properties appropriately to point at the correct location for the target assembly.
Its such a silly problem, because I have to rebuild everytime before running my application, why do you think?
|
|
|
|
|
|
cassie1 wrote: I am using visual studio C# 2005 and cannot get the code below to work i keep getting an error unable to find filename(C:/Program Files/Bernie/Accounts.xls,
you're using unix slashes not dos slashes in your path.
|
|
|
|
|
Thanks for reply dan but ive tried other way still wont work it will build with the code ive put forward.and the path is right because it works with a different code in visual studio 2005 express okay.
|
|
|
|
|
Does the error message contain the path that it's trying to use? Does that correspond to where the file is stored?
---
b { font-weight: normal; }
|
|
|
|
|
|
Are you sure? What does the error message look like?
---
b { font-weight: normal; }
|
|
|
|
|
guffa thanks for help but ive found it i hadnt put a full stop in xlapp visible true.
|
|
|
|
|
|
Michael yes have tried that no joy
|
|
|
|
|
|
Hi,
In one windows form i.e. form1 I have a public variable (i.e. variable1) where it gets set to "hello"
in the other form i.e. form2 , I would like to get the value of the variable1 in form1 (i.e. form1.variable1)
how is this done please?
Thanks
|
|
|
|
|
First, don't make fields (what you call a public variable) public. They should never be exposed outside the class or its derivatives. If you do that you shoot a very large hole through the concept of encapsulation. Here are some more reasons why you should make fields private and not public[^]
Secondly, and to answer your questions: Here is an article on passing values between forms in .NET[^]. It will show you good techniques to do this.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
hi to all,
does any body knows how can i add a check box to data grid (c# win form)
i would appreciate if someone can suggest any link, articles or samples
best regards and thanks in advance
fady
|
|
|
|
|
I don't know exactly how to do it. But I can give u some limks that can be helpful to u
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/html/wnf_CustDataGrid.asp
http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx
And the other is ASP.NET article, if u can get idea from it
http://www.datagridgirl.com/rowselector.aspx
Regards,
Sandy Sekhon
|
|
|
|
|
Hello Everybody,
Can anybody tell me how to use Enterprise Exception handling block 2.0 without using any application config files. I've seen all the exampls just using config files. Our requirement is not to use config files.
Help already appreciated.
Regards
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
Hi,
I want to dispaly the current cell number (col*row) in a text box
when the user nevigate within a datagrid.
1.how can I get the current cell ?
2.which event can I use ?
Thanks very much
|
|
|
|
|
You can use the CurrentCell property and the corresponding CurrentCellChangedEvent.
|
|
|
|
|
Hi, I am making an application that simply gets all the html from a webpage and filters out the data I want. The problem is that I want a progressbar to indicate it is working (using the "marquee" style). My code looks like this;
Private void getWebData()
{
progressBar1.Style = ProgressBarStyle.Marquee;
progressBar1.Value = 100;
//simple code to get wepage...
//simple code to filter out data I want...
//put data into listbox
progressBar1.Value = 0;
progressBar1.Style = ProgressBarStyle.Continuous;
}
I thought that this would set the progressbar going, then do the work, then stop the progress bar, but instead the progress bar just doesnt do anything, although the code to get the html data does work.
Any comment greatly appreciated,
thanks!
Martin.
|
|
|
|
|
Martin23 wrote:
I thought that this would set the progressbar going, then do the work, then stop the progress bar, but instead the progress bar just doesnt do anything, although the code to get the html data does work.
If the entire form that the progress bar is on locks up, along with the progress bar not moving (i.e. nothing is redrawn on the form), then it is probably because you are running your webpage code from the same thread. The way to get around this is to run the web code on a seperate thread (although you shouldn't update your ListBox from this new thread, as that will throw errors).
Hope that helps
Cheers,
Will H
|
|
|
|