Topics
-
- 0 replies
- 1.6k views
How do I P/Invoke a DLL that I wrote in C, that is not in the path? I need to do the following steps in C#: - Query the registry to find the location of unmanaged DLL - Somehow communicate the location of the DLL to P/Invoke - Then utilize the member functions of the unmanaged DLL If I put my unmanaged DLL in system32, P/Invoke finds it fine and I can utilize its functionality however this is not an option on the customer system. The unmanaged DLL gets installed to a Program Files directory that the customer can change, and its not the same directory where my C# assembly is located. Thanks!
Last reply by lonewolf32, -
-
- Administrators
- 6 replies
- 1.8k views
Hi All Am trying to send email from a program written in c# VS2005, using the following code. SmtpClient mailClient = new SmtpClient(SMTPServer); mailClient.UseDefaultCredentials = true; MailAddress from = new MailAddress(emailFrom); MailAddress to = new MailAddress(emailTo); MailMessage message = new MailMessage(from, to); message.Subject = emailSubject; message.Body = emailBody; mailClient.Send(message); [/Code] When it tries to send I get the following error System.Net.Mail.SmtpException was unhandled Message="Command not implemented. The server response was: Sorry no ESMTP" Anyone know what this means please? Thank You
Last reply by pendragon, -
-
-
- Leaders
- 2 replies
- 881 views
In my application, users may create a number of objects. Information about these objects (height, width, name, etc) is stored in several 2 dimensional arrays. How do I go about using the properties grid to display the data?
Last reply by Mick Dugan, -
-
- 2 replies
- 1.2k views
Hello there I am new to XML and I am having a problem with xmlns="" showing up in my elements when I trying to produce a report in XML from VB6. Code Example <?xml version="1.0" encoding="ISO-8859-1"?> <MESSAGE xmlns="http://tempuri.org/XMLSchema.xsd" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tempuri.org/XMLSchema.xsd C:\projects\report\EDU-KIT\Docs\report_osad_edu.xsd"> The header part of this produced using a method called Load Header Set pi = oXMLDoc.createProcessingInstruction("xml", "version=""1.0"" encoding=""ISO-8859-1""") Set eMessage = oXMLDoc.createEle…
Last reply by LostProgrammer, -
-
- Administrators
- 4 replies
- 3k views
The point is to load all my crystal reports from a target directory when the program executes. How will I do this? I know will need to use the a "stream" object but I can't figure it out.
Last reply by EFileTahi-A, -
-
- 2 replies
- 5.4k views
hi, i have problem with dataset. I create a form that has two textboxes, 1 datagrid and 4 buttons. textboxes are binding to dateset's columns. my problem is when i want to add a new record to dataset with "BindingContext[dataSet11, "deneme"].AddNew()" it adds a new row at the end of dataset with null values. And updates current row with values that i want to add to the last row of dataset. thanks for helps. You can see database preview at the bottom of code. Here Is My Code ******************************************************************* //Fills dataset private void button1_Click(object sender, System.EventArgs e) …
Last reply by sercanparlak, -
- 0 replies
- 1.1k views
Does anyone know of an easy way to create a new xmlnode based on a schema element. if elem is a XMLSchemaElement then Dim xmlnode as New XMLNode = elem.CreateInstance thanks, lp
Last reply by LostProgrammer, -
-
- *Experts*
- 5 replies
- 2.1k views
Hi, Im using framework 1.1, i was just wondering how can i pass a 'null' value to a function, because im retreving some data from database and some column might contain nulls, so how can i pass this null value to the function for further processing Some poeple recommend to use an "illegal" value and have that represent null. like use something like "-1". I plan to avoid the need of using -1 and other characters since if the column is "-1" , it brings up another meaning. If there any other way of passing null besides using an "illegal" value and then converting it back to null in the receiving function?
Last reply by Arch4ngel, -
-
- 1 reply
- 2.4k views
[PLAIN][sOLVED] Forcing ext_cm_Startup for a C# interop Excel AddIn[/PLAIN] How can I force my C# interop AddIn for Excel to be invoked in "connect on startup" mode (i.e., with the connectMode parameter to OnConnection to be set to ext_cm_Startup)? By default, it runs as "connect after startup" (connectMode comes in as ext_cm_AfterStartup). I understand that this is controlled by some sort of registry setting, but I haven't been able to figure out which registry item gets set to which value. Thanks in advance for any pointers to documentation that you can give me.
Last reply by Hippo Man, -
- 0 replies
- 1.4k views
i have a datagrid with some row and i want add new row to some of rows. i want create group of rows together. how can i add new row to specific row?
Last reply by hamid, -
- 2 replies
- 1.1k views
Hi All, I�m an amateur coder, writing a program, part of which involves some graphics. A few issues have come up which quite honestly are beyond my ability. What�s the best way of going about looking for someone who�d be willing to take on some of this on a freelance, hourly basis? Location isn�t an issue as the code can be swapped back and forth via email.
Last reply by Talyrond, -
- 0 replies
- 972 views
Hi, :p I would like to know how to implement Single Sign On/In (SSI) for asp.net web applications or websites. Using .net passport is too expensive and microsoft doesnt support the sdk's development anymore. What are the general steps used to create Single Sign On/In facilities? Are there any links which describe how to implement the SSI feature? I've found a few sites but would like to read up more
Last reply by LiLo, -
-
- Administrators
- Leaders
- 5 replies
- 1.9k views
Hi Guys, I have been browsing through the net and tried finding some examples to get an image displayed in an xml tag, some say use xlink and some say use xslt.But did not manage to get it done.. I have the following xml structure writer.WriteStartElement ("image"); writer.WriteAttributeString ("display",""); writer.WriteEndElement(); How can i insert an image in the "display" attribute tag? Thank you very much
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 3 replies
- 1.5k views
Hi: I am frequently faced with a question of how to set states in my application. Things like...is the load complete? should a text box behave one way or another? Things that depend on the state data persisting outside the method/event handler in question. No problem, just set a class variable global to the form and problem solved. However, my boss is wanting me to get rid of as many of these global variables as possible...I am accomplishing some of this through encapsulation. However, things like the load event being complete...or other functionality that depends on the state data is a harder nut to crack. Normally, this wouldn't be that much of a bad thing..…
Last reply by Cags, -
-
- 3 replies
- 5.4k views
Hello all, Based on certain situations, I want to change the Text on my command button to bold, similarly to the way non default values are bold in the property grid at design time. When I try to change commandButton.Font.Bold it is read only. Thanks in advance for any ideas and/or suggestions.
Last reply by Cags, -
-
- Leaders
- 4 replies
- 1.2k views
ok I have a time that ticks every 10ms to update one lable with the current mouse position, and also set a panel to the color unser the mouse Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim point As Point point.X = Windows.Forms.Cursor.Position.X point.Y = Windows.Forms.Cursor.Position.Y lblMouse.Text = point.X & "," & point.Y Dim color As Color color = GetPixelColor(point.X, point.Y) lblColor.Text = ColorTranslator.ToWin32(Drawing.Color.FromArgb(color.A, color.R, color.G, color.B)).ToString pnlColor.BackColor = color …
Last reply by Cags, -
-
-
- Leaders
- 3 replies
- 701 views
I have a problem. On my form (mainform) is use a panal wich should load another form (form1) now i placed the panal en he should load the form1 when the mainform loads. but i get this error: Top-level control cannot be added to a control. i don't know what to do whit this error. public partial class main : Form { Form1 from1; public main() { InitializeComponent(); } internal Form1 From1 { get { if (this.from1 == null) { this.from1 = new Form1(); th…
Last reply by snarfblam, -
-
- 1 reply
- 987 views
My name is Ryan Worcester and I'm a student in High School learning Visual Studio... The thing I'm most interested in is learning ASP.NET, and I'm currently working on a website to learn how it works... I would like to add pictures to my web site as small pictures, and when you click on a picture I would like to have the picture come up in another window (as a bigger size)... I would like to know if I can do this using one page (and display different pictures on it depending on what picture was clicked(I will have a page with the small pictures and then I'll have a page to display the picture)), so that I don't have to make a separate page for each picture... if I can …
Last reply by Arch4ngel, -
- 1 reply
- 994 views
Hi, :) I would like to use .net passport with an asp.net application. I have installed the passport SDK. I came across a website that said that after installing the SDK, the developer has to create an application in the .NET Services Manager. In other words, the developer must submit the application information to Microsoft using the Microsoft .NET Services Manager. This allows the ASP.NET application to access the Microsoft Passport servers. Particulars about the application has to be entered. Is it possible to have .net passport functionality done locally, instead of using Microsoft's Passport servers? All I need is just a .net passport user account wh…
Last reply by Arch4ngel, -
- 0 replies
- 1.1k views
With the code down here, I can find all the Table Names of a database in Access, but ........ I like to know also the query-names of that database. Can anybody tell me how to do this ? ? I can't find it. I'am from the Netherlands so the code is not all English. Greetings Bas. Try objConnection.Open() dbTableNames = objConnection.GetOleDbSchemaTable(System.Data.OleDb.OleDbSchemaGuid.Tables, New Object() {Nothing, Nothing, Nothing, "TABLE"}) Catch ex As Exception MessageBox.Show(ex.Message) End Try objConnection.Close() Dim TabelNaam As String Dim nr As Int16 = 0 For Each drTabelNamen In dbTableNames.Ro…
Last reply by BJGroot,
-
Who's Online 0 Members, 0 Anonymous, 47 Guests (See full list)
- There are no registered users currently online