Topics
-
- 4 replies
- 1.3k views
I have a couple of spots in my HTML that use z-index. The HTML displays correctly in Internet Explorer, but will not compile when part of my Visual Studio 2005 website project. This line, for example: [size=1][color=#0000ff] <[/color][/size][color=#a31515]div[/color] [color=#ff0000]class[/color][color=#0000ff]="logo"[/color] [color=#ff0000]style[/color][color=#0000ff]="z-index:2;"><[/color][color=#a31515]img[/color] [color=#ff0000]alt[/color][color=#0000ff]=""[/color] [color=#ff0000]src[/color][color=#0000ff]="~logos/blue.gif"[/color] [color=#0000ff]/></[/color][color=#a31515]div[/color][size=1][color=#0000ff][size=2]>[/size] [/color][/size]Gives m…
Last reply by Nate Bross, -
- 1 reply
- 871 views
We have a time submittal form that we are working on. He created the initial form and emailed me a copy of the project. For some reason the actual form file is missing or incomplete. The *.vb file is there, but it doesn't have the form icon and the form designer view isn't available. When I look at it on his computer, the frm.vb file has a shortcut icon on it, as though it reverences another location. But there isn't any thing at that physical location. Does anyone know why this may be and how I might look for the actual referenced file. I could recreate it but I'd prefer not to reinvent the wheel. Thank you in advance. Caeanis
Last reply by Fork501, -
-
- Administrators
- 4 replies
- 841 views
In my ASP.NET projects, I use relative paths. <a href="../images/blue.gif" alt="">Example</a> This works for me because I code and test my websites locally, then once they are ready to implement, I FTP them over to our remote server. Visual Studio hates this, though! It refuses to compile my web application because anything with "../" gets lost. It wants the fully qualified name: "C:\Documents and Settings\jpool\My Documents\Web Projects\Website500\images\blue.gif" That may work fine for testing my application at my desk, but whenever I FTP it to the server, that obviously won't work. Is there a way I can slap Visual Studio so that it will under…
Last reply by MrPaul, -
-
- 2 replies
- 1.6k views
I have quite a few custom-designed classes that need to be notified when certain things happen pertaining to them, though, I've never delved into delegates and wouldn't even know where to start. How would I be able to write/use the events like the IDE does where you define an object and have all of it's events right there in a drop down. Would simply declaring it "WithEvents" work or is it more involved?
Last reply by cugone, -
- 2 replies
- 1k views
Hi there everybody, Today I was playing around with the Flow Layout Panel control (it's a panel that governs the layout of the controls it contains, moving their locations so controls don't overlap). Anyway, any control that is added to a Flow Layout Panel gets a new property, FlowBreak. I've noticed that this property is settable in the Property Grid in the designer, but not in code. I guess my (very general) question is, what's going on here? How does a parent control add a property to its' children, is it a real property that belongs to the child, and finally (and most importantly) how can I write a container control that does the same thing? Thanks in advanc…
Last reply by ballisticnylon, -
- 5 replies
- 1.3k views
Hi Everyone, I have a C++ program lesson, but i can't to do it. I have a binary file with structured datas. I have to read the datas, and take into a class (structure array). Here is my code: #include <iostream> #include <fstream> using namespace std; struct dolgozo { char nev[30]; unsigned int kor; long int fizetes; }; class dolgoszt { private: dolgozo *adatok; int db; public: dolgoszt(char nev[]) { int i=0; db=0; dolgozo r; ifstream zh; zh.open(nev); if (zh.fail()) {cout<<"Error when open the file";exit(1);} zh.read((char*) &r, sizeof(dolgozo)); while (!zh.eof()) { db++; } adatok = new dolgozo[db]; zh.beg; zh.read…
Last reply by MrPaul, -
-
- Administrators
- Leaders
- 3 replies
- 797 views
Create a Find String application that displays the first position of a word or phrase in another word or phrase. Use text boxes to prompt the user for a string and a search substring. The application interface should look similar to that shown on the right after typing the strings and clicking Find String. HELP PLEASE!!!! I AM A BEGINNER!
Last reply by Nate Bross, -
-
-
- Administrators
- 2 replies
- 1.2k views
Can anyone tell me why the following code returns the such strange results? I cannot figure it out. :confused: CODE BEHIND [system.Web.Services.WebMethod()] public static String getCity2() { return "No Parameter"; } [system.Web.Services.WebMethod()] public static String getCity1(string strVal) { return strVal; } CLIENT SIDE <script type="text/javascript" language="JavaScript"> $addHandler($get("txtMailingZip"),"keyup",CallParametersPageMethod); function CallParametersPageMethod() { var strVal=document.getElementById("txtMailingZip"); PageMethods.getCity1('92614',…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 3 replies
- 1.3k views
Hi I want to add a virtual folder into the explorer. Someting like "Control Panel" which isn't really part of the Filesystem structure. My main goal is to let a user add a bunch of pathes to a list (which may come from different drives), and then virtually merge them together in the new folder added to the explorers treeview. The virtual folder should behave just as they would from their normal location: Clicking one folder -> Showing the contents in the listview. The standard context menu etc. ... Of course moving files would need some special coding since it wouldn't know where to move the file. Can somebody point me in the right direction? Google isn…
Last reply by Arokh, -
-
-
- Administrators
- 4 replies
- 2.3k views
[Posting frenzy he he] I've been using serialization for some time now and it is perfect for easily storing data. But some issue have come up: Currently I have ~3000 entires (with each ~7.5kb) with file information packed into an array, which is de- serialized upon opening/closing the program. For deserialzing it almost takes 8 seconds which is already too long for my purposes and the entries will continue to grow. Here is the Class I use for storing Fileinformation: <Serializable()> Class FileClass Public FilePath As New FilePathClass Public ID(1) As Long Public Data As New DataClass <System.Serializable()> Cl…
Last reply by Arokh, -
-
-
- Administrators
- Leaders
- 5 replies
- 1.4k views
Hi, I set the Min Width and Height size of my window so user cannot resize it less than what I want! I also set the size of window exactly the same as its Min Width and Height, so when program starts the my window is for example 400x300, and also cannot be resized less than 400x300. It's OK in XP, but in Vista when I start my program it can be rsized a little less than what I set for window size and min win size! Anyone faced this problem?! :confused:
Last reply by Nate Bross, -
-
- 0 replies
- 909 views
Hi All, I am facing this very weird issue, for every server request my control is redirecting to the login page and again coming back to the actual page from where the request was initiated when I set my custom Remember be cookie on the login page. Following are the details: 1. Authentication mode is �Forms� 2. This issue is reproducible only in deployed applications, I found this using my trace and remote debugging 3. This issue occurs only when user selects the �Remember Me� option at the time of login, then I set the custom cookie for storing the user info. (inbuilt Remember Me of login control is not used as I need the fixed expiration an…
Last reply by anup_daware, -
- 1 reply
- 722 views
Hi all, I'm working on an application in which i need to read the references of the project itself. Is there any idea to get the projects references and display their names? Ex : System; System.Collections.Generic; System.ComponentModel; System.Data; System.Drawing; etc.... Thanks.
Last reply by Nate Bross, -
- 9 replies
- 1.6k views
Maybe I'm just crazy but for some reason, the VB documentation says that a Byte "Holds unsigned 8-bit integers ranging in value from 0 through 255", yet when I do something like: Dim small as Byte = 0 small += 1 VB complains up a storm. Is there simpler way to do simple increments/decrements or addition/subtraction to Bytes rather than: Dim small as Byte = 0 small += Convert.toByte(1) /everytime/? It's smart enough to truncate fractions, yet, it can't figure that 0000 0000 0000 0000 0000 0000 0000 0001 should be converted to 0000 0001. Sheesh. Done venting now. :P
Last reply by Mike_R, -
-
- Administrators
- *Experts*
- Leaders
- 10 replies
- 1.8k views
Not sure this is the right area, but this is pretty random. :D I'm running C# 2005, and was debugging the code and found that 0.09 + 0.25 returns: 0.33999999999999997 So just to test it and make sure I had the precision right, I went to the immediate window and did: ?0.25+0.09 0.33999999999999997 :-\ And that wasn't enough, so I rounded the numbers to make sure it knew there were only two decimals... ?System.Math.Round(0.25,2) + System.Math.Round(0.09,2); 0.33999999999999997 :confused: Now I know that if I round it AFTER I add them, it'll give me what I want, but why should I have to do that? Anyone else seen this? And who do I yell at, Intel or Mic…
Last reply by MrPaul, -
-
- 3 replies
- 12.4k views
I built a Windows Service in VB.Net, that works with an Access 2003 database behind the scenes, no user interaction, it monitors the actions of the main computer in our system. We just rebuilt it - making a second Service that handles some logic for sending messages to the maintenance folks if there is a problem. It also has to query the database. Up to now it's been fine, but now that there are 2 apps we have seen some kind of conflict or contention for opening connections. None of us is a database expert, we just selected Access as a reasonable answer to our need for a database that would work and wouldn't need too much investment or learning curve. The code uses…
Last reply by fyz, -
- 1 reply
- 841 views
Hi. In VB 6 I can do things like picturebox1.Print "hello, world.". How would I do that in VB.NET? ty
Last reply by MrPaul, -
-
- Administrators
- 6 replies
- 1.6k views
Hi, I have a listview filled with a table from database with: Private Sub FillList () .... .... SQL = "SELECT * FROM Voti" dataSetVoti = New DataSet() mioDataAdapter = New OdbcDataAdapter(SQL, dbConn) mioDataAdapter.Fill(dataSetVoti, "Voti") For Each resDataRow In dataSetVoti.Tables("Voti").Rows lstItem = ListView1.Items.Add(resDataRow("Voti")) ..... Next ..... ..... End Sub Then if I Update the table with: Dim cmdVoti As OdbcCommand Dim dbWriter As OdbcDataReader SQL = "UPDATE Voti SET Voti = " & votiToAdd & " WHERE Codice = " & CLng(lvi.SubItems(4).Text) cmdVoti = …
Last reply by joe_pool_is, -
-
-
- Administrators
- Leaders
- 6 replies
- 2.8k views
Hi, I want to add text to an existing file. Note that I want to add it in different locations of the file, not just appending at the end. I have tried the following in C#: ----------------------------- FileStream myfile = new FileStream(myinputfile, FileMode.Open, FileAccess.ReadWrite); StreamWriter sw = new StreamWriter(myfile); sw.BaseStream.Seek(0,SeekOrigin.Begin); sw.WriteLine("Some test"); sw.Flush(); sw.BaseStream.Seek(0, SeekOrigin.End); sw.WriteLine("some other text"); sw.Flush(); sw.Close(); outfile.Close(); ----------------------------- Everything works fine except the writing to the beginning of file overwrites the existing contents.…
Last reply by ANAND_MAT, -
-
-
- Administrators
- 6 replies
- 1.3k views
I have a custom class QBank with a public property called QBankID. I populate the ilist(to QBank). when the iList is populated, is there a way i can filter on the QBankID property for where it = x. I could filter this in the database call.. but i'd like to bring back a larger dataset and only make one call to the database for the data retrieval, then in code filter for the id i want, work on that.. and than filter for another id and so on. i'm just trying to limit my db calls. I could loop through the iList to get the value, just wondering if there is a better way.. thanks shannon
Last reply by jvcoach23, -
-
Who's Online 0 Members, 0 Anonymous, 50 Guests (See full list)
- There are no registered users currently online