|
The problem seems to be finding that file, not the object serialization. Have you written the right location of the file? have you used "\\" (double slash) in the string instead of simply "\", that's a very common error
|
|
|
|
|
No it is not the case, there are two progs, and File not found message is raised during serialization proccess not stream opening, it is also said that he was searching for the program that created that file.
|
|
|
|
|
Hi,
I want to make an app that looks like "Windows Explorer" ( tree view / splitter / my own views).
I have tried with the splitter control, that works fine for a TreeView and ListView, but for my own Windows Forms it doesn't work ( it seems it has to inherit from control).
Is there any way to do that ? How can I use my Windows Forms there, or is there some kind of View class like in the old MFC ?.
Thanks in advance, Greetings
Braulio
|
|
|
|
|
Have you tried placing your control on a Panel?
|
|
|
|
|
Thanks but...
What I want to place inside is not a control, it's WinForm ( I want to have a WinForms, that contains inside two winforms, a tree control, and another form ( that will change, if the user selects another option in the tree).
So I want to have my fix tree control... and 5 differents views..., with MFC I would do it using splitters, and inheriting my windows from the CView class.
Greetings
Braulio
|
|
|
|
|
Hai
I have One .resx file. I have embedded this file into my project.
Assembly thisAssembly = Assembly.GetAssembly(Type.GetType("samp.Form1"));
ResourceManager rmListImages = new ResourceManager("Images1", thisAssembly);
imageList = new ImageList();
imageList.ImageSize = new Size(16, 16);
Bitmap icons = (Bitmap)rmListImages.GetObject("Image");
When I am running the above code it is showing the following error.
An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll
Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "Images.resources" was correctly embedded or linked into assembly "samp".
baseName: Images locationInfo: <null> resource file name: Images.resources assembly: samp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Can any body suggest how to solve this.
Chito.
|
|
|
|
|
Hi,
I am using the Microsoft Web Browser control in my c# Windows for. I need to post some data such as password="xxx" in the form when I use the navigate method. I have not yet found a way to use the postData object of this method.
Can anyone shed some light on this?
Thanks
|
|
|
|
|
Hi,
In my C# program, am making dynamic calls to invoke some functions present in a Dll. I am using DefinePInvokeMethod for the same. yet am not getting the results.
Can anyone send an example on how to use this method or give some suggestion.
Thanks
Ranjani
|
|
|
|
|
While we wait for generics, I was wondering about collections for a bit. You see, in the .NET Framework library, it seems that Microsoft has created a nice type-safe collection for pretty much every type they use lists for—AttributeCollection , TreeNodeCollection —you name it, they've got it.
So, for my code, which I'm hoping to turn into a really nice utterly perfect DirectX class library that conforms to all the wonderfulness of all guidelines, should I do this? Right now I'm just using ArrayList s, which work OK. However, I could use Chris Sells's really cool tool[^] CollectionGen to generate a bunch of type-safe collections.
Advice?
-Domenic Denicola- [CPUA 0x1337]
“I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”
|
|
|
|
|
Domenic,
I've used Chris' Sells tool and I liked it. There are also a few good tools at gotdotnet.com in the user examples. Give them a look and see what you think.
"Veni, Vidi, Booyah!" - Ceasar
|
|
|
|
|
I know how to convert an image object into a graphics object by
Graphics g=Image.creatgraphics();
but how to convert a graphics object into an image object?
Or, how do you save the "graph" that you drew into a bmp file?
|
|
|
|
|
You can create Graphics from existing Bitmap (Image ) and draw on this Graphics .
Bitmap bmp=new Bitmap(50,50);
Graphics gr=Graphics.FromImage(bmp);
gr.FillRectangle(Brushes.Green,10,10,30,30);
than you can use Save method of Bitmap
i'm only pointer to myself
|
|
|
|
|
Hello.
I'm looking for some code samples or a component that will open an parse a .msg files (outlook mail format) for me.
Can someone point me to this or lead me in the right direction?
Andrew.
|
|
|
|
|
in vb.net convert it into telerik.convertor.com
don't forget to include import files & variables
Imports System.Web
Imports Microsoft.Office.Interop
Imports Microsoft.Office.Interop.Outlook.OlItemType
Imports Microsoft.Office.Interop.Outlook
Imports System.Data.SqlClient
Imports System.IO.Directory
variables are
Public sqlclient As String
Dim strApplicationPath As String = System.AppDomain.CurrentDomain.BaseDirectory()
Dim appOutLook As New Outlook.Application
Dim ObjShared As New clsShared
Dim dt As New DataTable
Dim sql As String
For Each b As Object In items
Dim k As Outlook.MailItem
k = TryCast(b, Outlook.MailItem)
Dim s1 As String
s1 = TypeName(b)
If ((k.Subject.ToLower.Contains(failureNotice.ToLower)) Or (k.Subject.ToLower.Contains("failure notice"))) Then
If k.Attachments.Count > 0 Then
Dim Atmt As Outlook.Attachment
For Each Atmt In k.Attachments
'code that save .msg file into Existing Folder
If Atmt.FileName.Contains(".msg") Then
Atmt.SaveAsFile(strApplicationPath + "\" + Atmt.FileName)
Dim Msg As Outlook.MailItem
Msg = appOutLook.CreateItemFromTemplate(strApplicationPath + "\" + Atmt.FileName)
'code that save data into server
Dim strTo1 As String
Dim strSubject1 As String
Dim strDate1 As String
strTo1 = Msg.To.ToString
strSubject1 = Msg.Subject.ToString
strDate1 = Msg.SentOn.ToString("dd-MMM-yyyy")
Msg.Close(Outlook.OlInspectorClose.olDiscard)
End If
Next
End If
End If
Next
Regards,
Mohammad Shakil
Mohammad Shakil
Software Engg.
Kurla,Mumbai,India
|
|
|
|
|
Does anyone have any idea on how to connect to a file share on the network using a username and password provided by the user. This truly has me stumped. Any help would be appriciated.
Thanks
Aisha
|
|
|
|
|
Hi,
I'm using a VC++ 6.0 ATL COM object in a .NET code. The library is registered before usign it.
Everything work correctly if the library is being accessed continuously; the problem appears when it's not accessed for a while (maybe 5 minutes, it has not been completely assumed) so when it's accessed again it returns an exception of a QueryInterface error for the library interface, although the library has not been modified, neither changed or deleted...nothing! the system only has been forgotten for a while...
Any suggestion or good idea?, any knowledge about it?
Thank you in advance,
Edgar
__________________________________________
Edgar Berengena Moreno
Software Engineer
Appeyron Research
|
|
|
|
|
Is it possible that all of the .NET references to your COM object are being released in that 5 minutes? If not, have you debugged both your .NET code and the COM object to see which side actually returns the error?
John :D
|
|
|
|
|
Thanks, John,
It's said it's a hidden bug almost solved from Microsoft. There's a hotfix still not published (Q325699) which you can ask for to Microsoft Support, but it's only available for NET english version.
This bug consists of an incorrect behaviour of the garbage collector, which removes the instance of the COM objects unsued after a few time.
I'll try to solve it manually until Microsoft publish the fix for my spanish version, accessing the object between short periods of times.
Thank you again,
Edgar
__________________________________________
Edgar Berengena Moreno
Software Engineer
Appeyron Research
|
|
|
|
|
EdgarBM wrote:
I'll try to solve it manually until Microsoft publish the fix for my spanish version, accessing the object between short periods of times.
Another bug, another 10 things to worry about. Generally I must say that core (as in the SS CLI) .NET framework is pretty much bugfree.
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
|
Thanks for your interest, Leppie,
It's said is a Microsoft bug (Q325699), althought it's not published, so it must be requested directly to Miscrosoft Support.
Thank you again,
Edgar
__________________________________________
Edgar Berengena Moreno
Software Engineer
Appeyron Research
|
|
|
|
|
I use a small table (1..5 records) with big number of fields (about 400 doubles with default 0). All work ok but some writes (about 30) into the columns generates Null Object Reference. (Windows 2000 5.00.2195 srvpack 3, Framework 1.0 srvpack 2)
My code:
... loading data ...<br />
MyTable.AcceptChanges();<br />
foreach(DataRow dr in MyTable.Rows)<br />
{<br />
foreach(string fieldname in MySomeColumnsStringArray)<br />
{<br />
... some computing ...<br />
double x=Result(...);<br />
x+=Convert.ToDouble(dr[fieldname]);
try<br />
{<br />
dr[fieldname]=x;
}<br />
catch(...<br />
}<br />
}
What's wrong?
Help, please.
Sincerely
AW
|
|
|
|
|
What is the value of x when your code fails?
|
|
|
|
|
Unfortunately, any:
0<br />
10<br />
105.91<br />
NaN (I won't to write it in real application)
Sincerely
AW
|
|
|
|
|
DataRow[idx] fails as well
DataRow.ItemArray[idx] works
Sincerely
AW
|
|
|
|