|
HI,
yes it's by default
when i expand the ChildForm it's still cover the MenuStrip (not COvering so that it can not been seen but they get mixed togther, as now the ChildForm has The "ParentForm" Manustrip,
i'd like to expaned only just below the MenuStrip
Either way THNKS
and i will change from "Father" to "Parent" more accuret
kobkob
|
|
|
|
|
This is the functionality of MDI forms. The menu of the MDIChild gets merged with the menu of the MDIParent. The form isn't hiding behind the menustrip. This is how it works if you maximum an MDIChild. No, you can't change it.
|
|
|
|
|
Thanks
have a great Day
kobkob
|
|
|
|
|
HI,
I found here a MDI wizardinstaller,
i did every thing needed, but when i try to create a new projct of
MDI App i get thid error :
"File name or Class name not found during automation operation"
i'm using MS VS 2005
in the realse folder of the MDI wizard i found the :
CSharpSDI_VS2005.vsz
CSharpMDI_VS2005.vsz
files
Did anyone encounterd that kind of froblem?
and if u can give me another View of MDI (HOW TO & etc.)
a Link Or another MDI Wizard (Maybe an MS One, cause i did not found)
THNKS
kobkob
|
|
|
|
|
"Hashtable[]" is return object, I hope it return XmlAttribute object.
Which method need I to override?
|
|
|
|
|
You want to use the Dictionary class, which uses generics to specify type. Or if you know it's an XmlAttribute you can either derive from the Hashtable class and force the cast in there, or cast it yourself.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi friends
How can I create a communication between two client that have invalid IP, with a server that has valid IP (like a mirror)?
|
|
|
|
|
If their IP is invalid, no-one can.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
The two clients have server IP (it is valid) and connect to it, and server must create a communication between them (with two different ports).
How server can do ihis?
|
|
|
|
|
Ah... What was invalid then ?
The way to do this, is that the server sends each client the other client's IP address, then they can talk directly.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello Every body,
I had develop an desktop application in c# with dotnetframwork 2.0. The application is working fine but i am facing problem in crystal report.
I am getting the following error message :
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.Runtime.InteropServices.COMException (0x800736B1): Retrieving the COM class factory for component with CLSID {11BD5260-15B6-412D-80DB-12BB60B8FE50} failed due to the following error: 800736b1.
at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
--- End of inner exception stack trace ---
at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
at alokInventorySystem.outsideDelhiCustomerInvoice..ctor()
at alokInventorySystem.printInvoice.printInvoice_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
alokInventorySystem
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/AspDotNet/AlokInventorySystemSetUp/alokInventorySystem.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
CrystalDecisions.Windows.Forms
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.51014.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/10.2.3600.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll
----------------------------------------
CrystalDecisions.Shared
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.51014.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Shared/10.2.3600.0__692fbea5521e1304/CrystalDecisions.Shared.dll
----------------------------------------
CrystalDecisions.ReportSource
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.51014.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportSource/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll
----------------------------------------
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
CrystalDecisions.CrystalReports.Engine
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.51014.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/10.2.3600.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll
----------------------------------------
CrystalDecisions.ReportAppServer.CommLayer
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.9700.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box
Regards,
rahul saini
|
|
|
|
|
This error raises when you use installed application? If yes, have yo included Crystal Reports Merge Module? If not you, the cause maybe this.
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
Hi,
Sorry I was out of town.
Actually this error occur when the report is generated not at the time of installation. I was working fine but as the system reboots this problem occurs at the time of report generation.
Regards,
rahul saini
|
|
|
|
|
public ArrayList listcht = new ArrayList();<br />
byte[] comparar = new byte[10];<br />
<br />
comparar[0] = 0x57;<br />
comparar[1] = 0x33;<br />
comparar[2] = 0x58;<br />
comparar[3] = 0x20;<br />
comparar[4] = 0x56;<br />
comparar[5] = 0x69;<br />
comparar[6] = 0x73;<br />
comparar[7] = 0x69;<br />
comparar[8] = 0x6f;<br />
comparar[9] = 0x6e;<br />
listcht.Add(comparar);<br />
<br />
<br />
comparar[0] = 0x57;<br />
comparar[1] = 0x33;<br />
comparar[2] = 0x58;<br />
comparar[3] = 0x31;<br />
comparar[4] = 0x76;<br />
comparar[5] = 0x73;<br />
comparar[6] = 0x31;<br />
comparar[7] = 0x48;<br />
comparar[8] = 0x61;<br />
comparar[9] = 0x63;<br />
listcht.Add(comparar);<br />
<br />
comparar[0] = 0x57;<br />
comparar[1] = 0x33;<br />
comparar[2] = 0x58;<br />
comparar[3] = 0x43;<br />
comparar[4] = 0x75;<br />
comparar[5] = 0x73;<br />
comparar[6] = 0x74;<br />
comparar[7] = 0x6f;<br />
comparar[8] = 0x6d;<br />
comparar[9] = 0x4b;<br />
listcht.Add(comparar);<br />
}
The problem here is the comparar[] array byte can't assign the new values
why? they maintaine the old values.
well, the sort soluction is redeclare the array
|
|
|
|
|
When you add the array to the list, it's not copied. The list is just a list of references, and you add the reference to the array, not a copy of the array.
You add the same array three times to the list, so all the items in the list will be the same actual array. When you change the contents of the array, it will change the contents of all items in the list, as they are all the same object.
---
single minded; short sighted; long gone;
|
|
|
|
|
Good Day Gents/Madam,
I am wondering if there is a way to convert a certain file(.EXE,.JPG) to Binary/Byte and put them back together?
For example, I have a certain Picture.jpg. I want to convert it to binary/Byte, and save it as a TEXT FILE. Now I want to take that TEXT FILE and convert it back to JPG.
Is this possible? If it is, is the proccess of converting a JPG similar to converting other file types like .EXE?
Thank You for your time.
-- modified at 1:51 Saturday 13th October, 2007
|
|
|
|
|
Ian Uy wrote: I am wondering if there is a way to convert a certain file(.EXE,.JPG) to Binary/Byte and put them back together?
Yes, use CopyFile(...)[^] the new copy of the file is converted into binary. To convert back to .exe or .jpg format use CopyFile(...) in reverse.
|
|
|
|
|
I was thinking of doing some manipulations with the byte/binary stream before saving them as a text file.
So I need to have them in the memory or in a Byte type.
|
|
|
|
|
Ian Uy wrote: So I need to have them in the memory or in a Byte type.
As Mav said all files are written in bytes. I suggest you study the subject of files more to gain a better understanding.
|
|
|
|
|
Hi!
Not quite sure what you mean by "Binary/Byte" - every file (no matter if it is a jpg or a doc or something else) is just a bunch of bytes in a certain order.
The only meaning implied on this stream of bytes is the one given by applications that can interprete the data in a given way.
When you try to load a .doc file into your favourite image processor (probably having to rename the file to do so), it'll choke on the data because it cannot be interpreted as an image.
Anyway, you can read any file into a byte array using classes from the System.IO namespace and then get a base64 string from this array using Convert.ToBase64String() .
This base64 string is something you can write to a text file (i.e. a file with all of its bytes in the limited range of printable characters).
The way back is straightforward: Read the base64 string from the text file, convert it to a byte[] with Convert.FromBase64String() and write the array to a binary file.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Thanks for the reply.
I meant about the Byte/Binary is the Byte data type.
What I want is to convert a FILE to Byte, meaning instantiate the Byte data type with the contents of the File. Like:
Byte[] ByteArray = [Byte_of_File] //Is this even possible O_o?
I want it this way because I want to do some modifications on the Byte_of_File itself and after some modifications, I want to write it as a text file. (Filestream?)
After that, I want to reverse the process by reading the text file(Filestream), saving the contents of the text file to a ByteArray, undoing the modifications, and export them back as a workable file.
Am I talking junk or is this possible?
Thank You
|
|
|
|
|
Ian Uy wrote: Am I talking junk
Yes
|
|
|
|
|
Ouch.
But Sir, is this possible to do even it its "junk"?
Thanks.
|
|
|
|
|
You can READ bytes from a file. There's no conversion.
Simply use "byte[] byteArray = System.IO.File.ReadAllBytes(fileName);".
|
|
|
|
|
Thanks for the reply.
How can I do the reverse proccess? I mean, from byte to file. Thanks.
|
|
|
|