|
Ah, well spotted. A quick check shows I have three files checked into Perforce for each form, but they're "Form.cs", "From.Designer.cs" and "Form.resx".
I always add new files by hand, and know which ones to add, but maybe the ClearCase integration is adding the wrong things if you check in using the integrated tools.
That could be the problem...
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Wait, which file is that?
Whacking myform.cs takes out all of my code, myform.designer.cs takes out all the controls on the form, and removing myform.resx causes the designer to puke and shows be a blank form if i ignore it.
The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.VisualStudio.NativeMethods.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)
at Microsoft.VisualStudio.Shell.Design.Serialization.DocData.CreateNativeDocData(IServiceProvider provider, String fileName)
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
Ah, looks like you do have the same files as me checked in. Your original post mentioned something called "myform.cs [design]" which I thought was some sort of temporary intermediate file or something.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Sorry, that was the graphical representation of hte design on the tab list.
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
By reverting to good pre change code and reapplying my updates one at a time and checking in I managed to find the problem.
The ToolStripContainer didn't present its size/anchoring in the Designer (a separate rant), so I was editing it in myform.designer.cs. The container had 1 toolbar and 1 menu (both with the grip hidden to keep them from being moved), but the container was 2.5 rows high. The toolbar and menu were both 24px tall, so I set the containers height to 48. That caused it to puke. I increased it by one pixel to 49 and it was happy.
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
Ah - glad you figured it out. I'll have to remember to watch for that in future...
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Yeah. I probably need to find the time and test this with 2k10 and see if it's still present. Reporting a 2k8 bug at this point is probably futile.
The European Way of War: Blow your own continent up.
The American Way of War: Go over and help them.
|
|
|
|
|
hi all,
Im trying to read word document in asp.net 1.1 with following code.
added required ddls too.(i.e Microsoft Office 10.0 Object Library,Microsoft Word 11.0 Object Library)
but it is throwing error {Access is denied}
plz help!
thanks in advance!
Code:
Microsoft.Office.Interop.Word.ApplicationClass obj_app=new Microsoft.Office.Interop.Word.ApplicationClass();
Microsoft.Office.Interop.Word.Document obj_doc=new Microsoft.Office.Interop.Word.Document();
object readOnly = false;
object isVisible = true;
object missing = System.Reflection.Missing.Value;
object filepath=_FilePath;
obj_doc=obj_app.Documents.Open(ref filepath,
ref missing, ref missing,
ref missing, ref missing, ref missing,
ref missing, ref missing, ref isVisible,
ref missing,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing);
obj_doc.Select();
string m_Content="";
m_Content=obj_app.Selection.FormattedText.Text;
obj_doc.Close(ref missing,ref missing,ref missing);
obj_app.Quit(ref missing, ref missing, ref missing);
Response.Write(m_Content);
|
|
|
|
|
A couple of things missing here
1 - why did you not ask in the ASP.NET forum
2 - what is the filepath ?
3 - why are you trying to read a word doc within an ASP.NET site ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hello.....
I want to merge 2 or more byte[] in to a single byte[],plz suggest a C# code for this .
Thanx.
|
|
|
|
|
Create a new array of the right size and copy the two arrays into place.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Array.Copy is what you need - something like
byte[] a = new byte[] { 0, 1, 2, 3 };
byte[] b = new byte[] { 4, 5, 6, 7 };
byte[] c = new byte[a.Length + b.Length];
Array.Copy(a, c, a.Length);
Array.Copy(b, 0, c, a.Length, b.Length);
foreach (byte item in c)
{
Console.WriteLine(item);
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
hi , i'm project tic tak toe by tree binary in ds
plz help me
|
|
|
|
|
Mostafa&Messi wrote: hi , i'm project tic tak toe by tree binary in ds
Good for you - I'm proud of you.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Read the sticky post on top of this forum. As shocking as it could be, we do not offer to do your homework here.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
Mostafa&Messi wrote: hi , i'm project tic tak toe by tree binary in ds
Weird name, dude. Good to meet you, I'm Christian
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
|
Damn - I'm looking for the "Great answer" link. Good answer just doesn't cut it here.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
*grin* I was surprised it was still open after two replies.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Mostafa&Messi wrote: tree binary
Nah, you need to go recursive.
|
|
|
|
|
Make that game three dimensional. Then you have twice the chance of getting help from someone here. You also have exactly the same chance of getting help from someone here
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
Mostafa&Messi wrote: hi , i'm project tic tak toe by tree binary in ds
plz help me
So what's your problem then? It doesn't sound so bad!
|
|
|
|
|
Hi,
I want to get the text of an html page using a simple application in c#?
If there are nested elements
ie.,
<Table>
<TR>
<TD>ABC
</TD>
<TD>1
</TD>
</TR>
<TR>
<TD>XYZ
</TD>
<TD>2
</TD>
</TR>
</Table>
How can I get the text(bold) directly without using a foreach loop?
ie.,
<Table>
<TR>
<TD>Work
</TD>
<TD>1
</TD>
</TR>
<TR>
<TD>Cost
</TD>
<TD>2
</TD>
</TR>
</Table>
How can I change the ABC to Work and XYZ to Cost,
such that User should see directly the replaced text(i.e., Work and Cost instaed of ABC and XYZ).
|
|
|
|
|
I assume you have a web browser control you're working with. You can access the HTML from that control, and you can use all sorts of methods to change the HTML, from replacing the document with an edited one, to using the Document object to manipulate the HTML
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|