Topics
-
- 0 replies
- 1.3k views
I want to create an addin that loads automatically in Excel if Excel starts up. First this addin should make a menu, this menu has three modes: local, client and server. The menu has local mode as default. private enum eMenuModus {LokalModus, ClientModus, ServerModus}; public void OnStartupComplete(ref System.Array custom) { createmenu(eMenuModus.LokalModus); } part of sub createmenu : //.... if(oMenuModus == eMenuModus.LokalModus) { MyButton = (ofcore.CommandBarButton) commandBarPopup.Controls.Add(1, omissing , omissing , omissing , omissing); MyButton.Caption = "&Globale Aktualisierung"; MyButton.Tag = MyButton.Caption; MyButton.Style = ofcore.MsoBu…
Last reply by ThienZ, -
- 2 replies
- 1.1k views
Hi there (again) I was just wondering if i am right if I conclude with the fact that you can't use PositionNormalTextured and PositionNormalColored on the same device? I have created some figures with PositionNormalColored because I need to set colors on each side. But one of the sides needs to be textured with a jpg image. Any suggestions? //theHollow
Last reply by theHollow, -
-
- Administrators
- 6 replies
- 1.3k views
Hi, I hope you can help; I�m not a very experienced .net coder! I'm trying to create a standard text file within a directory donated by a variable. How do I do this as it only seems to accept a filename? Here is my current code: Public Shared Sub Main() ' Create a reference to a file. Dim fi As New FileInfo("temp.txt") ' Actually create the file. Dim fs As FileStream = fi.Create() I have a variable called pdfloc which has a directory location in it such as C:\Data\ for example. I want to put temp.txt within this variable location. I have tried the following, however I know it's not correct:- …
Last reply by carbcycle, -
-
- 2 replies
- 890 views
Hi all, Am try to set a readwrite lock on a database table, here is the code that I am using in my procedure: CREATE PROCEDURE dbo.spReserveCredits @Organization as nvarchar, @Cost as money, @Result as bit output AS UPDLOCK DECLARE @Amount as money SELECT @Amount = Credit FROM SMS_Credit WHERE Org_ID = @Organization if @Cost > @Amount SET @Result = 0 else begin UPDATE SMS_Credit SET Credit = @Amount - @Cost WHERE Org_ID = @Organization SET @Result = 1 COMMIT end return @Result GO I need to lock the table so that I can read and write to it if necessary, while at the same time preventing anyone else from viewing the t…
Last reply by mike55, -
- 3 replies
- 959 views
hi all, i create a simple javascript function function my(id) { document.getElementById('Label1').innerText = id; } and i'll add it to onclick event for checkbox exist on datalist there problem here that the parameter that i want to pass it to the function is this <%#Container.DataItem("ID")%> and it's not work the parser always throw error can anybody help [:'(] Regards
Last reply by mark007, -
-
- Administrators
- 5 replies
- 5.9k views
What is the quickest way (by means of processor time) to find out if a folder has subfolders?
Last reply by JumpyNET, -
-
- 0 replies
- 1.5k views
I've created a program that communicates to duplicated programs using a text file in a shared folder over a lan network. My problem is, I need my program to create and share the folder with the text file, so I don't have to create it manually. I'm programming with vb6 and all the OS's on my lan are WindowsXP. Any help would be greatly appreciated.
Last reply by M_S_T, -
- 0 replies
- 1.2k views
Hi, I have googled and searched in many different forums about how to print a file in .net. But all I can find is about printing text file. My question is is there anyway in .net that allows you to send a file (no matter in what format, eg. doc/xls/pdf) to a printer? It's such a simple job and I can't believe it seems so hard to achieve with .net. Now I am writing an app (winform) that will generate PDF on the fly and submit it to the printer. I now use command prompt to submit the print job. Thanks. Michael
Last reply by michael_hk, -
-
- Administrators
- 2 replies
- 1.2k views
Hi, is there any way to serialize a collection into xml? i've tried using [XmlRoot] , [XmlType] in the collection class but cant. Please advise.
Last reply by pelican, -
-
-
- Moderators
- 2 replies
- 774 views
This may be a strange question, or it may not.... Can you mix the languages of codebehind pages within a single ASPX site? For example, can MyPage1.aspx have a vb codebehind page, and MyPage2.aspx have a c# codebehind? If so, how would you go about doing that in .NET? Thanks, Kahuna
Last reply by HJB417, -
-
- 1 reply
- 915 views
Hello, How can I terminate a thread say T1 by another thread which I already started say T2? Or in general how can I control one thread using other threads?
Last reply by Wile, -
-
- Moderators
- 1 reply
- 1.2k views
Hi, all I bind DataTable to DataGrid from Page_Load event. DataView dvw = ds.Tables[0].DefaultView; this.dgColorDate.DataSource = dvw; this.dgColorDate.DataBind(); And I want to hide certain column and add some control to cell. When I try to do it from PreRender event handler. this.dgColorDate.Columns[(int)Lst.MDL_MFG_COLOR_ID].Visible = false; this.dgColorDate.Columns[(int)Lst.Colors].HeaderText = "Colors"; It throws error. When I check it in debug mode, dgColorDate.Column.Count returns 0. How can I solve this?
Last reply by Robby, -
-
- 3 replies
- 628 views
Hi All, I have just finished my first e-commerce site which I am pleased with as much as I am grateful to people at this forum for their help. One thing bothers me though. When I load the site for the first time, it takes a long time to fire up. Any other attempts after this are fine, even if I empty my temporary internet files it still loads quick. I know this might be a too general query but are there any classic pitfalls that may cause this. I suspect that because my site has 16 or more controls (ascx) files it is the server being slow at creating these controls, are they cached for so long after this or something? Please help if you can. Many thanks, Da…
Last reply by davearia, -
- 0 replies
- 735 views
I all, I would like to know if anyone here, uses Sentinel UltraPro USB Key to protect the software. I'm having some problems in implement the generated C# code into my program to make the querys to the key. Anyone who uses this and could help me, please post here. Thanks, Teixeira
Last reply by teixeira, -
-
- Administrators
- 6 replies
- 2.7k views
Ok, I'm not enough familiar with class for doing what I'm looking for. I have two classes, keeping it simple, say Class1 and Class2. Now, Class2 contain a property in it that is class1 (Class2 is not a collection of class1) : Let's keep it simple, here is the Class1 code: Code: Public Class Class1 Private _Prop1 as String Public Property PropClass1() Get Return _Prop1 End Get Set(ByVal Value) _Prop1 = Value End Set End Class Now for the Class2 Code : Code: Public Class Class2 Private _Prop2 as Class1 ******* Public Property PropClass2() Get Return _Prop2 End Get S…
Last reply by MatP, -
-
- 7 replies
- 3k views
When using threads I've read in plenty of places that you are not to modify UI Controls from inside worker threads and they usualy go on to say that you should use invoke to make any changes. If I create a class and the worker thread started is given a method within that class that contains events that can be called is that the same thing or at least another way of accomplishing the same thing. For example this psuedo code example... class myClass { public myClass() { } // public void WorkerMethod() { //Do Something EventArgs e = new EventArgs(); OnSomeException(e); } public delegate void SomeErrorEventHandler(EventArgs e); publi…
Last reply by qex, -
- 0 replies
- 634 views
Does anyone know how to connect to a btrieve database? I was thinking about trying an ODBC driver, but I really don't know. If that is the way to go, are there any free drivers out there?
Last reply by grip003, -
-
- Leaders
- 11 replies
- 10.9k views
Does anyone know how to create a progressbar simular to Window XP splash screen progressbar, in which only has 3 progressbar segments move to and from within the progressbar whilst loading???? Cheers Simon
Last reply by Machaira, -
-
- 2 replies
- 716 views
Upon clicking on a row in a datagrid i would like to activate an event. I've looked through the events associated to datagrids and i cant see one which fits the bill. For example i click on a random row in the datagrid and get a messagebox telling the contents of the row. Does anyone the right event? Thanks.
Last reply by Jay1b, -
- 4 replies
- 805 views
Hi, Im having a problem with a program I'm trying to write. What i want to do is read a database and where the date is in a specified range add the donation amount. I have 2 types of donations, i want my program to look at which donation type it is and then add it to a total. What im having a problem with is trying to set the data fields = to a string. I may be going about this all wrong, here is exact error i get An unhandled exception of type 'System.InvalidCastException' occurred in microsoft.visualbasic.dll Additional information: Cast from type 'DBNull' to type 'String' is not valid and heres the snipet of code. myOleDbDataAdapter.Fill(myDataSet,…
Last reply by mliles,
-
Who's Online 0 Members, 0 Anonymous, 61 Guests (See full list)
- There are no registered users currently online