Topics
-
-
- Leaders
- 3 replies
- 743 views
I'm trying to get the portion of a folder name that comes after the last "\". For instance. k:\cortland\wade = wade k:\cortland\wade\arch = arch I've been trying to use a combination of Split and LastIndexOf but I'm not having any luck. Can anyone steer me in the right direction?
Last reply by Nate Bross, -
-
- 1 reply
- 1.1k views
I am attempting to use the sp sp_MSdependencies to determine the order in which I can appy additions of new items,functions, views etc to a database... The problem is that when I try top create items in the order the query returns there are dependency issues... Any reliable way to return the list of dependencies in order they need to be created?
Last reply by Mister E, -
-
- Leaders
- 3 replies
- 1.3k views
Can anyone tell me what the firing order is when selecting a different item in a combobox? SelectionChangeCommitted, SelectedValueChanged... and so on....
Last reply by snarfblam, -
-
-
- Leaders
- 3 replies
- 2k views
I have a listview control populated with files. I want to be able to double click on a file and have it open with it's associated application. Anyone know how?
Last reply by bjwade62, -
-
- 8 replies
- 1.7k views
I have a combobox bound to a table ( .Datasource = table ) . The problem is that I MUST use that table to fill another combobox. When I clear the table to retrieve the data for the 2nd cmb, the first one raises an exception. Any ideeas on how to solve it? I am trying to fill the combobox without specifying the .Datasource. but ... how do I set THE VALUE for an item I'm adding to the combo box?
Last reply by pcaddict, -
- 1 reply
- 1.3k views
Suppose I have an array of 500 strings that I want to print out on multiple pages. I started with the code below, but I just cant figure out how to make it print the first pageful, invoke the .HasMorePages property & then continue printing the next page of items, and so forth, until all the elements in the array are printed. I have tried setting the .HasMorePages property to True when the print location reaches the bottom of the page, but then my loop starts over at the beginning again, giving the same output for all pages. I know I am close but I just can't figure how to do this. Can anyone help me get this working? Private Sub PrintDocument2_PrintPage(ByVal…
Last reply by tfowler, -
-
- Administrators
- 3 replies
- 990 views
Just as a simple test, I am trying to save html page source to a memo field in Access. The INSERT statement is: cmdAdd.CommandText = "INSERT INTO tblWebData (PersistentID, ArticleDate, ArticleText, sURL) VALUES" & _ "('" & sPersistentID & "','" & _ CDate(lvItem.SubItems(1).Text) & "','" & _ sPageText & "','" & _ lvItem.SubItems(3).Text & "')" The INSERT worked before I added the sPageText variable (I tested the code by adding a blank string to the database) to the statement. The page source contains all sorts of tick marks, quote marks and other characters typical in h…
Last reply by flynn, -
-
-
- Administrators
- 2 replies
- 808 views
So by luck I found that if you have a user control you want to reference called 'MyUserControl' you can create and instance of it through ASP.MyUserControl_ascx for pages that need it. However I haven't figured out how to get the page - where they've hidden that class. If you're in the page your referencing, there it is, but outside of it you can't. You also can't put your code behind in a namespace because of the whole partial class thing...you'll get a compile error. Does anyone know how you could create an instance of the code behind of page file? Or how to change the namespace - or even have one for a code behind - they don't seem to have one right now. I …
Last reply by bri189a, -
-
- 3 replies
- 753 views
I'm trying to add folders to a listview control. I've tried the following code with no success. Any help? lvwLeftList.Items.Add(IO.Directory.GetDirectories(cmboLeft.Text)
Last reply by Cags, -
- 1 reply
- 1.1k views
i have a aspx form. I fill in my particulars into the fields in this form and click submit. Then it automatically saves a copy of this form with all the inputs intact in a text file. The form also has a table. What are the codes to save a copy of this aspx file as a text file?
Last reply by cyclonebri, -
- 1 reply
- 1.1k views
I have added a web user control to my project. In that control I have created a function: SayHelloWorld() that should fill a label with the following text: "Hello World". In the 2003 environment, I simple dragged the user control onto the page, and called the following code: dim hello as new HelloWorld hello.SayHelloWorld() However in the new environment, I have dragged on the control, however I cannot call the control. Any suggestions on where I am going wrong. Mike55.
Last reply by cyclonebri, -
- 4 replies
- 6.5k views
I have an object (sprite) and I have a method called inkCF, or incriment current frame. public void inkCF() { if ((iCurrentFrame + 1)< (iNumFrames)) { iCurrentFrame += 1; } else { iCurrentFrame = 1; } } My issue is that when I try to call the method, either of these two ways MyClass x; x.inkCF; //Or, This, inside of another sub in the class code... inkCF; code.... I get the following error Only assignment, call, increment, decrement, and new object expressions can be used as a statement. When I used the MSDN help it didn't rea…
Last reply by mskeel, -
-
- Administrators
- 2 replies
- 1k views
Hi all, I am facing a strange problem. I have an XML that feeds data to an aspx page that renders the corresponding xsl file. Now the xsl and xml file contains data in Japanese language. In xsl, this data is shown in Japanese characters and in xml, it is shown as junk characters. Now as instructed, in order to display this xml on the aspx page, I am required to save the aspx page with encoding (Unicode - Codepage 1200) I saved the same but still am not able to get the Japanese characters rendered. It still shows the junk characters. How can I get the web page to display japanese characters ? Thanks in advance Ashutosh
Last reply by ashutosh9910, -
-
- 3 replies
- 1.9k views
how do i begin adding credit card payment to a website? can someone pont me to a decent tutorial? are there issues with storing credit card numbers, or do i have to strore them at all? will the implementation be different depending on where the web site will be hosted? what other security issues are there to consider? thanks all
Last reply by mike55, -
-
- Administrators
- 11 replies
- 2k views
Hi, I'd like to convert a enum value to it's string representation. It's easy if it's a value within the enum, the problem I'm up against is that it's a combination of values.... <Flags()> Public Enum eGraphType As Integer gtNone = 0 gtLine = 1 gtArea = 2 gtIndicator = 4 gtRadar = 8 gtPolar = 16 End Enum if I have myGraph = 7 I can see in the local window myGraph - gtLine, gtArea, gtIndication {7} How can I get this into a string variable?!? Dim myString as string=myGraph TIA /Kejpa
Last reply by Wraith, -
-
-
- Leaders
- 4 replies
- 1k views
I was just wondering if there is a way to put information in the tool tip that appears when you are typing the param list for an overloaded method when you are the one writing the overloaded method. eg. public void Move(Point pos) { iSpriteX = pos.X; iSpriteY = pos.Y; } public void Move() { Move(new Point(iSpriteX + iSpeedX, iSpriteY + iSpeedY)); } Is there a way to put a description of the variable at the bottom of the tooltip, as seen in most .NET overloads?
Last reply by mskeel, -
-
-
- Leaders
- 6 replies
- 1.2k views
I have two listview controls. In the code below I'm copying each item from the left listview to the one on the right side. I have a statusbar showing the number of items in the right listview. It shows the correct number so I think they're getting added, just not painting. Oh yea... the column headings (which have text) show as blank. Any help? frmMain.lvwLeftList.BeginUpdate() For Each SelLeftItem In frmMain.lvwLeftList.Items SelLeftItem.ImageIndex = 1 SelLeftItem.ForeColor = Color.Blue Dim SelItem As String = SelLeftItem.Text Dim tmpItem As ListViewItem = CType(SelLeftItem.Clone(), ListViewItem) f…
Last reply by snarfblam, -
-
- 2 replies
- 1.7k views
The code below wont delete hiddden files. Any help? IO.File.Delete("c:\temp\*.*")
Last reply by bjwade62, -
File Owner
by nbrege- 1 reply
- 1.3k views
Is there a way to retrieve the owner of a file that resides on a network? I know how to retrieve the other attributes, such as file size, last write time, etc., but I dont know how to get the owner. Can someone help me with this or provide a code example? This is in VB2005 Express. Thanks...
Last reply by Cags, -
- 4 replies
- 1.1k views
I have the following code in a click event. It's supposed to change the bachground color of a listview control. It works fine except when I click the cancel button in the ColorDialog control. When I do that it sets the listview color to black. Any help out there? Thanks! ColorDialog1.ShowDialog() lblLeftSide.BackColor = ColorDialog1.Color frmMain.lvwLeftList.BackColor = ColorDialog1.Color
Last reply by bjwade62,
-
Who's Online 0 Members, 0 Anonymous, 57 Guests (See full list)
- There are no registered users currently online