Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

code-behind

The name ‘controlname’ does not exist in the current context

February 7, 2023 by Tarik

I know this is an old question, but I had a similar problem and wanted to post my solution in case it could benefit someone else. I encountered the problem while learning to use: ASP.NET 3.5 C# VS2008 I was trying to create an AJAX-enabled page (look into a tutorial about using the ScriptManager object … Read more

Categories c# Tags asp.net, c++, code-behind, visual-studio-2005 Leave a comment

Accessing a resource via codebehind in WPF

January 26, 2023 by Tarik

You should use System.Windows.Controls.UserControl‘s FindResource() or TryFindResource() methods. Also, a good practice is to create a string constant which maps the name of your key in the resource dictionary (so that you can change it at only one place).

Categories c# Tags c++, code-behind, resources, wpf, xaml Leave a comment

Change Canvas.Left property in code behind?

January 5, 2023 by Tarik

Canvas.SetLeft(theObject, 50)

Categories c# Tags attached-properties, c++, code-behind, wpf Leave a comment
Newer posts
← Previous Page1 Page2 Page3

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa