16,015,218 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by BobbyStrain (Top 112 by date)
BobbyStrain
19-Mar-24 10:21am
View
The code does not build when there is code behind for it. With no code behind, it builds and the panel functions properly. Strange behavior.
BobbyStrain
16-Mar-24 18:55pm
View
Well, I successfully implemented logging using the LinkButton control. Thank you for your help.
BobbyStrain
14-Mar-24 21:12pm
View
Thank you. In my searching I learned that the Hyperlink control does not have a click event whereby some code can be called. So I am changing the control to Linkbutton so I can trigger code execution.
BobbyStrain
23-Jan-24 17:18pm
View
Well, I got a Windows update yesterday and now sql server management studio is working!
BobbyStrain
21-Jan-24 11:36am
View
Thanks. See my comments to the solution below. I'll continue with using the current .NET frameworks and wee what other problems appear. I guess my difficulties demonstrate "if it ain't broken, don't fix it". It also helps to have at least 2 computers with the same stuff. And I have NAS, too. I am gradually learning to use these comments properly. It still is confusing when the red accept solution appears. When I click said button, it becomes Reject Solution. I probably would have used two buttons.
BobbyStrain
21-Jan-24 11:26am
View
I reinstalled Windows 10 at the advice of Microsoft help. That fixed some problems, but new ones appeared.I had to do some cleanup on some of my VS 2019 files. It appears that I can now work on my website files with my PC. At first attempt to use the website locally, JavaScript would not fire using the original file on the PC. I copies the working project from my laptop to my PC. It works as it should. I still can't use sql server management studio to access a database on a remote server. It just goes to nowhere when loading records from tables. I'll live with that.
Thanks again for your help
BobbyStrain
20-Jan-24 10:34am
View
Thanks. I shall enlist their help.
BobbyStrain
19-Jan-24 19:19pm
View
Today I used SS Management Studio to access my database on GoDaddy's server. It failed with a message about System.Drawing. So, I used my laptop to successfully load it. I have experienced problems since I used a Norton tool to clean my PC. Yea, it wreaked havoc with lots of files, including VS. VS 2019 still won't handle images after being reinstalled. VS 2019 works fine on my laptop.
BobbyStrain
19-Jan-24 15:32pm
View
I intended to accept your solution. Did I?
BobbyStrain
18-Jan-24 19:40pm
View
GoDaddy support fixed it with a second call. I included the port in the server name which they corrected. I'm sure there are lots of unhappy clients that got no notice of the change. Years ago they deleted my database and I had to reconstruct it. I keep an old backup now.
BobbyStrain
18-Jan-24 18:52pm
View
Thanks. But they just changed it 2 days ago.
BobbyStrain
6-Sep-23 13:54pm
View
Excel will load a web page. Then you can work with the page by loading it in Excel.
BobbyStrain
2-Sep-23 10:59am
View
Thank you. So when I fix the javascript execution will it work?
BobbyStrain
1-Sep-23 19:51pm
View
Thank you, Dave. I'll see if I can fix it. I don't understand why CVS.com won't use the address and password that are stored in Firefox.
BobbyStrain
18-Aug-23 23:24pm
View
2 days X 4 = 3 Weeks.
BobbyStrain
24-Jun-23 12:23pm
View
Thank you, Andre. I wonder how long my mature pages will last. I probably would not have found this solution by searching.
BobbyStrain
15-Jun-23 16:23pm
View
I looked at your article. That is much more complex than the previous javascript.
OnClientClick="window.opener.location.reload(true)".
This script will leave the child open with focus. I can select the parent page and it responds properly. There must be some magic to set focus on the parent through some simple javascript.
BobbyStrain
13-Jun-23 13:06pm
View
I don't understand your suggestion. This look like code-behind, not JavaScript. JavaScript worked for years, but works no more. Maybe you can provide a bit more code?
BobbyStrain
12-Jun-23 17:46pm
View
Thank you. It works as intended. I have another link on the child page to return to the parent, but leave the child open.
"window.open('', 'parent');parent.focus"
However, focus remains on the child. Which requires the user to click the parent tab to focus. I can't find any script to achieve this. Any suggestion?
BobbyStrain
19-Apr-23 16:07pm
View
I don't use an installer for this simple project. I just distribute the folder in a zip file. Along with instructions to unzip it wherever they wish. Except for the Program files.
BobbyStrain
19-Apr-23 15:44pm
View
Dave, I added the database to the project and that created a connection string with |Data Directory| as the location. So, now the location is resolved at run time. And I don't need to specify a folder path.
BobbyStrain
18-Apr-23 19:26pm
View
Thank you, Dave. You are always helpful.
BobbyStrain
18-Apr-23 19:25pm
View
Thank you. I shall do that.
BobbyStrain
14-Mar-23 16:13pm
View
That's tough. I wonder why Norton can sell this junk. And for a hefty price. I cancelled my antivirus subscription. Do I need anything but Windows Defender and MalwareBytes?
BobbyStrain
14-Mar-23 12:29pm
View
Dave, I know which image it is. But it has worked for 15+ years. And still works on my laptop with VS 2019. I cleaned my laptop with the same Norton Utility. Except I did not clean the register. I have lots of images where the faulty one comes from, and I replaced the image with a different one from the same place. And it caused the same error. I tried another that I built and it worked OK. It's still a puzzle. I believe there is still a corrupted register entry left from the Norton fiasco.
BobbyStrain
14-Mar-23 11:29am
View
I spoke too soon. The library is no longer a problem. But there is an image which invokes the following: "A generic error occurred in GDI+". And the project won't load. But the project works fine on my laptop. There are other images on the forms and they give no problem. So, there is still some corruption. The image is loaded into a PictureBox. I deleted it and tried a Label with the image. Same result. I found lots of discussion on the web, but no solutions. Seems that all the problems are some corrupt file. Since it works without the image, I may still be able to use my desktop for building projects.
BobbyStrain
11-Mar-23 23:20pm
View
Dave, all the problems were caused by Norton Utilities. Running its cleanup wreaked havoc with lots of things. Among them was VS 2017 would not load. That's when I uninstalled it an installed VS 2022. And the problem occurred here. After trying lots of stuff to correct the problem I had no success. Then I found a program called REVO. I uninstalled VS 2022 with it. Then successfully installed VS 2019 Community. My project now works fine; no problem loading the library. I suspect that all attempts before using REVO left behind some corrupted file when I installed VS 2022. Several other applications were also wrecked. REVO remedied that on one application. I uninstalled Office 2007 and installed Office 2019 that cost $20. I don't yet know what damage is lurking. Thanks again for your help.
BobbyStrain
11-Mar-23 21:28pm
View
Deleted
There seems to be no way to accept a comment as a solution.
BobbyStrain
11-Mar-23 20:35pm
View
Thank you. I'm up and running now.
BobbyStrain
11-Mar-23 20:13pm
View
Thank you. I have it installed. But I don't know how to use it.
BobbyStrain
9-Mar-23 19:57pm
View
I do seem to have an automatic restore point. It shows up in Norton Utilities which caused all the headaches. Turns out I now have lots of stuff that no longer works. It's almost impossible to get Norton for advice. There is a restore option in the utilities, but I am reluctant to use it until I can talk to Norton.
BobbyStrain
8-Mar-23 20:01pm
View
Thank you. There is no problem with it working on my laptop with windows 10, too. It uses VS 2019. The library registered before, too to use with Excel. After the Norton damage it has stopped working. I will try your suggestion. I will remove VS 2022 from the problem PC and work with VS 2019 on my laptop. And I am cancelling my Norton subscriptions.
BobbyStrain
8-Mar-23 16:22pm
View
Unfortunately I never set up a backup. And I can't register my libraries for COM. Can't find an entry point.
BobbyStrain
8-Mar-23 13:43pm
View
I don't understand your comment.
BobbyStrain
3-Jan-23 23:24pm
View
I'm not sure how to accept the solution. The Accept Solution is showing. When I click it, it shows Reject Solution. So, which should be showing when I accept the solution? By the way, The problem turned out to be a missing reference to System.Configuration. It came in an epiphany late at night. So VS 2019 must have added the reference for me. I'm learning a lot with this project, something I have not done before. Next task is to build a DataSet with code, and scrap the designer.
BobbyStrain
2-Jan-23 21:48pm
View
Well, I moved it over to VS 2019 on my laptop. When I loaded it, it flagged ConfigurationManager. and offered a fix. I accepted the fix, unknown, but something related to the import of System.Configuration,which was already there. I guess there is a bug in my VS 2017. So, I'll produce the distribution copy from my laptop.
BobbyStrain
31-Dec-22 21:41pm
View
Thanks. I'm trying to keep my pup calm. He knows the bangs! are soon coming.
BobbyStrain
31-Dec-22 21:33pm
View
Yes, thank you. The behavior is strange. I'll try it next week on my laptop with VS 2019.
BobbyStrain
31-Dec-22 19:35pm
View
Thanks, I went to the official document and used exactly the code presented for VB .NET 4.5. It did not work! ConfigurationManager is not recognized.
BobbyStrain
20-Dec-22 17:55pm
View
Dave, I want to report that I didn't relinquish use of the designer. That would require lot's of my time. Instead, I developed a workaround using VB code. Which was not easy for me because I had to deal with nulls in the database for the first time. But I learned a bit.
BobbyStrain
19-Dec-22 10:28am
View
Richard, I'll take responsibility for this. I inadvertently rejected the solution. It was correct, however. So he was just asking for a correction. I wasn't paying enough attention to what I was doing. So, please accept my apology.
BobbyStrain
18-Dec-22 13:54pm
View
Thank you.
BobbyStrain
17-Dec-22 12:40pm
View
Dave, Since this is such a tiny undertaking, I'll put it together with code, not the designer. Thanks.
BobbyStrain
17-Dec-22 11:31am
View
You need to do some reading.
BobbyStrain
17-Dec-22 11:22am
View
Thanks, Griff. I'm first going to move the project to my laptop with a more recent version of VS and see how it behaves. Maybe kick this project down the road and just use Acces directly for this task.
BobbyStrain
15-Dec-22 23:34pm
View
I did find one but it seemed too complex for my simple needs. I prefer a single table if it fits. My databases are never very large, and only used by a single user.
BobbyStrain
14-Dec-22 22:31pm
View
Dave, Thank you for your response. I looked again after I posted this question and found your answer here in 2011. It's not easy to find. I don't use SQL often, so I sometimes get stuck with simple things. Now I'll move to the next challenge. I am building a front-end to an Access database for a garden club to track their budget. They have been using Word to post to members. So tracking and auditing can take days. Add to this they are mostly Seniors, so I have to make it simple. I couldn't find anything free for the task.
BobbyStrain
14-Sep-22 12:10pm
View
I store it in a text file on the server. The file is in a public folder. I have another page with a counter that is accessed from the home page. The counter value is reasonable at what I expect.
BobbyStrain
12-Sep-22 15:59pm
View
I's just code to increment a counter each time the page is loaded.
BobbyStrain
3-Sep-22 0:12am
View
MySql has an Excel add-in that connects to a MySql database on a web server. If you start there, you won't need anything but Excel and VBA in Excel.
BobbyStrain
14-Aug-22 19:38pm
View
If it works OK with the refresh button, you shouldn't be concerned.
BobbyStrain
11-May-22 13:03pm
View
It's pretty small. A datagridview to an small access database. How do I get it to you? You can email me at Bobby@bobby-strain-group.com. I think I still have an account on Media Fire.
BobbyStrain
11-May-22 12:17pm
View
Well, this was mostly an exercise to use the datareader, which I have not previously used. I am ready to move to another project. Maybe I'll try it again with another project. If you have any interest in resolving the issue, I can send you the whole project somehow.
BobbyStrain
10-May-22 21:26pm
View
I have a dataset in the project, but no other reference to a datareader. I populated the list from the datagridview. Took about 5 minutes to code it. Mostly copy & paste.
BobbyStrain
10-May-22 10:25am
View
I think I will give up the effort. I moved the project to VS 2019 on my laptop with the same result.
BobbyStrain
9-May-22 12:55pm
View
Everything works except for this one method to populate a listbox. I noted some strange behavior with the connection string. \ was somehow interpreted as an escape sequence and flagged. I undid a number of changes to get it fixed. I'll move the project over to my laptop with VS 2019 and see what happens. Thank you for your help[.
BobbyStrain
9-May-22 12:13pm
View
OK. I updated to show the message and where the error occurs. Closing the message, the code continues to execute properly, except for the rest of this method.
BobbyStrain
8-May-22 21:43pm
View
RedDk,
I followed your advice. The same notice appears. The ExecuteReader() seem to still be looking for a parameter. It seem there are three overloads, and I tried one to no avail. I'll keep looking It seems like a simple operation to be so troublesome.
BobbyStrain
23-Apr-22 18:27pm
View
I installed another 2 updates after SP1. Norton installed properly. Thanks.
BobbyStrain
20-Mar-22 15:24pm
View
I was able to identify the elements required by viewing the source. With a few tries, I got it right. The site code looks overly complicated. Thank you for your help.
BobbyStrain
6-Jan-22 23:23pm
View
Well, I solved the issue. I added only the form and all other associated files were added with it. I've been using VS since 2005, but I guess I never added an existing component to a project.
BobbyStrain
6-Jan-22 21:41pm
View
So I will try to explain. I added existing form to my VS 2017 vb.net project. I also added the form designer as a separate item. But the designer didn't get properly placed in the structure. Should I not have added the designer as a separate item? It shows to be at the same level as the form, not a part of the form.
BobbyStrain
5-Dec-21 23:32pm
View
Where is it hosted?
BobbyStrain
17-Aug-21 12:53pm
View
The resolution was simple. It was a wiring problem. I deleted the event handler then created a new one by double-click on the textbox on the form. So the designer properly added the event handler. Thank you all for your prompt response.
BobbyStrain
17-Aug-21 12:42pm
View
Nothing is triggered. The message does not show. But the query is good. I'll delete the textbox and code, and rebuild. Maybe that will work. I added the textbox to the form, but pasted the code from a working application. So, maybe it didn't get wired properly.
BobbyStrain
19-May-21 21:32pm
View
Here it is short of 2 weeks later. I managed to migrate the database to MySql. But there might be some things that don't work as they should. I first tried a website that advertised to convert Sql Server database backup file to a MySql database. Well, it converted only about 10% of the information correctly. The conversion took many steps and numerous applications. But they are all free. So, I learned a lot, but I'll never use it again.
BobbyStrain
10-May-21 16:10pm
View
So, what is your data store?
BobbyStrain
8-May-21 12:24pm
View
Thank you, Dave. I know about databases to do small chores. For this project I'll edit the queries to get what I need. And you're right about VS hiding lots of stuff. But I manage to muddle through. My last challenge was to add a condition to the VS login control. Everything was hidden.
BobbyStrain
8-May-21 11:13am
View
Thanks. I am to the point where I have a query to build the converted database in MySql. I'll edit the query so that it conforms to the required MySql version. I am curious, however, about the difference in database schemas generated by different versions of VS. Where might I look to find more about this?
BobbyStrain
8-May-21 11:05am
View
I will follow OriginalGriff's advice. I have converted the Sql Server database to MySql. And now I will edit it. I am at the point if I deactivate the Role Provider, the connection works fine. Your help is always appreciated.
BobbyStrain
7-May-21 23:13pm
View
So, the question should have been about Visual Studio database creation.
BobbyStrain
26-Apr-21 12:46pm
View
Maybe you are right. I got the VB page running in the web application, but it behaves strangely. Maybe there is a leak somewhere. I'll work on it for a while. If I can't fix it, you may hear from me again.
BobbyStrain
26-Apr-21 12:43pm
View
I started with a web site project 15 years old, but updated to .NET 4. It works fine. It uses MS Sql Server for a data store. My objective in moving to an application is to use a MySql store.
BobbyStrain
23-Apr-21 23:48pm
View
Thank you, Dave. I have started the process.
BobbyStrain
5-Nov-20 23:49pm
View
Try to assign the text to a variable then use that in SQL.
BobbyStrain
3-Aug-20 15:24pm
View
This sounds like a commercial operation. Maybe you should consider hiring someone to do it right.
BobbyStrain
30-Jul-20 16:05pm
View
Thank you both. I am not sure what the problem was. I replaced the chart with a newer one that is just java script. And it works as it is intended. The issue of "sticky" must have been with the Google chart. I generated it from C# code in a web page and saved the generated file. It was quite large.
BobbyStrain
7-Jul-20 20:56pm
View
Thank you, Andre. I just used a class library so it is portable.
BobbyStrain
12-Dec-19 16:40pm
View
I use Selenium for such tasks.
BobbyStrain
10-Aug-19 10:23am
View
Such operations become simple if you use C# and Selenium.
BobbyStrain
8-Jun-19 19:25pm
View
I used the code to connect to a different MySql database on Godaddy with success. I think the problem I had was due to the password ending with @.
But I am not going to explore that avenue. Too many other apps connect to the database. Thanks for your help.
BobbyStrain
6-Jun-19 10:51am
View
It does not connect from a PHP page on my Godaddy site either. And the other apps always work without fail. I'll have a look at the link you sent. There must be some security issue with Godaddy and PHP. Although Godaddy servers have PHP capability. My Wordpress works fine on the site.
BobbyStrain
5-Jun-19 16:31pm
View
Here is the code for the connection.
$database_host = "mystrainfamily.db.1234567.hostedresource.com";
$username = "mystrainfamily";
$password = "Wxyz@";
$database_name = "mystrainfamily";
$con=mysqli_connect($database_host, $username, $password, $database_name)
or die("Error connecting to database: " .
mysqli_connect_error() . "");
echo "Connected to MySQL!";
mysqli_select_db($con, $database_name)
or die("Error selecting the database mystrainfamily: " .
mysqli_error() . "");
echo "Connected to MySQL, using database mystrainfamily.";
BobbyStrain
5-Jun-19 16:29pm
View
Deleted
Error connecting to database: " .
mysqli_connect_error() . "");
echo "Connected to MySQL!";
mysqli_select_db($con, $database_name)
or die("Error selecting the database mystrainfamily: " .
mysqli_error() . "");
echo "Connected to MySQL, using database mystrainfamily.";
//......more
?>
BobbyStrain
5-Jun-19 12:25pm
View
The .NET apps are on the server and on my desktop. And no problem. I am using mystrainfamily for the username. My local PHP running on Apache gives the same error message, but, of course, a different IP address when I try to connect to the database on Godaddy. The connection to my local DB works fine. So I conclude that there is something different about Godaddy. Godaddy uses PHP 5.x and my PHP local install is 7.x. But the scripts are the same. I doubt I will get any help from Godaddy. My local Workbench connects to the Godaddy database OK, too. Using the same credentials.
BobbyStrain
30-May-19 20:14pm
View
Well, today is now history. But I finally got all three playing nicely together. But it took all day to find the missing step.
BobbyStrain
29-May-19 23:17pm
View
Well, I abandoned Vertrigo. I already had PHP and MySql installed. So I installed Apache 2.4. It's up and running without much effort. Tomorrow I'll confirm that they all play together. I'm somewhat hampered with the laptop being a Sony Vaio with Windows 8.1. It has always behaved badly. On the other hand, I got PHP running pretty quickly on my Windows 7 desktop using IIS. With only a couple stumbles. I thank you and the others at codeproject for good help over the years. There always seems to be something missing in the way of instructions that I pick up on the web.
BobbyStrain
28-May-19 20:09pm
View
I installed Vertrigo. But when I start it, I get a message that PHP and MySql did not install properly. When I enter the default IP address in Firefox, I get the error page that Firefox can't connect. I have no idea where to look for the problem. Any suggestion?
BobbyStrain
28-May-19 10:17am
View
I'll look at Vertigo as you suggest. I finally got the connection working. I was using some instructions that were apparently not correct. There were references to extension php_mysqli that was not in the ini file, or in the ext folder. I am still confused and unsure about the php file I downloaded for installation. It is php 7.x. Is there a reliable download package somewhere? I have a book on PHP & MySql but it is quite outdated. So, next chore is get a recent book that covers PHP 7. Any suggestions? I have several applications working already using ASP.NET and MySql but I am curious about PHP.
BobbyStrain
27-May-19 17:51pm
View
Deleted
I get this message when running a script in PHP to connect to MySql. But everything seems to be OK. Any suggestions?
PHP Warning: mysqli_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.
BobbyStrain
27-May-19 10:21am
View
Deleted
I got PHP up and running. But it won't connect to my MySql already installed. None of the solutions I found online work.
BobbyStrain
26-May-19 17:18pm
View
Well, I can't connect to MySql with PHP. MySql was already installed before I added PHP. I'm using IIS10 express. Also tried without success to connect to a server MySql with the same error. I can't find any resolution. Any suggestions?
BobbyStrain
23-May-19 11:01am
View
Thanks. I thought I had Apache installed once upon a time. But I don't see it now. What do you use PHP for?
BobbyStrain
23-May-19 10:59am
View
Thank you. I'll take a look.
BobbyStrain
23-May-19 10:58am
View
Thank you for your prompt response. The instructions from the source cleared the obstructions. Now I have PHP installed using IIS. Now, what to do now that I have it? I now use HTML, java script and Asp.net web forms. What is PHP best used for?
BobbyStrain
29-Dec-18 18:42pm
View
Bryian, that works! Thank you. Can you shed any light on how the page is generated?
BobbyStrain
7-Nov-18 11:11am
View
I solved the issue by downloading the project at GitHub. It didn't work "out of the box" either. But a simple fix resolved the issue. I was hoping that it could be used like Microsoft's browser control. Alas, not so. Maybe I will have to resort to Microsoft's control.
BobbyStrain
7-Nov-18 10:12am
View
You can just plug in any values for the items. Don't scrub the + in the string. I thought that I posted what worked. All I did is add a bit of javascript to redirect the postback to a new window. to fix the issue.
BobbyStrain
22-Sep-18 17:48pm
View
Griff,
I was so focused on proper syntax that I overlooked that the method in the library requires one parameter. Once I corrected that, all is well. Thanks for your help. With this bit, I believe I have finished my project, for now.
BobbyStrain
22-Sep-18 12:45pm
View
Deleted
Griff,
Here is the code I am using. I didn't really understand your response.
First, the class library:
public void FetchStreams(int sepindex)
{
//This will get the values from the proper datatable row and column.
props = new string[12];
for (int i = 0; i < 12; i++)
{
var cellValue = dt.Rows[sepindex][i + 1];
props[i] = cellValue.ToString();
}
}
public string[] Streams
{
get { return props; }
}
Then the calling class:
private void getstreamsfromCSV()
{
string[] streamproperties = new string[12];
streamproperties = myfile.Streams;
for (int i=0; i < 13; i++)
{
//streamproperties[i] = myfile.Streams[i];
}
}
So, you can see that I have no idea how to handle arrays. I do this with VB where I use an indexer, and VS intellisense fills in what I need.
BobbyStrain
18-Jul-18 12:35pm
View
I generate a URL link from my web page that points to the above URL. And I must click the link a second time to get the error. It says "Your client issued a request that was too large."
BobbyStrain
7-Jul-18 20:25pm
View
Vincent, Thanks for the reply. I have only 3 datasources, so all the code is not too overwhelming. And I don't do much. I found a means to make it work by adding a textbox and filtering on the textbox text. I have a similar desktop application for which I do use datasets. It works smoothly using queries.
BobbyStrain
24-Feb-18 21:22pm
View
Richard, I have progressed a bit in converting to C#. Most things work well. However, when i manually click a button and activate java script that writes to a hidden input as well as a label on the page, the Firefox driver loses the connection. Chrome with VB works OK. I wonder where I can look to resolve this issue? Thanks for your help.
BobbyStrain
21-Feb-18 17:29pm
View
Richard, I began the build in C# and I didn't need this "setProperty" at all. And I found Tellerick's code converter to help the VB --> C# conversion. And, thanks again for your help. I hope I don't have to convert my whole website to C#, 10 years in the making.
BobbyStrain
20-Feb-18 18:14pm
View
Richard, thank you for your help. It seems that there is a special library required to use Selenium with VB. It still works with Chrome, but not Firefox which needs the newest versions. There is no setProperties method in VB as there is in C#. So, if I want to use Selenium with anything other than Chrome, I will have to convert to C#. Eventually, Chrome will go to the newer version, too. It's not much code, but it is necessary to fill some web forms on my site and to save the info, too. Maybe I'll look at moving a desktop application to the cloud instead.
BobbyStrain
20-Feb-18 15:17pm
View
Here is the C# code I can't convert to VB. I can't find any VB equivalent. Apparently this is the method now required for the latest Firefox.
public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver","D:\\Firefox\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
driver.get("http://www.google.com");
}
BobbyStrain
8-Feb-18 11:17am
View
David, Thank you for your help. I'll work on it. But this code appears to target a single element by ID, not all elements. I am looking for code that will wait for any element, not specific. But, I can work with your code. It's something I can understand, unlike much of the code I have found.
BobbyStrain
7-Feb-18 11:00am
View
David I added the code to the question. There doesn't seem to be much use of Selenium with vb.net.
BobbyStrain
6-Jul-17 17:01pm
View
I'm not really a programmer, so I use Visual Studio; drag and drop and fill in wizard steps. VS generates tons of code in the designer file. I suppose somewhere in there wires got crossed or code is unstable. As I recall the compiled code was working fine. Now that same file has this strange behavior. Is there a simple way to build an application without all the generated code?
BobbyStrain
4-Jul-17 11:32am
View
Thank you.
I made a couple of changes to the database, and auto-numbering works OK whenever I use Workbench to add a record. But I have a front-end with a datagridview that is not working properly. I have a binding navigator with the add, save, etc. When I try to add a new record and save it, the front end does not place a value in the ID column. It worked quite well before, and would assign sequential values of -1, -2, etc for the new records. This is no longer happening. So, I'll have to search the front-end C# windows form code for the problem. Strange, I have not changed any code that would cause this to break.
BobbyStrain
29-May-17 11:23am
View
Thank you for your solution. It is more difficult than I wish to implement. My objective is to save the information for each view without multiple page saves. But implementing the fix is too much. So, for now, I will leave the page as it is and let the user save each view, or the one of interest.
BobbyStrain
31-Jan-17 0:21am
View
Deleted
You need to have an HTML element to write to. Like Response.Write("hello");
Show More