Topics
-
-
- Administrators
- 1 reply
- 4.2k views
Hi, All I have a Problem with Proxy. I want to download file from a Server. But when I using proxy it gives me "The remote server returned an error (407) Proxy authentication Required" error message. This is my code. Dim wclient As New System.Net.WebClient If mySettings.mProxy = 1 Then System.Net.GlobalProxySelection.Select = New System.Net.WebProxy("http://" & mySettings.mProxyIP & ":" & mySettings.mProxyPort) wclient.Credentials = New System.Net.NetworkCredential(mySettings.mProxyName, mySettings.mProxyPass) End If wclient.DownloadFile(pathUpdate & "lastVersion.ini", mySettingsPath & "last…
Last reply by PlausiblyDamp, -
-
-
- *Experts*
- 5 replies
- 7.3k views
Hey, I'm very new here :rolleyes: . I'm a programmer who has just started using c#, I'm getting pretty good but there is one thing I'm stuck with... I have an integer which is given from this peice of code " ini.ReadInt("send","CBVert",0) " If you really want to know what this does it reads a value from an ini file and returns it as a integer... Now I want to use the code above and set " Color_Pick.Color " to that value, BTW this is the color select box you can create in SharpDevelop. Hope someone can help me soon, thanks
Last reply by mutant, -
-
-
- Moderators
- 4 replies
- 1.4k views
I've written database code (using vb.net) for my different projects in several ways throughout the years. I've created separate projects (separate DLL's) just for my database stuff, I've written separate database components within the same project as my application, and I've also simply placed my sql code within the page itself. I was just wondering though if anyone knew if there was an actual "correct" way to write database code in .net. Does microsoft recomend a certain method over another? If so, does anyone know of any links to any web sites that describe which method to use? Thanks in advance. -Goalie35
Last reply by FZelle, -
-
-
- Moderators
- 1 reply
- 3.1k views
Should there be a seperate section or should we continue to post in the current threads. I think this might be confusing for new programmers as they may find an answer to a question that they think effects what they are doing (which is probably 1.1) and it really only effect 2.0...what does everyone else think?
Last reply by Robby, -
-
- 0 replies
- 802 views
I am looking for anybody else using the Windows 2003 Authorization Manager to manage thier roles/groups and permissioning. Before I start I'd like to know to good and bad of anybody elses experience.
Last reply by patrick24601, -
- 3 replies
- 642 views
Ok, I AM going on a week with a datalist dilemma. :mad: For some reason I can not get rid of the blue (Sometimes Purple) hyperlink line around my pics in my datalist. I have set all the borders to (0) and still no luck. What am i missing????? ===============HTML BELOW================= <asp:datalist id="dl1" runat="server" ShowHeader="False" ShowFooter="False" RepeatDirection="Horizontal" Height="20px" RepeatLayout="Flow" BorderColor="White" BackColor="White" CellPadding="4" GridLines="None" BorderWidth="0px" AlternatingItemStyle-Wrap="false" Visible="true"> <ItemTemplate> <table> <tr> …
Last reply by bri189a, -
- 2 replies
- 1k views
I use this code to convert a string to a file: Private Function MakeFile(ByVal s As String) As String Dim sPath As String Dim sw As IO.StreamWriter If Not IO.Directory.Exists(Server.MapPath("./documents")) Then IO.Directory.CreateDirectory(Server.MapPath("./documents")) End If sPath = Server.MapPath("./documents") & "\transfer.xml" sw = New System.IO.StreamWriter(sPath, True) sw.Write(s) sw.Flush() sw = Nothing Return sPath End Function It creates the file, but doesn't release it. When I try to access the file, it is 'in use by another program' until I reset IIS Anyone se…
Last reply by TheWizardofInt, -
-
- Leaders
- 7 replies
- 2.8k views
Can a rtb read html? If so, how.
Last reply by mskeel, -
-
- 3 replies
- 1.9k views
Ok, Heres The Situation. I Have A Combo Box That Gets Populated With(String) Information From A Sql Query. However, The Information That Will Be Saved Back Into The Database Will Be In An Integer Form, Which Is The ID Number. How Do I Use Valuemember To Correspond Each Item In The Combobox With The Field ID. Heres Some Code, If Someone Could Show Me Where And How To Add In That Information, It Would Be Much Appreciated. [code=visualbasic] Private Sub PopulateBoxes() Try Dim strSelect As String Dim Command As New SqlCommand Dim SqlReader As SqlDataReader DefineControls() Command.Connection = SQLC…
Last reply by Simcoder, -
-
- Moderators
- Leaders
- 6 replies
- 4.1k views
Hi, I'm using Visual C#.net I would like to know how to get a count of the lines in a label control. This is easy to do with a text box (GetLineFromCharIndex(99999)), but the label control does not have this function. The label for instance would be a set width, but the text wraps around over several lines. If I know the number of lines I can then set the height of the label control appropriately. Thanks
Last reply by Robby, -
-
-
- Moderators
- Administrators
- 5 replies
- 1.4k views
So not having much C++ background or practical experiance I know very little on generics, pretty much just what I read at MSDN today; I love the concept and performance gains and seems easy enough to use, but here's the question for you experianced folks. I know it's a totally differant thing, but I use abstract factory pattern (I think is the correct pattern) to take a number of differant type of classes and expose a functionallity common to all of the through interfaces. Then I have a 'manager class' that will take any type of object that implements that interface and do work with it through the interface...(it took me a little while to figure out that interfaces ar…
Last reply by PlausiblyDamp, -
-
Here's a simplified version of a bit of code: Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim counter As Integer Dim temp As String While counter < 11 temp = Button1.Text Button1.Text = Button2.Text Button2.Text = temp Threading.Thread.Sleep(1000) counter += 1 End While End Sub I want the program to stop for 1 second after each switch but what this piece of code does is stop 11 seconds then does the switch. I want it to stop and show each switch. How can I do that? Is it possible to do it without a timer?
Last reply by jmcilhinney, -
-
- Leaders
- 10 replies
- 6.5k views
hey does anyone know how to shutdown a computer using the code of vb.net. can anyone help me with the code thanks in advance
Last reply by HJB417, -
-
- 1 reply
- 2.9k views
I was wondering if anyone could help me with the following problems: 1) Is there a way to disable the verical scrollbar on a datagrid?? 2) Also is there a way to tell whether the horizontal scrollbar has been enabled on a datagrid?? I am writing my application in vb.net, so any help would be appreshiated. Thanks Simon
Last reply by RobEmDee, -
- 0 replies
- 535 views
I am clicking on a datalist option inside a control that is inside a webform and when i get transferred to the corresponding page I am receiving this error. At first i was receiveing an error stating that the stored procedure is expecting (@IDDepartment), and now I am receiving this error message. Thanks =========The Error============== Server Error in '/ConstructionSuperCenterCom' Application. -------------------------------------------------------------------------------- Object must implement IConvertible. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information …
Last reply by erikkl2000, -
- 1 reply
- 1.3k views
I am planning to do a file monitoring system, which the system will monitor all the files on the hardisks on every creation, modification and deletion events and save those events into a log file. * I had tried to used the FileSystemWatcher Class but it seems to be monitoring only one folder. Please guide me. Thanks
Last reply by georgepatotk, -
- 3 replies
- 1k views
hi, i have derived a ColumnStyle of DataGrid to show ComboBox. currently the ComboBox is visible only when i click a cell. i.e. only while editing the cell. i need to show it throughout the column even when i don't click. simply, the cells of the column should appear as ComboBoxes. if anybody has some idea please let me know.
Last reply by nirubhai, -
- 1 reply
- 691 views
I need some advice and guidance on how I should tackle this problem. I have a treeview 'treeview1' that I want to list all the files that are stored within my database table 'docListTbl'. The problem is that these files might be stored within different treenodes, and I'm not sure how to build the treeview dynamically from my database table and to ensure that the files are displayed under the correct node. What I will do is give you and example, but I am unsure how to acheive this, can anyone help??? If I have the following table stucture: parent | child | file name ----------------------- text files | new | filename picture files | old |…
Last reply by Machaira, -
- 2 replies
- 2.5k views
I am using the IndexFromPoint() method of the ListBox inside of the MouseMove event handler to identify which ListBox item a user's mouse is hovering over at any given point. This has worked well. The one annoyance I have found is that when the mouse is over empty ListBox space below the last ListBox item, IndexFromPoint() returns the index of the last ListBox item even though technically the mouse is not over any items. Does anyone have a quick workaround for this? Thanks.
Last reply by RobEmDee, -
-
- Leaders
- Moderators
- Administrators
- 12 replies
- 1.2k views
I have a project with many user controls. What I need to do is insert some of them in a form. For some reason I can't insert one of them :( It gaves me an error (attached) What am I doing wrong?? error.bmp
Last reply by snarfblam, -
-
Who's Online 0 Members, 0 Anonymous, 66 Guests (See full list)
- There are no registered users currently online